diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-07-08 08:19:14 +0400 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-07-08 08:19:14 +0400 |
commit | cd0cbab3731b988223e7ad44d78306e18fe3096c (patch) | |
tree | 2681dc3b6ee7393c03dca36359a9c9bb8c22d63c /index.php | |
parent | 9d95e1016eb204db445c263975f990b9d59d7f4d (diff) |
fixes #803 - remove unnecessary require_once from core, plugins, and parts of
libs. (I didn't touch: open-flash-chart, Zend Framework, and PEAR HTML.)
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -30,24 +30,22 @@ if((@include "Version.php") === false || !class_exists('Piwik_Version', false)) . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins'); } -require_once "core/testMinimumPhpVersion.php"; +require_once PIWIK_INCLUDE_PATH . '/core/testMinimumPhpVersion.php'; // NOTE: the code above this comment must be PHP4 compatible +session_cache_limiter('nocache'); @date_default_timezone_set(date_default_timezone_get()); +require_once PIWIK_INCLUDE_PATH .'/core/Loader.php'; if(!defined('PIWIK_ENABLE_ERROR_HANDLER') || PIWIK_ENABLE_ERROR_HANDLER) { - require_once "core/ErrorHandler.php"; - require_once "core/ExceptionHandler.php"; - + require_once PIWIK_INCLUDE_PATH .'/core/ErrorHandler.php'; + require_once PIWIK_INCLUDE_PATH .'/core/ExceptionHandler.php'; set_error_handler('Piwik_ErrorHandler'); set_exception_handler('Piwik_ExceptionHandler'); } -session_cache_limiter('nocache'); - -require_once "core/Loader.php"; if(!defined('PIWIK_ENABLE_DISPATCH') || PIWIK_ENABLE_DISPATCH) { $controller = Piwik_FrontController::getInstance(); |