[pLog-svn] r2148 - plog/trunk/class/summary/action

ork at devel.plogworld.net ork at devel.plogworld.net
Tue May 31 21:40:43 GMT 2005


Author: ork
Date: 2005-05-31 21:40:43 +0000 (Tue, 31 May 2005)
New Revision: 2148

Modified:
   plog/trunk/class/summary/action/dofinishregister.class.php
Log:
missing includes


Modified: plog/trunk/class/summary/action/dofinishregister.class.php
===================================================================
--- plog/trunk/class/summary/action/dofinishregister.class.php	2005-05-31 21:30:43 UTC (rev 2147)
+++ plog/trunk/class/summary/action/dofinishregister.class.php	2005-05-31 21:40:43 UTC (rev 2148)
@@ -1,10 +1,12 @@
 <?php
 
-	include_once( PLOG_CLASS_PATH."class/summary/action/registeraction.class.php" );
-	include_once( PLOG_CLASS_PATH."class/summary/mail/confirmemailmessage.class.php" );
-	include_once( PLOG_CLASS_PATH."class/template/cachecontrol.class.php" );	
+    include_once( PLOG_CLASS_PATH."class/summary/action/registeraction.class.php" );
+    include_once( PLOG_CLASS_PATH."class/summary/mail/confirmemailmessage.class.php" );
+    include_once( PLOG_CLASS_PATH."class/template/cachecontrol.class.php" );    
+    include_once( PLOG_CLASS_PATH."class/dao/articlecategories.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/users.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
+    include_once( PLOG_CLASS_PATH."class/dao/bloginfo.class.php" );
 
     /**
      * finish the user and blog registration process
@@ -12,19 +14,19 @@
      * @subpackage action
      */
     class doFinishRegister extends RegisterAction 
-	{
+    {
         var $need_confirm;
 
-		//{{{function doFinishRegister( $actionInfo, $request )
+        //{{{function doFinishRegister( $actionInfo, $request )
         /**
          * constructor
          */
-		function doFinishRegister( $actionInfo, $request )
-		{
-			$this->RegisterAction( $actionInfo, $request );			
+        function doFinishRegister( $actionInfo, $request )
+        {
+            $this->RegisterAction( $actionInfo, $request );         
             $this->_view = new SummaryView( "registererror" );
             $this->need_confirm = $this->_config->getValue("need_email_confirm_registration");
-		}	
+        }   
         //}}}
 
         //{{{function perform()
@@ -34,18 +36,18 @@
         function perform()
         {
             $userId = $this->createUser();
-			if( !$userId )
-				return false;
-				
+            if( !$userId )
+                return false;
+                
             $blogId = $this->createBlog($userId);
-			if( !$blogId )
-				return false;
+            if( !$blogId )
+                return false;
 
-			// let's assume that everything went fine at this point...
+            // let's assume that everything went fine at this point...
             $this->doneRegister();
             
             // reset the summary cache, since there's new information to show
-			CacheControl::resetSummaryCache();	            
+            CacheControl::resetSummaryCache();              
         }
         //}}}
 
@@ -61,7 +63,7 @@
             $this->userEmail = $this->_request->getValue("userEmail");
 
             $users = new Users();
-			$user = new UserInfo( $this->userName, 
+            $user = new UserInfo( $this->userName, 
                         $this->userPassword, 
                         $this->userEmail, 
                         "", // about myself
@@ -95,20 +97,20 @@
             $this->blogName = stripslashes($this->_request->getValue("blogName"));
             $this->blogLocale = $this->_request->getValue("blogLocale");
             $this->templateId = $this->_request->getValue("templateId");
-		
+        
             // get the default locale configured for the site
             $blogs = new Blogs();
-			$blogInfo = new BlogInfo( $this->blogName, $userId, "", "" );
+            $blogInfo = new BlogInfo( $this->blogName, $userId, "", "" );
 
             if($this->need_confirm == 1){
-			    $blogInfo->setStatus( BLOG_STATUS_UNCONFIRMED );
+                $blogInfo->setStatus( BLOG_STATUS_UNCONFIRMED );
             } else {
-			    $blogInfo->setStatus( BLOG_STATUS_ACTIVE );
+                $blogInfo->setStatus( BLOG_STATUS_ACTIVE );
             }
 
-			$locale = Locales::getLocale( $this->blogLocale );
-			$blogInfo->setLocale( $locale );
-			$blogInfo->setTemplate( $this->templateId );
+            $locale = Locales::getLocale( $this->blogLocale );
+            $blogInfo->setLocale( $locale );
+            $blogInfo->setTemplate( $this->templateId );
             $newblogId = $blogs->addBlog( $blogInfo );
 
             if( !$newblogId ) {
@@ -119,8 +121,8 @@
 
             // get info about the blog
             $blogInfo = $blogs->getBlogInfo( $newblogId );
-			
-			$this->_blogInfo = $blogInfo;
+            
+            $this->_blogInfo = $blogInfo;
 
             // if the blog was created, we can add some basic information
             // add a category
@@ -152,10 +154,10 @@
                 $this->_view->setValue("need_email_confirm",1);
                 $this->sendConfirmEmail();
             }
-			else {
-				// add the blog object to the template
-				$this->_view->setValue( "blog", $this->_blogInfo );
-			}
+            else {
+                // add the blog object to the template
+                $this->_view->setValue( "blog", $this->_blogInfo );
+            }
             
             $this->setCommonData();
             return true;




More information about the pLog-svn mailing list