// Multishop interface reworked

This commit is contained in:
rMalie
2012-05-09 15:05:39 +00:00
parent 7920dea947
commit d7337c4d4f
61 changed files with 6043 additions and 391 deletions
+3 -1
View File
@@ -89,6 +89,7 @@ class TabCore extends ObjectModel
$class_name = Tab::getClassNameById($this->id_parent);
if (isset($retro[$class_name]))
$this->id_parent = Tab::getIdFromClassName($retro[$class_name]);
self::$_cache_tabs = array();
// Set good position for new tab
$this->position = Tab::getNewLastPosition($this->id_parent);
@@ -220,7 +221,7 @@ class TabCore extends ObjectModel
*
* @return array tabs
*/
static $_cache_tabs = array();
protected static $_cache_tabs = array();
public static function getTabs($id_lang, $id_parent = null)
{
if (!isset(self::$_cache_tabs[$id_lang]))
@@ -479,6 +480,7 @@ class TabCore extends ObjectModel
if ($current_tab->id_parent != $this->id_parent)
$this->position = Tab::getNewLastPosition($this->id_parent);
self::$_cache_tabs = array();
return parent::update($null_values);
}