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:
authorrobocoder <anthon.pang@gmail.com>2009-07-03 07:08:39 +0400
committerrobocoder <anthon.pang@gmail.com>2009-07-03 07:08:39 +0400
commit60b1d32866b07f6646716fbabfbe96b4b0d7066f (patch)
tree673a7793d36edd59c7388b71ba8465f9639d7c7e /index.php
parentafcc115b45114abe3bc29c6efe9c9315309c1571 (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.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.php b/index.php
index 5ba3bc5c48..fb4520682b 100644
--- a/index.php
+++ b/index.php
@@ -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)
{