Index: trunk/core/kernel/utility/http_query.php =================================================================== diff -u -N -r4418 -r4446 --- trunk/core/kernel/utility/http_query.php (.../http_query.php) (revision 4418) +++ trunk/core/kernel/utility/http_query.php (.../http_query.php) (revision 4446) @@ -158,8 +158,7 @@ } } - if( $this->Application->RewriteURLs() ) - { + if ($this->Application->RewriteURLs()) { if( $this->Application->isDebugMode() ) { $this->Application->Debugger->profileStart('url_parsing'); @@ -173,6 +172,10 @@ } } + else { + $this->Application->VerifyLanguageId(); + $this->Application->VerifyThemeId(); + } } function convertFiles() @@ -435,7 +438,7 @@ $module_prefix = $module_info['Var']; $module_event = new kEvent($module_prefix.':ParseEnv', Array('url_parts' => array_merge(Array($url_part), $url_parts)) ); $this->Application->HandleEvent($module_event); - + if ($module_event->status == erSUCCESS && $this->Get($module_prefix.'_id')) { $item_template = $category_data['CachedItemTemplate']; if ($item_template) { @@ -566,7 +569,7 @@ $passed[] = $module_prefix; $module_event = new kEvent($module_prefix.':ParseEnv', Array('url_parts' => $url_parts) ); if ($process_module) { - $this->Application->HandleEvent($module_event); + $this->Application->HandleEvent($module_event); } $item_id = $this->Get($module_prefix.'_id'); $module_params = Array($module_prefix.'_id' => $item_id ? $item_id : '0' );