Skip to content
Extraits de code Groupes Projets
Valider 26db3c9e rédigé par robocoder's avatar robocoder
Parcourir les fichiers

Fixes #783 - don't append preset include path; thanks feyp.

git-svn-id: http://dev.piwik.org/svn/trunk@1205 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent bda6e651
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -44,7 +44,10 @@ class Piwik_View implements Piwik_iView ...@@ -44,7 +44,10 @@ class Piwik_View implements Piwik_iView
array_walk($this->smarty->plugins_dir, array("Piwik_View","addPiwikPath")); array_walk($this->smarty->plugins_dir, array("Piwik_View","addPiwikPath"));
$this->smarty->compile_dir = $smConf->compile_dir; $this->smarty->compile_dir = $smConf->compile_dir;
Piwik_View::addPiwikPath($this->smarty->compile_dir, null);
$this->smarty->cache_dir = $smConf->cache_dir; $this->smarty->cache_dir = $smConf->cache_dir;
Piwik_View::addPiwikPath($this->smarty->cache_dir, null);
$this->smarty->error_reporting = $smConf->debugging; $this->smarty->error_reporting = $smConf->debugging;
$this->smarty->error_reporting = $smConf->error_reporting; $this->smarty->error_reporting = $smConf->error_reporting;
......
...@@ -22,8 +22,7 @@ if(!defined('PIWIK_INCLUDE_PATH')) ...@@ -22,8 +22,7 @@ if(!defined('PIWIK_INCLUDE_PATH'))
if((@include "Version.php") === false || !class_exists('Piwik_Version')) { if((@include "Version.php") === false || !class_exists('Piwik_Version')) {
set_include_path(PIWIK_INCLUDE_PATH . '/core' set_include_path(PIWIK_INCLUDE_PATH . '/core'
. PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/libs' . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/libs'
. PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins' . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins');
. PATH_SEPARATOR . get_include_path());
} }
require_once "core/testMinimumPhpVersion.php"; require_once "core/testMinimumPhpVersion.php";
......
...@@ -21,8 +21,7 @@ define('PIWIK_INCLUDE_PATH', dirname(__FILE__)); ...@@ -21,8 +21,7 @@ define('PIWIK_INCLUDE_PATH', dirname(__FILE__));
if((@include "Version.php") === false || !class_exists('Piwik_Version')) { if((@include "Version.php") === false || !class_exists('Piwik_Version')) {
set_include_path(PIWIK_INCLUDE_PATH . '/core' set_include_path(PIWIK_INCLUDE_PATH . '/core'
. PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/libs' . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/libs'
. PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins' . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins');
. PATH_SEPARATOR . get_include_path());
} }
require_once "Common.php"; require_once "Common.php";
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter