BugFix [master] - Convert all menus to 2-2 format (#2627)

convert all app_menu.php files to have all placeholders and languages and use 2-2 format for languages
update app_defaults to convert any items found using legacy values in user_setings, domain_settings and default_settings
This commit is contained in:
Mafoo
2017-06-02 12:17:50 -06:00
committed by FusionPBX
parent 22c317eb2f
commit 4ae8b418d4
64 changed files with 2490 additions and 1851 deletions
+10 -1
View File
@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2010
Portions created by the Initial Developer are Copyright (C) 2008-2017
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -30,6 +30,15 @@
$sql = "update v_domains set domain_enabled = 'true' where domain_enabled = '' or domain_enabled is null";
$db->exec(check_sql($sql));
unset($sql);
//update any domains set to legacy languages
$language = new text;
foreach ($language->legacy_map as $language_code => $legacy_code) {
if(strlen($legacy_code) == 5)
continue;
$sql = "update v_domain_settings set domain_setting_value = '$language_code' where domain_setting_value = '$legacy_code' and deafult_setting_name = 'code' and domain_setting_dubcategory = 'language' and domain_setting_category = 'domain'";
$db->exec(check_sql($sql));
unset($sql);
}
}
?>