[pLog-svn] r1808 - plog/branches/plog-1.0.1/class/action

mark at devel.plogworld.net mark at devel.plogworld.net
Mon Apr 11 09:24:33 GMT 2005


Author: mark
Date: 2005-04-11 09:24:32 +0000 (Mon, 11 Apr 2005)
New Revision: 1808

Modified:
   plog/branches/plog-1.0.1/class/action/defaultaction.class.php
Log:
Update by Oscar's suggestion, use getOnwerInfo() instead of getOnwer()

Modified: plog/branches/plog-1.0.1/class/action/defaultaction.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/action/defaultaction.class.php	2005-04-11 08:09:52 UTC (rev 1807)
+++ plog/branches/plog-1.0.1/class/action/defaultaction.class.php	2005-04-11 09:24:32 UTC (rev 1808)
@@ -139,20 +139,8 @@
                 $this->_userId = $user->getId();
             }
 
-            // The user object should not get from user_name or user_id, it should 
-            // get from blogInfo
-            $ownerId = $this->_blogInfo->getOwner();
-			$user = $users->getUserInfoFromId( $ownerId );
-            if( !$user ) {
-                $this->_view = new ErrorView( $this->_blogInfo );
-                $this->_view->setValue( 'message', 'error_incorrect_owner_id' );
-                $this->setCommonData();
-                return false;
-            }			
-
-            // export the user
-            if( isset($user) )
-                $this->_view->setValue( "user", $user );
+            // export the owner. The owner information should get from blogInfo directly
+            $this->_view->setValue( "owner", $this->_blogInfo->getOwnerInfo() );
 			
             $t = new Timestamp();
             $todayTimestamp = $t->getTimestamp();




More information about the pLog-svn mailing list