diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-12-01 23:17:26 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-12-01 23:17:26 +0000 |
commit | 47f527fbbeb4b631bcdf26ce0e74538c8fc96a11 (patch) | |
tree | 5fc3103b58d2c6ce8b552e5b12b5972c39861fb8 | |
parent | 0ea4e1c5f638a22f7353caaa7515ebffc638e432 (diff) | |
download | brdo-47f527fbbeb4b631bcdf26ce0e74538c8fc96a11.tar.gz brdo-47f527fbbeb4b631bcdf26ce0e74538c8fc96a11.tar.bz2 |
Fixing commit of #100563 (thanks webernet)
-rw-r--r-- | modules/forum/forum.module | 5 | ||||
-rw-r--r-- | modules/profile/profile.module | 5 | ||||
-rw-r--r-- | modules/watchdog/watchdog.module | 7 |
3 files changed, 9 insertions, 8 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module index ed6b971fa..e12a5b6ca 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -92,6 +92,11 @@ function forum_menu($may_cache) { 'type' => MENU_CALLBACK); } } + else { + // Add the CSS for this module + // We put this in !$may_cache so it's only added once per request + drupal_add_css(drupal_get_path('module', 'forum') .'/forum.css'); + } return $items; } diff --git a/modules/profile/profile.module b/modules/profile/profile.module index d3145c931..f6e29b2a7 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -80,11 +80,6 @@ function profile_menu($may_cache) { 'access' => 1, 'type' => MENU_CALLBACK); } - else { - // Add the CSS for this module - // We put this in !$may_cache so it's only added once per request - drupal_add_css(drupal_get_path('module', 'profile') .'/profile.css'); - } return $items; } diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module index d7fb3acf1..0dfd6a2f3 100644 --- a/modules/watchdog/watchdog.module +++ b/modules/watchdog/watchdog.module @@ -51,9 +51,10 @@ function watchdog_menu($may_cache) { 'type' => MENU_CALLBACK); } else { - // Add the CSS for this module - // We put this in !$may_cache so it's only added once per request - drupal_add_css(drupal_get_path('module', 'watchdog') .'/watchdog.css'); + if (arg(0) == 'admin' && arg(1) == 'logs') { + // Add the CSS for this module + drupal_add_css(drupal_get_path('module', 'watchdog') .'/watchdog.css'); + } } return $items; |