r48039 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r48038
|
r48039
|
r48040
>
Date:
01:57, 5 March 2009
Author:
werdna
Status:
ok
Tags:
Comment:
When redlink=1 is specified, and the page exists, redirect to the "view" page.
Modified paths:
/trunk/phase3/includes/EditPage.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/EditPage.php
—
—
@@ -403,6 +403,11 @@
404
404
}
405
405
}
406
406
}
407
+
408
+ // If they used redlink=1 and the page exists, redirect to the main article
409
+ if ( $wgRequest->getBool( 'redlink' ) && $this->mTitle->exists() ) {
410
+ $wgOut->redirect( $this->mTitle->getFullURL() );
411
+ }
407
412
408
413
wfProfileIn( __METHOD__."-business-end" );
409
414
Status & tagging log
18:03, 9 December 2011
Aaron Schulz
(
talk
|
contribs
)
changed the
tags
for r48039
[
removed:
ok]
05:03, 25 March 2009
Brion VIBBER
(
talk
|
contribs
)
changed the
status
of r48039
[
removed:
new
added:
ok]
06:01, 5 March 2009
Aaron Schulz
(
talk
|
contribs
)
changed the
tags
for r48039
[
added:
ok]