Index: branches/RC/core/units/categories/categories_tag_processor.php
===================================================================
diff -u -r11682 -r11690
--- branches/RC/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 11682)
+++ branches/RC/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 11690)
@@ -1338,6 +1338,13 @@
$ret = '' . "\n";
$ret .= '' . "\n";
+
+ if (EDITING_MODE == EDITING_MODE_LAYOUT) {
+ $ret .= ' ';
+ }
+
$ret .= '' . "\n";
$ret .= '' . "\n";
$ret .= '' . "\n";
@@ -1353,7 +1360,8 @@
$url_params = Array ('block' => '#BLOCK#', 'theme-file_event' => '#EVENT#', 'theme_id' => $theme_id, 'source' => $template, 'pass' => 'all,theme-file', 'front' => 1, 'no_amp' => 1);
$edit_template_url = $this->Application->HREF('themes/template_edit', ADMIN_DIRECTORY, $url_params, 'index.php');
- $ret .= "var aTemplateManager = new TemplateManager('" . $edit_template_url . "');\n";
+ $this_url = $this->Application->HREF('', '', Array ('editing_mode' => '#EDITING_MODE#', 'no_amp' => 1));
+ $ret .= "var aTemplateManager = new TemplateManager('" . $edit_template_url . "', '" . $this_url . "', " . (int)EDITING_MODE . ");\n";
$ret .= "var main_title = '" . addslashes( $this->Application->ConfigValue('Site_Name') ) . "';" . "\n";
$ret .= "var base_url = '" . $this->Application->BaseURL() . "';" . "\n";