extra $returnto parameter in returnToMain()
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 1 Apr 2004 12:44:54 +0000 (12:44 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 1 Apr 2004 12:44:54 +0000 (12:44 +0000)
includes/OutputPage.php

index 57ee228..80f0496 100644 (file)
@@ -535,11 +535,13 @@ class OutputPage {
                $this->fatalError( wfMsg( "filenotfound", $name ) );
        }
 
-       function returnToMain( $auto = true )
+       function returnToMain( $auto = true, $returnto = NULL )
        {
                global $wgUser, $wgOut, $wgRequest;
                
-               $returnto = $wgRequest->getText( 'returnto' );
+               if ( $returnto == NULL ) {
+                       $returnto = $wgRequest->getText( 'returnto' );
+               }
 
                $sk = $wgUser->getSkin();
                if ( "" == $returnto ) {