Skip to content
Permalink
Browse files

shorten some code (not really important)

  • Loading branch information...
modus75 committed Jan 16, 2016
1 parent ac37eb5 commit 4bf51fc8e0ce6facc2a2b8037b3dd1f444121c17
Showing with 3 additions and 10 deletions.
  1. +2 −9 include/functions.inc.php
  2. +1 −1 include/functions_user.inc.php
@@ -1159,9 +1159,7 @@ function l10n_args($key_args, $sep = "\n")
*/
function get_themeconf($key)
{
global $template;
return $template->get_themeconf($key);
return $GLOBALS['template']->get_themeconf($key);
}
/**
@@ -1313,12 +1311,7 @@ function conf_get_param($param, $default_value=null)
{
return $conf[$param];
}
elseif (isset($default_value))
{
return $default_value;
}
return null;
return $default_value;
}
@@ -1517,7 +1517,7 @@ function auth_key_login($auth_key)
$user['id'] = $key['user_id'];
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
$page['auth_key_id'] = $key['auth_key_id'];

0 comments on commit 4bf51fc

Please sign in to comment.
You can’t perform that action at this time.