Index: branches/unlabeled/unlabeled-1.42.2/core/kernel/utility/http_query.php =================================================================== diff -u -r4252 -r4388 --- branches/unlabeled/unlabeled-1.42.2/core/kernel/utility/http_query.php (.../http_query.php) (revision 4252) +++ branches/unlabeled/unlabeled-1.42.2/core/kernel/utility/http_query.php (.../http_query.php) (revision 4388) @@ -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() Index: branches/unlabeled/unlabeled-1.115.2/core/kernel/application.php =================================================================== diff -u -r4387 -r4388 --- branches/unlabeled/unlabeled-1.115.2/core/kernel/application.php (.../application.php) (revision 4387) +++ branches/unlabeled/unlabeled-1.115.2/core/kernel/application.php (.../application.php) (revision 4388) @@ -205,14 +205,11 @@ // Module items are recalled during url parsing & PhrasesCache is needed already there, // because it's used in their build events. That's why phrases cache initialization is // called from kHTTPQuery in case when mod_rewrite is used - if( !$this->RewriteURLs() ) - { + if (!$this->RewriteURLs()) { $this->Phrases = new PhrasesCache(); - $this->VerifyLanguageId(); $this->Phrases->Init('phrases'); - $this->VerifyThemeId(); } - + if( !$this->RecallVar('UserGroups') ) { $session =& $this->recallObject('Session');