- Timestamp:
- Apr 7, 2012, 11:00:51 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install.php
r12922 r13956 166 166 { 167 167 $language = strip_tags($_GET['language']); 168 169 if (!in_array($language, array_keys($languages->fs_languages))) 170 { 171 $language = PHPWG_DEFAULT_LANGUAGE; 172 } 168 173 } 169 174 else -
trunk/plugins/language_switch/language_switch.inc.php
r12922 r13956 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 { -
trunk/upgrade.php
r12922 r13956 143 143 { 144 144 $language = strip_tags($_GET['language']); 145 146 if (!in_array($language, array_keys($languages->fs_languages))) 147 { 148 $language = PHPWG_DEFAULT_LANGUAGE; 149 } 145 150 } 146 151 else
Note: See TracChangeset
for help on using the changeset viewer.