diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-28 20:29:26 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-28 20:29:26 +0000 |
commit | 551d279939a6b5cc85810d04a4bb11d3ff1e8240 (patch) | |
tree | ac61ae2c2fdcdd08f822610a270766c7951c5569 /modules/system/system.module | |
parent | 0b61ecfe3ae40cfb7065640a01756714c512ecdf (diff) | |
download | brdo-551d279939a6b5cc85810d04a4bb11d3ff1e8240.tar.gz brdo-551d279939a6b5cc85810d04a4bb11d3ff1e8240.tar.bz2 |
- Patch #782788 by joachim, marcvangend: theme settings page help text takes the theme name from the URL.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 6 |
1 files changed, 3 insertions, 3 deletions
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 = '<p>' . t('Set and configure the default theme for your website. Alternative <a href="@themes">themes</a> are available.', array('@themes' => 'http://drupal.org/project/themes')) . '</p>'; return $output; case 'admin/appearance/settings/' . $arg[3]: - $reference = explode('.', $arg[3], 2); - $theme = array_pop($reference); - return '<p>' . t('These options control the display settings for the <code>%template</code> theme. When your site is displayed using this theme, these settings will be used.', array('%template' => $theme)) . '</p>'; + $theme_list = list_themes(); + $theme = $theme_list[$arg[3]]; + return '<p>' . 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'])) . '</p>'; case 'admin/appearance/settings': return '<p>' . 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.') . '</p>'; case 'admin/modules': |