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:
3673b18
)
When redlink=1 is specified, and the page exists, redirect to the "view" page.
author
Andrew Garrett
<werdna@users.mediawiki.org>
Thu, 5 Mar 2009 01:57:18 +0000
(
01:57
+0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Thu, 5 Mar 2009 01:57:18 +0000
(
01:57
+0000)
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
5f2ce38
..
2a64bb1
100644
(file)
--- a/
includes/EditPage.php
+++ b/
includes/EditPage.php
@@
-403,6
+403,11
@@
class EditPage {
}
}
}
+
+ // If they used redlink=1 and the page exists, redirect to the main article
+ if ( $wgRequest->getBool( 'redlink' ) && $this->mTitle->exists() ) {
+ $wgOut->redirect( $this->mTitle->getFullURL() );
+ }
wfProfileIn( __METHOD__."-business-end" );