[pLog-svn] r1822 - plog/branches/plog-1.0.1/class/action/admin
mark at devel.plogworld.net
mark at devel.plogworld.net
Tue Apr 12 12:06:49 GMT 2005
Author: mark
Date: 2005-04-12 12:06:49 +0000 (Tue, 12 Apr 2005)
New Revision: 1822
Modified:
plog/branches/plog-1.0.1/class/action/admin/adminmainaction.class.php
Log:
Modify blogSelect to support action parameter in request URL, action is mean the "forwardAction" after we select blog.
So, now, we can use this blogSelect to implement editPost, deletePost, deleteComment ...etc.
Modified: plog/branches/plog-1.0.1/class/action/admin/adminmainaction.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/action/admin/adminmainaction.class.php 2005-04-12 10:57:48 UTC (rev 1821)
+++ plog/branches/plog-1.0.1/class/action/admin/adminmainaction.class.php 2005-04-12 12:06:49 UTC (rev 1822)
@@ -88,9 +88,15 @@
*/
function perform()
{
+ $this->_nextAction = $this->_request->getValue( "action" );
+
// we don't have to worry about much more here, we can let the
// "newPost" action take care of everytyhing now...
- AdminController::setForwardAction( "newPost" );
+ if ( $this->_nextAction ) {
+ AdminController::setForwardAction( $this->_nextAction );
+ } else {
+ AdminController::setForwardAction( "newPost" );
+ }
// better to return true if everything fine
return true;
More information about the pLog-svn
mailing list