diff options
author | robocoder <anthon.pang@gmail.com> | 2009-07-03 07:08:39 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2009-07-03 07:08:39 +0400 |
commit | 60b1d32866b07f6646716fbabfbe96b4b0d7066f (patch) | |
tree | 673a7793d36edd59c7388b71ba8465f9639d7c7e /index.php | |
parent | afcc115b45114abe3bc29c6efe9c9315309c1571 (diff) |
Fix code above this comment should be PHP4 compatible; set_include_path() was introduced in php 4.3.0
git-svn-id: http://dev.piwik.org/svn/trunk@1275 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -25,15 +25,14 @@ if(!defined('PIWIK_INCLUDE_PATH')) if((@include "Version.php") === false || !class_exists('Piwik_Version', false)) { - set_include_path(PIWIK_INCLUDE_PATH . '/core' - . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/libs' - . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins'); + ini_set('include_path', PIWIK_INCLUDE_PATH . '/core' + . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/libs' + . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins'); } require_once "core/testMinimumPhpVersion.php"; // NOTE: the code above this comment must be PHP4 compatible -date_default_timezone_set(date_default_timezone_get()); if(!defined('PIWIK_ENABLE_ERROR_HANDLER') || PIWIK_ENABLE_ERROR_HANDLER) { @@ -44,6 +43,7 @@ if(!defined('PIWIK_ENABLE_ERROR_HANDLER') || PIWIK_ENABLE_ERROR_HANDLER) set_exception_handler('Piwik_ExceptionHandler'); } +date_default_timezone_set(date_default_timezone_get()); session_cache_limiter('nocache'); if(strlen(session_id()) === 0) { |