From fb9c1df0b942df39115a9130dfa76e2b3fd33217 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 5 Sep 2010 02:21:38 +0000 Subject: - Patch #328357 by bleen18, sun, skilip, alanburke, jenlampton, manarth, fgm, tstoeckler: allow module .info files to add CSS/JS. --- includes/theme.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index adbffbe92..9a2cc0fe0 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -604,9 +604,7 @@ function list_themes($refresh = FALSE) { } } foreach ($theme->info['scripts'] as $script => $path) { - if (file_exists($path)) { - $theme->scripts[$script] = $path; - } + $theme->scripts[$script] = $path; } if (isset($theme->info['engine'])) { $theme->engine = $theme->info['engine']; @@ -2274,6 +2272,7 @@ function template_preprocess_page(&$variables) { $variables['theme_hook_suggestions'] = $suggestions; } } + /** * Process variables for html.tpl.php * -- cgit v1.2.3