mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 07:06:30 +02:00
e_CACHE override for old installations (containing $CACHE_DIRECTORY value in their configs)
This commit is contained in:
@@ -386,6 +386,8 @@ class e107
|
|||||||
// override all
|
// override all
|
||||||
$this->e107_dirs = array_merge($this->defaultDirs($override), $override);
|
$this->e107_dirs = array_merge($this->defaultDirs($override), $override);
|
||||||
|
|
||||||
|
// TODO add e_MEDIA_BASE, e_SYSTEM_BASE (free of site path constants);
|
||||||
|
|
||||||
if(strpos($this->e107_dirs['MEDIA_DIRECTORY'],$this->site_path) === false)
|
if(strpos($this->e107_dirs['MEDIA_DIRECTORY'],$this->site_path) === false)
|
||||||
{
|
{
|
||||||
$this->e107_dirs['MEDIA_DIRECTORY'] .= $this->site_path."/"; // multisite support.
|
$this->e107_dirs['MEDIA_DIRECTORY'] .= $this->site_path."/"; // multisite support.
|
||||||
@@ -395,6 +397,12 @@ class e107
|
|||||||
{
|
{
|
||||||
$this->e107_dirs['SYSTEM_DIRECTORY'] .= $this->site_path."/"; // multisite support.
|
$this->e107_dirs['SYSTEM_DIRECTORY'] .= $this->site_path."/"; // multisite support.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME Quick fix - override base cache folder for legacy configs (e.g. e107_files/cache), discuss
|
||||||
|
if(strpos($this->e107_dirs['CACHE_DIRECTORY'], $this->site_path) === false)
|
||||||
|
{
|
||||||
|
$this->e107_dirs['CACHE_DIRECTORY'] = $this->e107_dirs['SYSTEM_DIRECTORY']."cache/"; // multisite support.
|
||||||
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user