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 --- tests/resources/staticFileServer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/resources') diff --git a/tests/resources/staticFileServer.php b/tests/resources/staticFileServer.php index 6ad277863e..7975b79348 100644 --- a/tests/resources/staticFileServer.php +++ b/tests/resources/staticFileServer.php @@ -39,7 +39,9 @@ require_once PIWIK_INCLUDE_PATH . '/core/testMinimumPhpVersion.php'; session_cache_limiter('nocache'); @date_default_timezone_set('UTC'); -require_once PIWIK_INCLUDE_PATH .'/vendor/autoload.php'; + +require_once PIWIK_INCLUDE_PATH . '/core/Loader.php'; +\Piwik\Loader::init(); // This is Piwik logo, the static file used in this test suit define("TEST_FILE_LOCATION", dirname(__FILE__) . "/lipsum.txt"); -- cgit v1.2.3