Фикс метода getRealPath (Использование конф. опции PATH_WEB_ROOT, вместо константы PATH_WEB_ROOT, которая не определена)

MIRSPORTA-724 Поиск отсутствующих фото
This commit is contained in:
2015-05-13 17:38:18 +03:00
parent 40bf98cd70
commit 35c914f826

View File

@ -5,6 +5,7 @@ namespace dimti\Image;
* Full paths to directories and files contains slash as first symbol
* Dir name not contains slashes on first or last symbols
*/
use Majestic\Config;
/**
* Class File
@ -134,7 +135,7 @@ abstract class File
public function getRealPath()
{
return PATH_WEB_ROOT . '/' . $this->path . '/' . $this->filename;
return Config::get('PATH_WEB_ROOT') . '/' . $this->path . '/' . $this->filename;
}
/**