Changeset 6937
- Timestamp:
- 10/05/08 09:35:26 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.5/amp_conf/htdocs/admin/functions.inc.php
r6902 r6937 863 863 $function = $mod."_check_extensions"; 864 864 if (function_exists($function)) { 865 $prev_domain = textdomain(NULL); 865 866 if (isset($_COOKIE['lang']) && is_dir("./modules/$mod/i18n/".$_COOKIE['lang'])) { 866 $prev_domain = textdomain(NULL);867 867 bindtextdomain($mod,"./modules/$mod/i18n"); 868 868 bind_textdomain_codeset($mod, 'utf8'); 869 869 textdomain($mod); 870 870 $module_usage = $function($exten); 871 textdomain($prev_domain);872 871 } else { 872 textdomain('amp'); 873 873 $module_usage = $function($exten); 874 874 } … … 876 876 $exten_usage[$mod] = $module_usage; 877 877 } 878 textdomain($prev_domain); 878 879 } 879 880 } … … 924 925 $function = $mod."_check_destinations"; 925 926 if (function_exists($function)) { 927 $prev_domain = textdomain(NULL); 926 928 if (isset($_COOKIE['lang']) && is_dir("./modules/$mod/i18n/".$_COOKIE['lang'])) { 927 $prev_domain = textdomain(NULL);928 929 bindtextdomain($mod,"./modules/$mod/i18n"); 929 930 bind_textdomain_codeset($mod, 'utf8'); 930 931 textdomain($mod); 931 932 $module_usage = $function($dest); 932 textdomain($prev_domain);933 933 } else { 934 textdomain('amp'); 934 935 $module_usage = $function($dest); 935 936 } … … 937 938 $dest_usage[$mod] = $module_usage; 938 939 } 940 textdomain($prev_domain); 939 941 } 940 942 } … … 1084 1086 $function = $mod."_getdestinfo"; 1085 1087 if (function_exists($function)) { 1088 $prev_domain = textdomain(NULL); 1086 1089 if (isset($_COOKIE['lang']) && is_dir("./modules/$mod/i18n/".$_COOKIE['lang'])) { 1087 $prev_domain = textdomain(NULL);1088 1090 bindtextdomain($mod,"./modules/$mod/i18n"); 1089 1091 bind_textdomain_codeset($mod, 'utf8'); 1090 1092 textdomain($mod); 1091 1093 $check_module = $function($target); 1092 textdomain($prev_domain);1093 1094 } else { 1095 textdomain('amp'); 1094 1096 $check_module = $function($target); 1095 1097 } 1098 textdomain($prev_domain); 1096 1099 if ($check_module !== false) { 1097 1100 $found_owner = true;
