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

mark at devel.lifetype.net mark at devel.lifetype.net
Thu Jun 19 11:37:50 EDT 2008


Author: mark
Date: 2008-06-19 11:37:50 -0400 (Thu, 19 Jun 2008)
New Revision: 6591

Modified:
   plog/branches/lifetype-1.2/class/action/admin/admindoregisterblogaction.class.php
Log:
That taste better.

Modified: plog/branches/lifetype-1.2/class/action/admin/admindoregisterblogaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/admindoregisterblogaction.class.php	2008-06-19 15:20:16 UTC (rev 6590)
+++ plog/branches/lifetype-1.2/class/action/admin/admindoregisterblogaction.class.php	2008-06-19 15:37:50 UTC (rev 6591)
@@ -24,15 +24,17 @@
 			$this->AdminAction( $actionInfo, $request );
 			
 			$this->registerFieldValidator( "blogName", new BlogNameValidator());
-            $this->registerFieldValidator( "blogSubDomain", new DomainValidator(), true );
-            $this->registerFieldValidator( "blogMainDomain", new DomainValidator(), true );
             $this->registerFieldValidator( "blogLocale", new StringValidator());
 			$this->registerFieldValidator( "templateId", new StringValidator());
 			$this->registerFieldValidator( "blogCategory", new IntegerValidator());
-            if( Subdomains::getSubdomainsEnabled()) {
+
+			if( Subdomains::getSubdomainsEnabled()) {
                 $this->registerFieldValidator( "blogSubDomain", new DomainValidator());
                 $this->registerFieldValidator( "blogMainDomain", new DomainValidator());
-            }       
+            } else {
+            	$this->registerFieldValidator( "blogSubDomain", new DomainValidator(), true );
+            	$this->registerFieldValidator( "blogMainDomain", new DomainValidator(), true );
+            }
             
 			$this->setValidationErrorView( new AdminRegisterBlogView( $this->_userInfo ));
 		}



More information about the pLog-svn mailing list