- Timestamp:
- Apr 7, 2012, 10:59:33 PM (13 years ago)
- Location:
- branches/2.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/install.php
r12103 r13955 179 179 { 180 180 $language = strip_tags($_GET['language']); 181 182 if (!in_array($language, array_keys($languages->fs_languages))) 183 { 184 $language = PHPWG_DEFAULT_LANGUAGE; 185 } 181 186 } 182 187 else -
branches/2.3/plugins/language_switch/language_switch.inc.php
r12342 r13955 42 42 if (isset($_GET['lang'])) 43 43 { 44 include_once(PHPWG_ROOT_PATH . 'admin/include/languages.class.php'); 45 $languages = new languages(); 46 if (!in_array($_GET['lang'], array_keys($languages->fs_languages))) 47 { 48 $_GET['lang'] = PHPWG_DEFAULT_LANGUAGE; 49 } 50 44 51 if (!empty($_GET['lang']) and file_exists(PHPWG_ROOT_PATH.'language/'.$_GET['lang'].'/common.lang.php')) 45 52 { -
branches/2.3/upgrade.php
r12296 r13955 155 155 { 156 156 $language = strip_tags($_GET['language']); 157 158 if (!in_array($language, array_keys($languages->fs_languages))) 159 { 160 $language = PHPWG_DEFAULT_LANGUAGE; 161 } 157 162 } 158 163 else
Note: See TracChangeset
for help on using the changeset viewer.