Commit b2a8a854 authored by gezzzan's avatar gezzzan

[FIX] theme names should be displayed as nouns (first letter uppercase) in the...

[FIX] theme names should be displayed as nouns (first letter uppercase) in the look&feel admin, thanks chibaguy. Todo: option names. (they are trickier, listing happens with javascript at admin/include_look.php)
parent 9aa8a1a7
......@@ -23,6 +23,7 @@ function prefs_available_list($partial = false)
$themes = $themes + $themelib->list_themes_and_options();
unset($themes['custom_url']); //make sure Custom URL is removed from the list
$themes = array_map('ucfirst', $themes); //make first character of array values uppercase
}
return array(
......
......@@ -10,8 +10,9 @@ function prefs_theme_list($partial = false)
global $prefs;
$themelib = TikiLib::lib('theme');
//get list of themes and related theme options
$themes = $themelib->list_themes();
//get list of themes and make the first character of array values uppercase
$themes = array_map('ucfirst', $themelib->list_themes());
//get list of theme options
$theme_options = [
'' => tr('None'),
];
......
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