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

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Mon Jun 9 12:45:34 EDT 2008


Author: jondaley
Date: 2008-06-09 12:45:34 -0400 (Mon, 09 Jun 2008)
New Revision: 6533

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminsendtrackbacksaction.class.php
Log:
commented why we need to use the 'old' validation method

Modified: plog/branches/lifetype-1.2/class/action/admin/adminsendtrackbacksaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminsendtrackbacksaction.class.php	2008-06-09 16:44:06 UTC (rev 6532)
+++ plog/branches/lifetype-1.2/class/action/admin/adminsendtrackbacksaction.class.php	2008-06-09 16:45:34 UTC (rev 6533)
@@ -45,11 +45,10 @@
 			if( !parent::validate())
 				return( false );
 
-			// fetch the validated data
+                // fetch the validated data
 			$this->_postId = $this->_request->getValue( "postId" );
-			$this->_postLinks = $this->_request->getValue( "postLink" );
-			$this->_trackbackLinks = $this->_request->getValue( "trackbackLink" );
-			
+
+                // Need to do validation here because we need one of the validations to pass
 			$val = new ArrayValidator( new HttpUrlValidator() );
 			if( !$val->validate( $this->_postLinks ) && !$val->validate( $this->_trackbackLinks ) ) {
                 $this->_view = new AdminPostsListView( $this->_blogInfo );
@@ -58,7 +57,11 @@
 
                 return false;
             }   
-			
+
+                // fetch the validated data
+			$this->_postLinks = $this->_request->getValue( "postLink" );
+			$this->_trackbackLinks = $this->_request->getValue( "trackbackLink" );
+            
 			return true;
 		}        
 



More information about the pLog-svn mailing list