shorten some code (not really important)

This commit is contained in:
modus75
2016-01-16 17:20:43 +01:00
parent ac37eb5a50
commit 4bf51fc8e0
2 changed files with 3 additions and 10 deletions
+2 -9
View File
@@ -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;
}