[Fusionforge-commits] r15083 - in branches/Branch_5_0/gforge: common/docman www/docman/admin

Julien HEYMAN jheyman at fusionforge.org
Tue Feb 28 15:04:19 CET 2012


Author: jheyman
Date: 2012-02-28 15:04:18 +0100 (Tue, 28 Feb 2012)
New Revision: 15083

Modified:
   branches/Branch_5_0/gforge/common/docman/Document.class.php
   branches/Branch_5_0/gforge/www/docman/admin/index.php
Log:
Don't use textarea to edit xml files in docman

Modified: branches/Branch_5_0/gforge/common/docman/Document.class.php
===================================================================
--- branches/Branch_5_0/gforge/common/docman/Document.class.php	2012-02-28 13:08:08 UTC (rev 15082)
+++ branches/Branch_5_0/gforge/common/docman/Document.class.php	2012-02-28 14:04:18 UTC (rev 15083)
@@ -269,6 +269,9 @@
 		if (preg_match('/html/i',$doctype)) {
 			return true;
 		}	
+		if (preg_match('/xml/i',$doctype)) {
+			return true;
+		}	
 		return false;
 	}	
 

Modified: branches/Branch_5_0/gforge/www/docman/admin/index.php
===================================================================
--- branches/Branch_5_0/gforge/www/docman/admin/index.php	2012-02-28 13:08:08 UTC (rev 15082)
+++ branches/Branch_5_0/gforge/www/docman/admin/index.php	2012-02-28 14:04:18 UTC (rev 15083)
@@ -236,7 +236,7 @@
 
 	<?php
 
-	if ((!$d->isURL()) && ($d->isText())) {
+	if ((!$d->isURL()) && ($d->isText()) && (!$d->isHtml())) {
 		echo '<tr>
 				<td>
 				';




More information about the Fusionforge-commits mailing list