Skip to content
This repository
Browse code

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

… exists.
  • Loading branch information...
commit fa999ca2de3df1feb9fe8149065dd525eda13e87 1 parent 4be8ab0
Simon Welsh authored March 24, 2012

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  forms/TableListField.php
6  forms/TableListField.php
@@ -1049,8 +1049,10 @@ function ExportLink() {
1049 1049
 
1050 1050
 	function printall() {
1051 1051
 		Requirements::clear();
1052  
-		Requirements::css(CMS_DIR . '/css/typography.css');
1053  
-		Requirements::css(CMS_DIR . '/css/cms_right.css');
  1052
+		if(defined('CMS_DIR')) {
  1053
+			Requirements::css(CMS_DIR . '/css/typography.css');
  1054
+			Requirements::css(CMS_DIR . '/css/cms_right.css');
  1055
+		}
1054 1056
 		Requirements::css(SAPPHIRE_DIR . '/css/TableListField_print.css');
1055 1057
 		
1056 1058
 		$this->cachedSourceItems = null;

0 notes on commit fa999ca

Please sign in to comment.
Something went wrong with that request. Please try again.