dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eba4472
)
extra $returnto parameter in returnToMain()
author
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 1 Apr 2004 12:44:54 +0000
(12:44 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 1 Apr 2004 12:44:54 +0000
(12:44 +0000)
includes/OutputPage.php
patch
|
blob
|
history
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
57ee228
..
80f0496
100644
(file)
--- 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 ) {