[pLog-svn] r1010 - plog/trunk/class/action/admin

oscar at devel.plogworld.net oscar at devel.plogworld.net
Tue Feb 8 22:21:40 GMT 2005


Author: oscar
Date: 2005-02-08 22:21:39 +0000 (Tue, 08 Feb 2005)
New Revision: 1010

Modified:
   plog/trunk/class/action/admin/adminmainaction.class.php
Log:
fixed an issue with the locale not being updated when switching from one blog to another via the dashboard.

Modified: plog/trunk/class/action/admin/adminmainaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminmainaction.class.php	2005-02-08 21:57:16 UTC (rev 1009)
+++ plog/trunk/class/action/admin/adminmainaction.class.php	2005-02-08 22:21:39 UTC (rev 1010)
@@ -90,17 +90,10 @@
          */
         function perform()
         {
-        	// initialize the view
-        	$this->_view = new AdminNewPostView( $this->_blogInfo );
-            $this->setCommonData();
+			// we don't have to worry about much more here, we can let the
+			// "newPost" action take care of everytyhing now...
+			AdminController::setForwardAction( "newPost" );
 			
-			// launch the event
-			$pm =& PluginManager::getPluginManager();
-			$pm->setBlogInfo( $this->_blogInfo );
-			$pm->setUserInfo( $this->_userInfo );
-			$pm->notifyEvent( EVENT_LOGIN_SUCCESS );
-			$pm->notifyEvent( EVENT_BLOG_LOADED, Array( "blog" => &$this->_blogInfo ));
-			
             // better to return true if everything fine
             return true;
         }




More information about the pLog-svn mailing list