From 2cd469cd7cabe135118044109c650e6ba01ca74f Mon Sep 17 00:00:00 2001 From: Viktor Date: Thu, 2 Nov 2017 04:20:38 +0500 Subject: [PATCH] Update CompiledFile.php (#1693) const CACHE_DIR already defined with trailing slash ```php define('CACHE_DIR', ROOT_DIR . 'cache/'); ``` --- system/src/Grav/Common/File/CompiledFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/File/CompiledFile.php b/system/src/Grav/Common/File/CompiledFile.php index 406f4f097..6ff95a813 100644 --- a/system/src/Grav/Common/File/CompiledFile.php +++ b/system/src/Grav/Common/File/CompiledFile.php @@ -27,7 +27,7 @@ trait CompiledFile // If nothing has been loaded, attempt to get pre-compiled version of the file first. if ($var === null && $this->raw === null && $this->content === null) { $key = md5($this->filename); - $file = PhpFile::instance(CACHE_DIR . DS . "compiled/files/{$key}{$this->extension}.php"); + $file = PhpFile::instance(CACHE_DIR . "compiled/files/{$key}{$this->extension}.php"); $modified = $this->modified();