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

mark at devel.lifetype.net mark at devel.lifetype.net
Thu Jun 19 01:55:52 EDT 2008


Author: mark
Date: 2008-06-19 01:55:51 -0400 (Thu, 19 Jun 2008)
New Revision: 6578

Modified:
   plog/branches/lifetype-1.2/class/action/admin/admineditlinksaction.class.php
Log:
Okay, we still need to validate searchTerms here.

Modified: plog/branches/lifetype-1.2/class/action/admin/admineditlinksaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/admineditlinksaction.class.php	2008-06-19 05:54:17 UTC (rev 6577)
+++ plog/branches/lifetype-1.2/class/action/admin/admineditlinksaction.class.php	2008-06-19 05:55:51 UTC (rev 6578)
@@ -1,7 +1,8 @@
 <?php
 
 	lt_include( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
-	lt_include( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
+	lt_include( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
+	lt_include( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/view/admin/adminlinkslistview.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/data/filter/htmlfilter.class.php" );
 
@@ -26,7 +27,8 @@
 			
 			// data validation. In this case if the element is not correct we won't
 			// bother doing anything... we'll just show the whole list of categories
-			$this->registerFieldValidator( "showCategory", new IntegerValidator(), true);
+			$this->registerFieldValidator( "showCategory", new IntegerValidator(), true);
+			$this->registerFieldValidator( "showCategory", new StringValidator(), true);
 			$blogSettings = $this->_blogInfo->getSettings();
 			$this->_linkCategoriesOrder = $blogSettings->getValue( "link_categories_order", MYLINKS_CATEGORIES_NO_ORDER );
 			$this->setValidationErrorView( new AdminLinksListView( $this->_blogInfo, 



More information about the pLog-svn mailing list