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:
authormattpiwik <matthieu.aubry@gmail.com>2008-04-21 02:33:27 +0400
committermattpiwik <matthieu.aubry@gmail.com>2008-04-21 02:33:27 +0400
commit87da976192cdbc817aec61a9e9c484853345d1b0 (patch)
tree535b2a082f18b1fb98982766a6967add1079ab59 /index.php
parent3a5c3ee4875e47bc76bda201d58a9466a5b61341 (diff)
- trying to clean all the set_include_path stuff
git-svn-id: http://dev.piwik.org/svn/trunk@450 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/index.php b/index.php
index 7824f02728..9877c46c06 100755
--- a/index.php
+++ b/index.php
@@ -18,16 +18,13 @@ if(!defined('PIWIK_INCLUDE_PATH'))
define('PIWIK_INCLUDE_PATH', '.');
}
-define('PIWIK_PLUGINS_PATH', PIWIK_INCLUDE_PATH . '/plugins');
-define('PIWIK_DATAFILES_INCLUDE_PATH', PIWIK_INCLUDE_PATH . "/modules/DataFiles");
-
set_include_path(PIWIK_INCLUDE_PATH
. PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/libs/'
. PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins/'
. PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/modules/'
. PATH_SEPARATOR . get_include_path());
-require_once PIWIK_INCLUDE_PATH . "/modules/testMinimumPhpVersion.php";
+require_once "modules/testMinimumPhpVersion.php";
date_default_timezone_set(date_default_timezone_get());
@@ -39,8 +36,8 @@ if(!defined('ENABLE_DISPATCH'))
/**
* Error / exception handling functions
*/
-require_once PIWIK_INCLUDE_PATH . "/modules/ErrorHandler.php";
-require_once PIWIK_INCLUDE_PATH . "/modules/ExceptionHandler.php";
+require_once "modules/ErrorHandler.php";
+require_once "modules/ExceptionHandler.php";
set_error_handler('Piwik_ErrorHandler');
set_exception_handler('Piwik_ExceptionHandler');