Commit ce9a4769 authored by Andrew Robert Nicols's avatar Andrew Robert Nicols

Rename get_available_themes to get_user_accessible_themes to make it clearer

Signed-off-by: default avatarAndrew Robert Nicols <andrew.nicols@luns.net.uk>
parent 2ba26ce9
......@@ -548,7 +548,7 @@ function get_all_themes() {
* institution specific are returned.
* @return array subdir => name
*/
function get_available_themes() {
function get_user_accessible_themes() {
global $USER;
$themes = array();
......
......@@ -123,7 +123,7 @@ $extraconfig = array(
// Set up theme
$viewtheme = $view->get('theme');
$allowedthemes = get_available_themes();
$allowedthemes = get_user_accessible_themes();
if ($viewtheme && $THEME->basename != $viewtheme) {
$THEME = new Theme($viewtheme);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment