diff options
author | robocoder <anthon.pang@gmail.com> | 2009-07-08 08:19:14 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2009-07-08 08:19:14 +0400 |
commit | 4fb541d1bb1b2bed65142ee2ec98a4a554001165 (patch) | |
tree | 2681dc3b6ee7393c03dca36359a9c9bb8c22d63c /index.php | |
parent | 0cc45658c8f23e14dceb663037f512d47ea4e506 (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.)
git-svn-id: http://dev.piwik.org/svn/trunk@1296 59fd770c-687e-43c8-a1e3-f5a4ff64c105
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(); |