Commit 47f527fb authored by Steven Wittens's avatar Steven Wittens
Browse files

Fixing commit of #100563 (thanks webernet)

parent 0ea4e1c5
...@@ -92,6 +92,11 @@ function forum_menu($may_cache) { ...@@ -92,6 +92,11 @@ function forum_menu($may_cache) {
'type' => MENU_CALLBACK); '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; return $items;
} }
......
...@@ -80,11 +80,6 @@ function profile_menu($may_cache) { ...@@ -80,11 +80,6 @@ function profile_menu($may_cache) {
'access' => 1, 'access' => 1,
'type' => MENU_CALLBACK); '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; return $items;
} }
......
...@@ -51,9 +51,10 @@ function watchdog_menu($may_cache) { ...@@ -51,9 +51,10 @@ function watchdog_menu($may_cache) {
'type' => MENU_CALLBACK); 'type' => MENU_CALLBACK);
} }
else { else {
// Add the CSS for this module if (arg(0) == 'admin' && arg(1) == 'logs') {
// We put this in !$may_cache so it's only added once per request // Add the CSS for this module
drupal_add_css(drupal_get_path('module', 'watchdog') .'/watchdog.css'); drupal_add_css(drupal_get_path('module', 'watchdog') .'/watchdog.css');
}
} }
return $items; return $items;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment