[pLog-svn] r1822 - plog/branches/plog-1.0.1/class/action/admin
Oscar Renalias
phunkphorce at gmail.com
Tue Apr 12 12:23:53 GMT 2005
Cool, that's just what I was going to suggest :-)
Oscar
On Apr 12, 2005 3:06 PM, mark at devel.plogworld.net
<mark at devel.plogworld.net> wrote:
> 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;
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-svn
>
More information about the pLog-svn
mailing list