From 096058ac66ada549ba6b630a6beeef8ba5084f10 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 3 Jul 2007 19:11:14 +0000 Subject: - Patch #33334 by ChrisKennedy and wulf: admin/modules links to 'throttle configuration page' even when it is disabled. --- modules/system/system.module | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index 8d01bd14b..710f5894c 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -43,8 +43,13 @@ function system_help($path, $arg) { case 'admin/build/themes/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/build/modules': - return t('

Modules are plugins for Drupal that extend its core functionality. Here you can select which modules are enabled. Click on the name of the module in the navigation menu for their individual configuration pages. Once a module is enabled, new permissions might be made available. Modules can automatically be temporarily disabled to reduce server load when your site becomes extremely busy by enabling the throttle.module and checking throttle. The auto-throttle functionality must be enabled on the throttle configuration page after having enabled the throttle module.

-

It is important that update.php is run every time a module is updated to a newer version.

You can find all administration tasks belonging to a particular module on the administration by module page.

', array('@permissions' => url('admin/user/access'), '@throttle' => url('admin/settings/throttle'), '@update-php' => $base_url .'/update.php', '@by-module' => url('admin/by-module'))); + $output = '

'. t('Modules are plugins for Drupal that extend its core functionality. Here you can select which modules are enabled. Once a module is enabled, new permissions might be made available. Modules can automatically be temporarily disabled to reduce server load when your site becomes extremely busy by enabling the throttle.module and checking throttle.', array('@permissions' => url('admin/user/access'))); + if (module_exists('throttle')) { + $output .= ' '. t('The auto-throttle functionality must be enabled on the throttle configuration page after having enabled the throttle module.', array('@throttle' => url('admin/settings/throttle'))); + } + $output .= '

'; + $output .= t('

It is important that update.php is run every time a module is updated to a newer version.

You can find all administration tasks belonging to a particular module on the administration by module page.

', array('@update-php' => $base_url .'/update.php', '@by-module' => url('admin/by-module'))); + return $output; case 'admin/build/modules/uninstall': return '

'. t('The uninstall process removes all data related to a module. To uninstall a module, you must first disable it. Not all modules support this feature.') .'

'; case 'admin/logs/status': -- cgit v1.2.3