We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 34b96ef + 4d0778a commit f11c6beCopy full SHA for f11c6be
1 file changed
Mage/FPC/FPC.php
@@ -48,10 +48,18 @@ public function fly()
48
return false;
49
}
50
51
+
52
//For app folder
- $config = require __DIR__ . '/../../../../app/etc/env.php';
53
- //For Composer Folder ToDO: remove src from the composer to make app = to vendor
54
- // $config = require __DIR__ . '/../../../../../../app/etc/env.php';
+ $config = @include __DIR__ . '/../../../../app/etc/env.php';
+ if (!$config) {
55
+ //For Composer Folder ToDO: remove src from the composer to make app = to vendor
56
+ $config = @include __DIR__ . '/../../../../../../app/etc/env.php';
57
+ }
58
59
+ if (!$config){
60
+ // check include path
61
+ header('FPC-ERROR: Config not found');
62
63
64
//https://github.com/phpredis/phpredis/blob/develop/INSTALL.markdown
65
0 commit comments