Browse Source

Correct use majestic namespace

master
Alexander Demidov 11 years ago
parent
commit
d22f8d5dbe
  1. 2
      Upload.php

2
Upload.php

@ -150,7 +150,7 @@ abstract class Upload
}
}
$path_parts = pathinfo($file_path);
$image->path = preg_replace('#^' . Config::get('PATH_WEB_ROOT') . '/#', '', $path_parts['dirname']);
$image->path = preg_replace('#^' . \Majestic\Config::get('PATH_WEB_ROOT') . '/#', '', $path_parts['dirname']);
$image->filename = $path_parts['basename'];
unset($greagwar_image);
}

Loading…
Cancel
Save