Browse files

BUGFIX TableListField should only include CSS from the cms if the cms…

… exists.
  • Loading branch information...
1 parent 4be8ab0 commit fa999ca2de3df1feb9fe8149065dd525eda13e87 @simonwelsh simonwelsh committed Mar 24, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 forms/TableListField.php
View
6 forms/TableListField.php
@@ -1049,8 +1049,10 @@ function ExportLink() {
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;

0 comments on commit fa999ca

Please sign in to comment.