Changeset 5208 for trunk/include/functions.inc.php
- Timestamp:
- Mar 21, 2010, 12:14:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r5200 r5208 584 584 load_language('common.lang'); 585 585 trigger_action('loading_lang'); 586 load_language('l ocal.lang', '', array('no_fallback'=>true) );586 load_language('lang', PHPWG_ROOT_PATH.'local/', array('no_fallback'=>true, 'local'=>true) ); 587 587 $template = new Template(PHPWG_ROOT_PATH.'themes', get_default_theme()); 588 588 } … … 1169 1169 * target_charset - 1170 1170 * no_fallback - the language must be respected 1171 * local - if true, get local language file 1171 1172 * @return boolean success status or a string if options['return'] is true 1172 1173 */ … … 1218 1219 foreach ($languages as $language) 1219 1220 { 1220 $f = $dirname.$language.'/'.$filename; 1221 $f = @$options['local'] ? 1222 $dirname.$language.'.'.$filename: 1223 $dirname.$language.'/'.$filename; 1224 1221 1225 if (file_exists($f)) 1222 1226 {
Note: See TracChangeset
for help on using the changeset viewer.