mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
N.1100 Regression introduced in [r4943], aka 2.4 RC3, and causing error during MTP (accessing the wrong expression cache)
SVN:trunk[5054]
This commit is contained in:
@@ -927,7 +927,7 @@ class utils
|
||||
*/
|
||||
public static function GetCachePath()
|
||||
{
|
||||
return APPROOT.'data/cache-'.self::GetCurrentEnvironment().'/';
|
||||
return APPROOT.'data/cache-'.MetaModel::GetEnvironment().'/';
|
||||
}
|
||||
/**
|
||||
* Merge standard menu items with plugin provided menus items
|
||||
|
||||
@@ -4863,6 +4863,14 @@ abstract class MetaModel
|
||||
return self::$m_oConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string The environment in which the model has been loaded (e.g. 'production')
|
||||
*/
|
||||
public static function GetEnvironment()
|
||||
{
|
||||
return self::$m_sEnvironment;
|
||||
}
|
||||
|
||||
public static function GetEnvironmentId()
|
||||
{
|
||||
return md5(APPROOT).'-'.self::$m_sEnvironment;
|
||||
|
||||
Reference in New Issue
Block a user