[pLog-svn] r6482 - plog/branches/lifetype-1.2/class/action/admin

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sat May 24 15:39:22 EDT 2008


Author: jondaley
Date: 2008-05-24 15:39:22 -0400 (Sat, 24 May 2008)
New Revision: 6482

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminaddpostaction.class.php
   plog/branches/lifetype-1.2/class/action/admin/adminupdatepostaction.class.php
Log:
allow html in posts

Modified: plog/branches/lifetype-1.2/class/action/admin/adminaddpostaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminaddpostaction.class.php	2008-05-24 19:38:36 UTC (rev 6481)
+++ plog/branches/lifetype-1.2/class/action/admin/adminaddpostaction.class.php	2008-05-24 19:39:22 UTC (rev 6482)
@@ -25,7 +25,7 @@
         	$this->AdminPostManagementCommonAction( $actionInfo, $request );
         	
         	// for data validation purposes, posts must have at least a topic, an intro text, and a category
-        	$this->registerFieldValidator( "postText", new StringValidator());
+        	$this->registerFieldValidator( "postText", new StringValidator( true ));
         	$this->registerFieldValidator( "postTopic", new StringValidator());
         	$this->registerFieldValidator( "postCategories", new ArrayValidator( new IntegerValidator()));
         	$this->registerFieldValidator( "globalArticleCategoryId", new IntegerValidator(), true );

Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdatepostaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdatepostaction.class.php	2008-05-24 19:38:36 UTC (rev 6481)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdatepostaction.class.php	2008-05-24 19:39:22 UTC (rev 6482)
@@ -34,7 +34,7 @@
         	$this->AdminPostManagementCommonAction( $actionInfo, $request );
         	
         	// for data validation purposes, posts must have at least a topic, an intro text, and a category
-        	$this->registerFieldValidator( "postText", new StringValidator());
+        	$this->registerFieldValidator( "postText", new StringValidator( true ));
         	$this->registerFieldValidator( "postTopic", new StringValidator());
         	$this->registerFieldValidator( "postCategories", new ArrayValidator( new IntegerValidator()));
         	$this->registerFieldValidator( "postId", new IntegerValidator());



More information about the pLog-svn mailing list