From: Tim Starling Date: Thu, 1 Apr 2004 12:44:54 +0000 (+0000) Subject: extra $returnto parameter in returnToMain() X-Git-Tag: 1.3.0beta1~658 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=867d40cab7e7a4f2ed4732e090523e2ff3651f7b;p=lhc%2Fweb%2Fwiklou.git extra $returnto parameter in returnToMain() --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 57ee228d81..80f0496e3d 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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 ) {