From c4aff28a4a0d1449e19b4a08e3d99464c253bccb Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 2 Apr 2015 15:15:00 +0100 Subject: [PATCH] Correctly deal with the compiled file --- bootstrap/autoload.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php index bc04666c..5fbc3a47 100644 --- a/bootstrap/autoload.php +++ b/bootstrap/autoload.php @@ -27,9 +27,11 @@ | */ -$compiledPath = __DIR__.'/../vendor/compiled.php'; - -if (file_exists($compiledPath)) +if (file_exists($compiledPath = __DIR__.'/../vendor/compiled.php';)) +{ + require $compiledPath; +} +elseif (file_exists($compiledPath = __DIR__.'/../storage/framework/compiled.php';)) { require $compiledPath; }