mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
shorten some code (not really important)
This commit is contained in:
parent
ac37eb5a50
commit
4bf51fc8e0
2 changed files with 3 additions and 10 deletions
|
@ -1159,9 +1159,7 @@ function l10n_args($key_args, $sep = "\n")
|
||||||
*/
|
*/
|
||||||
function get_themeconf($key)
|
function get_themeconf($key)
|
||||||
{
|
{
|
||||||
global $template;
|
return $GLOBALS['template']->get_themeconf($key);
|
||||||
|
|
||||||
return $template->get_themeconf($key);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1313,12 +1311,7 @@ function conf_get_param($param, $default_value=null)
|
||||||
{
|
{
|
||||||
return $conf[$param];
|
return $conf[$param];
|
||||||
}
|
}
|
||||||
elseif (isset($default_value))
|
return $default_value;
|
||||||
{
|
|
||||||
return $default_value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1517,7 +1517,7 @@ SELECT
|
||||||
|
|
||||||
$user['id'] = $key['user_id'];
|
$user['id'] = $key['user_id'];
|
||||||
log_user($user['id'], false);
|
log_user($user['id'], false);
|
||||||
trigger_notify('login_success', stripslashes($key['username']));
|
trigger_notify('login_success', $key['username']);
|
||||||
|
|
||||||
// to be registered in history table by pwg_log function
|
// to be registered in history table by pwg_log function
|
||||||
$page['auth_key_id'] = $key['auth_key_id'];
|
$page['auth_key_id'] = $key['auth_key_id'];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue