diff --git a/administrator/index.php b/administrator/index.php index b074d1f45e933..6f1c77ae13a0c 100644 --- a/administrator/index.php +++ b/administrator/index.php @@ -11,6 +11,11 @@ die('Your host needs to use PHP 5.3.10 or higher to run this version of Joomla!'); } +if (file_exists($composer = __DIR__ . '/../vendor/autoload.php')) +{ + require $composer; +} + /** * Constant that is checked in included files to prevent direct access. * define() is used in the installation folder rather than "const" to not error for PHP 5.2 and lower diff --git a/index.php b/index.php index bbbae61c8738c..f9000cc0f150c 100644 --- a/index.php +++ b/index.php @@ -11,6 +11,11 @@ die('Your host needs to use PHP 5.3.10 or higher to run this version of Joomla!'); } +if (file_exists($composer = __DIR__ . '/vendor/autoload.php')) +{ + require $composer; +} + /** * Constant that is checked in included files to prevent direct access. * define() is used in the installation folder rather than "const" to not error for PHP 5.2 and lower