Skip to content
This repository
Browse code

Gallery Module Update

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.1.0@42472 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit dc34d1d6e7df7c9775c369f3d43aac5fbf2040af 1 parent 978ca0b
authored September 24, 2007 sminnee committed February 02, 2011

Showing 1 changed file with 8 additions and 6 deletions. Show diff stats Hide diff stats

  1. 14  code/AssetTableField.php
14  code/AssetTableField.php
@@ -91,13 +91,15 @@ function DetailForm() {
91 91
 				'Main'
92 92
 			);
93 93
 			
94  
-			$detailFormFields->addFieldToTab("BottomRoot", 
95  
-				new Tab("Gallery Options",
96  
-					new TextField( "Content", "Caption"	)
97  
-				)
98  
-			);
  94
+			if( class_exists( 'GalleryFile' ) ) {
  95
+				$detailFormFields->addFieldToTab("BottomRoot", 
  96
+					new Tab("Gallery Options",
  97
+						new TextField( "Content", "Caption"	)
  98
+					)
  99
+				);
  100
+			}
99 101
 		}
100  
-		else {
  102
+		else if( class_exists( 'GalleryFile' ) ) {
101 103
 			if( $childData->Extension == 'swf' ) {
102 104
 				$detailFormFields->addFieldToTab("BottomRoot", 
103 105
 					new Tab("Gallery Options",

0 notes on commit dc34d1d

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