From 551d279939a6b5cc85810d04a4bb11d3ff1e8240 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 28 Apr 2010 20:29:26 +0000 Subject: - Patch #782788 by joachim, marcvangend: theme settings page help text takes the theme name from the URL. --- modules/system/system.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index 6947c0150..f24c3af9c 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -93,9 +93,9 @@ function system_help($path, $arg) { $output = '

' . t('Set and configure the default theme for your website. Alternative themes are available.', array('@themes' => 'http://drupal.org/project/themes')) . '

'; return $output; case 'admin/appearance/settings/' . $arg[3]: - $reference = explode('.', $arg[3], 2); - $theme = array_pop($reference); - return '

' . t('These options control the display settings for the %template theme. When your site is displayed using this theme, these settings will be used.', array('%template' => $theme)) . '

'; + $theme_list = list_themes(); + $theme = $theme_list[$arg[3]]; + return '

' . t('These options control the display settings for the %name theme. When your site is displayed using this theme, these settings will be used.', array('%name' => $theme->info['name'])) . '

'; case 'admin/appearance/settings': return '

' . t('These options control the default display settings for your entire site, across all themes. Unless they have been overridden by a specific theme, these settings will be used.') . '

'; case 'admin/modules': -- cgit v1.2.3