Correct use majestic namespace

This commit is contained in:
2014-06-02 21:07:56 +04:00
parent ccd1d64f70
commit d22f8d5dbe

View File

@ -150,7 +150,7 @@ abstract class Upload
} }
} }
$path_parts = pathinfo($file_path); $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']; $image->filename = $path_parts['basename'];
unset($greagwar_image); unset($greagwar_image);
} }