Alex Trofimov 12 лет назад
Родитель
Сommit
463b95cb2c

+ 1 - 0
inc/classes/BxDolRequest.php

@@ -132,6 +132,7 @@ class BxDolRequest extends BxDol {
         header('Status: 404 Not Found');
         header('HTTP/1.0 404 Not Found');
 
+        require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
         bx_import('BxDolTemplate');
         bx_import('BxDolLanguages');
         $oTemplate = BxDolTemplate::getInstance();

+ 5 - 0
modules/boonex/english/data/langs/system.xml

@@ -1798,7 +1798,12 @@ If it is not enabled then please consider implement this optimization, since it
 	<string name="_sys_ps_group_title_me_only"><![CDATA[Me only]]></string>
 	<string name="_sys_ps_group_title_members"><![CDATA[Members]]></string>
 	<string name="_sys_ps_group_title_public"><![CDATA[Public]]></string>
+	<string name="_sys_request_module_not_found_cpt"><![CDATA[Module was not found]]></string>
+	<string name="_sys_request_module_not_found_cnt"><![CDATA[Module({0}) was not found]]></string>
 	<string name="_sys_request_page_not_found_cpt"><![CDATA[Page was not found]]></string>
+	<string name="_sys_request_page_not_found_cnt"><![CDATA[Page({0}) was not found in module({1})]]></string>
+	<string name="_sys_request_method_not_found_cpt"><![CDATA[Method was not found]]></string>
+	<string name="_sys_request_method_not_found_cnt"><![CDATA[Method({0}) was not found in module({1})]]></string>
 	<string name="_sys_search_main_title"><![CDATA[Search Home]]></string>
 	<string name="_sys_spam_detected"><![CDATA[Sorry, it looks like you are trying to submit spam, if you believe that it is not spam please submit false positive report here: {0}]]></string>
 	<string name="_sys_splash_btn_start"><![CDATA[Start]]></string>

+ 1 - 0
scripts/check_unused_lang.php

@@ -47,6 +47,7 @@ class BxDolCheckUnusedLangsCmd
             '/^_adm_form_txt_field_checker_/',
             '/^_sys_uploader_/',
             '/^_adm_[A-Za-z0-9_-]+_cnf_/',
+            '/^_sys_request_[A-Za-z0-9_-]+_not_found_(cpt|cnt)/',
 
             /* wall */
             '/^_bx_timeline_alert_module_/',