Normal requirements fails quietly when there is no css, so themed requirements should do the same

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39638 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-08-06 23:24:22 +00:00
parent c64fc7cb1a
commit bd84ca66a5

View File

@ -100,8 +100,9 @@ class Requirements {
&& isset($_CSS_MANIFEST[$name]['themes'][$theme]))
Requirements::css($_CSS_MANIFEST[$name]['themes'][$theme], $media);
else if(isset($_CSS_MANIFEST[$name]) && $_CSS_MANIFEST[$name]['unthemed']) Requirements::css($_CSS_MANIFEST[$name]['unthemed'], $media);
else user_error("themedCSS - No CSS file '$name.css' found.", E_USER_WARNING);
else if(isset($_CSS_MANIFEST[$name]) && isset($_CSS_MANIFEST[$name]['unthemed'])) Requirements::css($_CSS_MANIFEST[$name]['unthemed'], $media);
// Normal requirements fails quietly when there is no css - we should do the same
// else user_error("themedCSS - No CSS file '$name.css' found.", E_USER_WARNING);
}
/**