MDL-81512 core_theme: Reinstate theme category as custom theme settings

This commit is contained in:
raortegar
2024-04-16 17:43:46 +08:00
committed by Michael Hawkins
parent 8cf14f6e70
commit 57df4a1dbb
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -349,6 +349,7 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) { // sp
new lang_string('themeselector', 'admin'), $CFG->wwwroot . '/admin/themeselector.php'));
// Settings page for each theme.
$ADMIN->add('appearance', new admin_category('themes', new lang_string('themesettingscustom', 'admin')));
foreach (core_component::get_plugin_list('theme') as $theme => $themedir) {
$settingspath = "$themedir/settings.php";
if (file_exists($settingspath)) {
+1
View File
@@ -1458,6 +1458,7 @@ $string['themeresetcaches'] = 'Clear theme caches';
$string['themeselect'] = 'Change theme';
$string['themeselector'] = 'Themes';
$string['themesettingsadvanced'] = 'Advanced theme settings';
$string['themesettingscustom'] = 'Custom theme settings';
$string['themeeditsettingsname'] = 'Edit theme settings \'{$a}\'';
$string['themesettingsname'] = 'Theme settings \'{$a}\'';
$string['themeusagereportname'] = 'Theme usage report \'{$a}\'';