mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
c64fc7cb1a
commit
bd84ca66a5
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user