From 57df4a1dbbfd39ef41ae30a1e982966b8ca503ff Mon Sep 17 00:00:00 2001 From: raortegar Date: Fri, 12 Apr 2024 14:02:25 +0200 Subject: [PATCH] MDL-81512 core_theme: Reinstate theme category as custom theme settings --- admin/settings/appearance.php | 1 + lang/en/admin.php | 1 + 2 files changed, 2 insertions(+) diff --git a/admin/settings/appearance.php b/admin/settings/appearance.php index 0844b6f4ed6..00feea8cc40 100644 --- a/admin/settings/appearance.php +++ b/admin/settings/appearance.php @@ -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)) { diff --git a/lang/en/admin.php b/lang/en/admin.php index 7d2ac4ad500..e995428f486 100644 --- a/lang/en/admin.php +++ b/lang/en/admin.php @@ -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}\'';