Changeset 628
- Timestamp:
- 05/19/2011 01:27:29 AM (12 months ago)
- File:
-
- 1 edited
-
trunk/WordPress/plugin/transposh/transposh.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/transposh.php
r623 r628 290 290 // This one allows to redirect to a static element which we can find, since the redirection will remove 291 291 // the target language, we are able to avoid nasty redirection loops 292 if (is_404 ()) {292 if (is_404()) { 293 293 global $wp; 294 294 if (isset($wp->query_vars['pagename']) && file_exists(ABSPATH . $wp->query_vars['pagename'])) { // Hmm … … 1093 1093 $lang = ''; 1094 1094 } 1095 if (!$lang) return $locale;1095 if (!$lang) $lang = $this->options->get_default_language(); 1096 1096 list ($l, $n, $f, $locale) = explode(',', transposh_consts::$languages[$lang]); 1097 1097 if ($locale) { … … 1100 1100 return $lang; 1101 1101 } 1102 return $ locale;1102 return $this->options->get_default_language(); 1103 1103 } 1104 1104
Note: See TracChangeset
for help on using the changeset viewer.
