Skip to content

Commit

Permalink
use default lang
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed May 10, 2009
1 parent 985617c commit c60bfd0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions wp-content/language/lang_chooser.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,21 @@
$language_file = 'wp-content/language/'.$language_selected.'.php';

if ( file_exists( $language_file )) {

include $language_file;

} else {

if (signed_in()) {
$Setting =& $db->model('Setting');
$lang = $Setting->find_by(array('name'=>'config.env.lang','profile_id'=>get_profile_id()));

$txt = unserialize($lang->data);
if ($lang)
$txt = unserialize($lang->data);
}

}

if (!(count($txt) > 0))
if (!(count($txt) > 10))
include 'wp-content/language/eng.php';


0 comments on commit c60bfd0

Please sign in to comment.