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.
2 parents 210aa81 + d3dcc76 commit 78bd803Copy full SHA for 78bd803
app/Mage.php
@@ -43,9 +43,14 @@
43
Varien_Autoload::register();
44
45
/** AUTOLOADER PATCH **/
46
-if (file_exists($autoloaderPath = (getenv('COMPOSER_VENDOR_PATH') ?: BP . DS . 'vendor') . DS . 'autoload.php')) {
47
- require $autoloaderPath;
+$autoloaderPath = getenv('COMPOSER_VENDOR_PATH');
+if (!$autoloaderPath) {
48
+ $autoloaderPath = dirname(BP) . DS . 'vendor';
49
+ if (!is_dir($autoloaderPath)) {
50
+ $autoloaderPath = BP . DS . 'vendor';
51
+ }
52
}
53
+require $autoloaderPath . DS . 'autoload.php';
54
55
56
/* Support additional includes, such as composer's vendor/autoload.php files */
0 commit comments