From 384247bcd994cd59d16360ec4158b482a3a72cf4 Mon Sep 17 00:00:00 2001 From: Marcel Hernandez Date: Fri, 18 Mar 2016 14:12:43 +0100 Subject: [PATCH] Fix regression: custom tasks not found --- bin/mage | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/mage b/bin/mage index aff9e5e..8d134f2 100755 --- a/bin/mage +++ b/bin/mage @@ -22,12 +22,12 @@ if (file_exists(__DIR__ . '/../vendor/autoload.php')) { require_once __DIR__ . '/../vendor/autoload.php'; } else if (file_exists(__DIR__ . '/../../../autoload.php')) { require_once __DIR__ . '/../../../autoload.php'; -} else { - require_once $baseDir . '/Mage/Autoload.php'; - $loader = new \Mage\Autoload(); - spl_autoload_register(array($loader, 'autoLoad')); } +require_once $baseDir . '/Mage/Autoload.php'; +$loader = new \Mage\Autoload(); +spl_autoload_register(array($loader, 'autoLoad')); + // Clean arguments array_shift($argv);