Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-07-08 08:19:14 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-07-08 08:19:14 +0400
commitcd0cbab3731b988223e7ad44d78306e18fe3096c (patch)
tree2681dc3b6ee7393c03dca36359a9c9bb8c22d63c /index.php
parent9d95e1016eb204db445c263975f990b9d59d7f4d (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.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/index.php b/index.php
index 169d06e39c..5fef703249 100644
--- a/index.php
+++ b/index.php
@@ -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();