From 9f4ba4eea6c85a92b87fbad6f0556ee5d8551762 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Mon, 13 Oct 2014 04:21:24 +0200 Subject: refs #5940 moved files into a subfolder framework, added autoloader to remove duplicated code to load autoload.php and to be able to register more autoloaders (eg for test files) on demand. This I got read of many includes that had to be updated all the time and that had to be updated all the time when moving iles --- misc/others/cli-script-bootstrap.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'misc/others') diff --git a/misc/others/cli-script-bootstrap.php b/misc/others/cli-script-bootstrap.php index bd1f7ea6ec..f26d45abcc 100644 --- a/misc/others/cli-script-bootstrap.php +++ b/misc/others/cli-script-bootstrap.php @@ -28,9 +28,8 @@ set_time_limit(0); require_once PIWIK_INCLUDE_PATH . '/libs/upgradephp/upgrade.php'; require_once PIWIK_INCLUDE_PATH . '/core/testMinimumPhpVersion.php'; -require_once file_exists(PIWIK_INCLUDE_PATH . '/vendor/autoload.php') - ? PIWIK_INCLUDE_PATH . '/vendor/autoload.php' // Piwik is the main project - : PIWIK_INCLUDE_PATH . '/../../autoload.php'; // Piwik is installed as a dependency +require_once PIWIK_INCLUDE_PATH . '/core/Loader.php'; +\Piwik\Loader::init(); $GLOBALS['PIWIK_TRACKER_DEBUG'] = false; define('PIWIK_ENABLE_DISPATCH', false); -- cgit v1.2.3