summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-11-27 21:06:28 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-11-27 21:06:28 +0000
commit76ea0a9476cbdaa58e938b8a00cca579fb5f148c (patch)
tree5ea04b1ba1ca16a8da0c211d5e172aadac065fb6 /modules/system/system.admin.inc
parent60862d61ebe0cba83b8a4387c728814b26745926 (diff)
downloadbrdo-76ea0a9476cbdaa58e938b8a00cca579fb5f148c.tar.gz
brdo-76ea0a9476cbdaa58e938b8a00cca579fb5f148c.tar.bz2
#133092 by wmostrey: hide help page links when help module is not enabled, so the links lead to 404s
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 5c93afa49..bc354c77a 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -91,7 +91,7 @@ function system_admin_by_module() {
$modules = module_rebuild_cache();
$menu_items = array();
- $help_arg = drupal_help_arg();
+ $help_arg = module_exists('help') ? drupal_help_arg() : FALSE;
foreach ($modules as $file) {
$module = $file->name;
@@ -105,7 +105,7 @@ function system_admin_by_module() {
if (count($admin_tasks)) {
// Check for help links.
- if (module_invoke($module, 'help', "admin/help#$module", $help_arg)) {
+ if ($help_arg && module_invoke($module, 'help', "admin/help#$module", $help_arg)) {
$admin_tasks[100] = l(t('Get help'), "admin/help/$module");
}