Correctly deal with the compiled file

This commit is contained in:
Graham Campbell 2015-04-02 15:15:00 +01:00
parent 39107a78c2
commit c4aff28a4a
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}