Index: trunk/kernel/units/general/main_event_handler.php =================================================================== diff -u -N -r4762 -r4971 --- trunk/kernel/units/general/main_event_handler.php (.../main_event_handler.php) (revision 4762) +++ trunk/kernel/units/general/main_event_handler.php (.../main_event_handler.php) (revision 4971) @@ -78,7 +78,7 @@ WHERE ThemeId = '.$processed_params['m_theme']; $theme_name = $this->Conn->GetOne($sql); $this->Application->setCache('theme_names', $processed_params['m_theme'], $theme_name); - + } $ret .= $theme_name.'/'; } @@ -105,17 +105,17 @@ $template = getArrayValue($url_params, 't'); $category_template = $processed_params['m_cat_id'] ? $this->Application->getCache('category_templates', $processed_params['m_cat_id']) : ''; - + // remove template from url if it is category index cached template if ($template == $category_template || strtolower($template) == '__default__') { $template = ''; } - + if ($template) { $ret .= $template.'/'; } unset($url_params['t']); - + $event->setEventParam('url_params', $url_params); $event->setEventParam('env_string', strtolower($ret) ); }