diff --git a/File.php b/File.php index 7d994d1..72b1ee6 100644 --- a/File.php +++ b/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; } /**