We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 086def5 commit b8641e6Copy full SHA for b8641e6
Bootstraps/Drupal.php
@@ -44,7 +44,11 @@ public function initialize($appenv, $debug)
44
public function getApplication()
45
{
46
//load drupals autoload.php, so their classes are available
47
- $autoloader = require './vendor/autoload.php';
+ if (file_exists('./vendor/autoload.php')) {
48
+ $autoloader = require './vendor/autoload.php';
49
+ } else {
50
+ $autoloader = require '../vendor/autoload.php';
51
+ }
52
53
$sitePath = 'sites/default';
54
@@ -55,4 +59,4 @@ public function getApplication()
55
59
56
60
return $app;
57
61
}
58
-}
62
+}
0 commit comments