Фикс метода getRealPath (Использование конф. опции PATH_WEB_ROOT, вместо константы PATH_WEB_ROOT, которая не определена)
MIRSPORTA-724 Поиск отсутствующих фото
This commit is contained in:
3
File.php
3
File.php
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user