Index: branches/RC/core/units/categories/categories_tag_processor.php =================================================================== diff -u -N -r11690 -r11711 --- branches/RC/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 11690) +++ branches/RC/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 11711) @@ -400,14 +400,22 @@ $wid = $this->Application->GetVar('m_wid'); list($index_file, $env) = explode('|', $this->Application->RecallVar(rtrim('last_template_'.$wid, '_')), 2); + + $vars_backup = Array (); $vars = $this->Application->HttpQuery->processQueryString( str_replace('%5C', '\\', $env) ); + foreach ($vars as $var_name => $var_value) { + $vars_backup[$var_name] = $this->Application->GetVar($var_name); $this->Application->SetVar($var_name, $var_value); } // update required fields $this->Application->SetVar('m_cat_id', $category_id); $this->Application->Session->SaveLastTemplate($params['template']); + + foreach ($vars_backup as $var_name => $var_value) { + $this->Application->SetVar($var_name, $var_value); + } } function GetParentCategory($params) @@ -1019,7 +1027,7 @@ $cached_navbar = $this->Conn->GetOne($sql); } - $cached_navbar = preg_replace('/^Content&\|&/i', '', $cached_navbar); + $cached_navbar = preg_replace('/^(Content&\|&|Content)/i', '', $cached_navbar); $category_path = trim($this->CategoryName( Array('cat_id' => 0) ).' > '.str_replace('&|&', ' > ', $cached_navbar), ' > '); }