BUGFIX TableListField should only include CSS from the cms if the cms exists.

This commit is contained in:
Simon Welsh 2012-03-24 11:49:48 +13:00
parent 4be8ab0c62
commit fa999ca2de

View File

@ -1049,8 +1049,10 @@ JS
function printall() {
Requirements::clear();
Requirements::css(CMS_DIR . '/css/typography.css');
Requirements::css(CMS_DIR . '/css/cms_right.css');
if(defined('CMS_DIR')) {
Requirements::css(CMS_DIR . '/css/typography.css');
Requirements::css(CMS_DIR . '/css/cms_right.css');
}
Requirements::css(SAPPHIRE_DIR . '/css/TableListField_print.css');
$this->cachedSourceItems = null;