From ebdc82203b062564b984122ae16de0abfab71a66 Mon Sep 17 00:00:00 2001 From: Ted Serbinski Date: Sat, 26 Jan 2008 22:08:52 +0000 Subject: [PATCH] #200086, don't load non-existent custom.css file --- README.txt | 3 ++- simplemenu.module | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.txt b/README.txt index fb74c5ab..45bdea57 100644 --- a/README.txt +++ b/README.txt @@ -33,7 +33,8 @@ jQuery Superfish: http://users.tpg.com.au/j_birch/plugins/superfish/ 4.1, 2008-Jan-26 ---------------------- -- #199224, fix display issues in IE6/7 +- #199224, fix display issues in IE6/7 +- #200086, don't load non-existent custom.css file 4.0, 2007-Nov-22 diff --git a/simplemenu.module b/simplemenu.module index ab6450eb..628cbaa2 100644 --- a/simplemenu.module +++ b/simplemenu.module @@ -38,7 +38,7 @@ function simplemenu_footer() { $simplemenu_theme = variable_get('simplemenu_theme', 'original'); drupal_add_css($path .'/simplemenu.css'); - if ($theme != 'custom') { + if ($simplemenu_theme != 'custom') { drupal_add_css($path .'/themes/'. $simplemenu_theme .'/'. $simplemenu_theme .'.css'); }