mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02:00
- Split of infos.lang.php
git-svn-id: http://piwigo.org/svn/trunk@398 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user