Index: trunk/core/kernel/utility/http_query.php =================================================================== diff -u -N -r4446 -r4528 --- trunk/core/kernel/utility/http_query.php (.../http_query.php) (revision 4446) +++ trunk/core/kernel/utility/http_query.php (.../http_query.php) (revision 4528) @@ -517,7 +517,7 @@ }while (!$template_found && $template_parts); // try to find template in virtual templates in case if such ability exists - if (constOn('CMS') && !$template_found) { + if ($this->Application->findModule('Name', 'In-CMS', 'Loaded') && !$template_found) { $template_parts = $url_parts; $url_parts = Array();