Commit db8dd3d9 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Change text to 'no theme selected' in page theme selector (bug #731064)



This is more accurate than 'Site Default'.  When there's no page theme,
users looking at the page don't necessarily see the site default theme
if their institution has overridden it for them.

Change-Id: I60e2de14b5812c4ceef6b017c7636d3e9454bc85
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent da3420bf
......@@ -273,6 +273,7 @@ $string['access'] = 'Access';
$string['noaccesstoview'] = 'You do not have permission to access this page';
$string['changeviewtheme'] = 'The theme you have chosen for this page is no longer available to you. Please select a different theme.';
$string['nothemeselected'] = 'No theme selected';
// Templates
$string['Template'] = 'Template';
......
......@@ -613,7 +613,7 @@ function get_user_accessible_themes() {
}
}
$themes = array_merge(array('sitedefault' => '- ' . get_string('sitedefault', 'admin') . ' (' . $themes[get_config('theme')] . ') -'), $themes);
$themes = array_merge(array('sitedefault' => get_string('nothemeselected', 'view')), $themes);
unset($themes['custom']);
return $themes;
......
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