From 9e032a7120bfcde2e952b4291c4b5d2b13d9f174 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Wed, 3 Sep 2014 15:50:17 +0300 Subject: [PATCH] Fix wrong namespace declaration --- system/src/Grav/Common/File/CompiledFile.php | 11 +++-------- system/src/Grav/Common/Grav.php | 2 +- .../src/Grav/Common/Service/ConfigServiceProvider.php | 3 ++- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/system/src/Grav/Common/File/CompiledFile.php b/system/src/Grav/Common/File/CompiledFile.php index d0fdb9bd7..3caed214c 100644 --- a/system/src/Grav/Common/File/CompiledFile.php +++ b/system/src/Grav/Common/File/CompiledFile.php @@ -29,19 +29,14 @@ trait CompiledFile $modified = $this->modified(); $class = get_class($this); - if ($file->exists()) { - $cache = $file->exists() ? $file->content() : null; - } else { - $cache = null; - } - + $cache = $file->exists() ? $file->content() : null; // Load real file if cache isn't up to date (or is invalid). if ( - !is_array($cache) + !isset($cache['@class']) + || $cache['@class'] != $class || $cache['modified'] != $modified || $cache['filename'] != $this->filename - || $cache['@class'] != $class ) { // Attempt to lock the file for writing. $file->lock(false); diff --git a/system/src/Grav/Common/Grav.php b/system/src/Grav/Common/Grav.php index 1411663e3..86a240e8b 100644 --- a/system/src/Grav/Common/Grav.php +++ b/system/src/Grav/Common/Grav.php @@ -1,8 +1,8 @@