- Split of infos.lang.php

git-svn-id: http://piwigo.org/svn/trunk@398 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
gweltas
2004-03-27 13:24:26 +00:00
parent a2fe0444de
commit 6a9c9eb91f
7 changed files with 19 additions and 115 deletions
+1 -3
View File
@@ -230,8 +230,7 @@ function check_login_authorization()
function init_userprefs($userdata)
{
global $conf, $template, $lang, $lang_info;
include_once(PHPWG_ROOT_PATH . 'language/infos.lang.php');
$language = (!empty($userdata['language']) && !$userdata['is_the_guest'] )?$userdata['language']:$conf['default_lang'];
$style = (!empty($userdata['template'])&& !$userdata['is_the_guest'] )?$userdata['template']:$conf['default_style'];
@@ -251,7 +250,6 @@ function init_userprefs($userdata)
include_once(PHPWG_ROOT_PATH . 'language/' . $language . '/admin.lang.php');
}
$lang_info['current_code']=$language;
$template= setup_style($style);
return;
}