[pLog-svn] r6639 - plog/branches/lifetype-1.2/class/summary/action

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sat Jun 21 16:45:51 EDT 2008


Author: jondaley
Date: 2008-06-21 16:45:51 -0400 (Sat, 21 Jun 2008)
New Revision: 6639

Modified:
   plog/branches/lifetype-1.2/class/summary/action/doblogregistration.class.php
Log:
Added validation.  Rev 4311 took out the domain validator - probably just because the domain is validated below, but I think it is good to remove the html anyway.

Modified: plog/branches/lifetype-1.2/class/summary/action/doblogregistration.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/summary/action/doblogregistration.class.php	2008-06-21 20:44:27 UTC (rev 6638)
+++ plog/branches/lifetype-1.2/class/summary/action/doblogregistration.class.php	2008-06-21 20:45:51 UTC (rev 6639)
@@ -10,7 +10,6 @@
 	lt_include( PLOG_CLASS_PATH."class/locale/locales.class.php" );
     lt_include( PLOG_CLASS_PATH."class/data/validator/domainvalidator.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/net/http/subdomains.class.php" );
-	lt_include( PLOG_CLASS_PATH."class/config/config.class.php" );	
     lt_include( PLOG_CLASS_PATH."class/data/filter/htmlfilter.class.php" );    
 
 	/**
@@ -31,9 +30,8 @@
 	    	$this->registerFieldValidator( "blogName", new BlogNameValidator());
 	    	$this->registerFieldValidator( "blogCategoryId", new IntegerValidator());
 	    	$this->registerFieldValidator( "blogLocale", new StringValidator());
-			$config =& Config::getConfig();
-			$this->registerField( "blogSubDomain" );
-			$this->registerField( "blogMainDomain" );
+			$this->registerFieldValidator( "blogSubDomain", new StringValidator(), true );
+			$this->registerFieldValidator( "blogMainDomain", new StringValidator(), true );
 	    	$view = new doBlogRegistrationView();
 	    	$view->setErrorMessage( $this->_locale->tr("register_error_creating_blog"));
 	    	$this->setValidationErrorView( $view );   



More information about the pLog-svn mailing list