From 35c914f826c9b21003ea753a53aa51ef9fc0bffd Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Wed, 13 May 2015 17:38:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D0=BE=D0=B4=D0=B0=20getRealPath=20(=D0=98=D1=81=D0=BF=D0=BE?= =?UTF-8?q?=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D1=84.=20=D0=BE=D0=BF=D1=86=D0=B8=D0=B8=20PATH=5FW?= =?UTF-8?q?EB=5FROOT,=20=D0=B2=D0=BC=D0=B5=D1=81=D1=82=D0=BE=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD=D1=82=D1=8B=20PATH=5FWEB?= =?UTF-8?q?=5FROOT,=20=D0=BA=D0=BE=D1=82=D0=BE=D1=80=D0=B0=D1=8F=20=D0=BD?= =?UTF-8?q?=D0=B5=20=D0=BE=D0=BF=D1=80=D0=B5=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0)=20MIRSPORTA-724=20=D0=9F=D0=BE=D0=B8=D1=81=D0=BA=20?= =?UTF-8?q?=D0=BE=D1=82=D1=81=D1=83=D1=82=D1=81=D1=82=D0=B2=D1=83=D1=8E?= =?UTF-8?q?=D1=89=D0=B8=D1=85=20=D1=84=D0=BE=D1=82=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- File.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } /**