r27523 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r27522‎ | r27523 | r27524 >
Date:15:10, 15 November 2007
Author:vasilievvv
Status:old
Tags:
Comment:
Make action=render follow redirects by default. There's no reason why someone may want to render redirects (even if he need, he may use redirect=no)
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Wiki.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Wiki.php
@@ -252,7 +252,7 @@
253253 $article = $this->articleFromTitle( $title );
254254
255255 // Namespace might change when using redirects
256 - if( $action == 'view' && !$request->getVal( 'oldid' ) &&
 256+ if( ( $action == 'view' || $action == 'render' ) && !$request->getVal( 'oldid' ) &&
257257 $request->getVal( 'redirect' ) != 'no' ) {
258258
259259 $dbr = wfGetDB(DB_SLAVE);
Index: trunk/phase3/RELEASE-NOTES
@@ -152,6 +152,7 @@
153153 * If an IP address is blocked as part of a rangeblock, attempting to unblock
154154 the single IP should not unblock the entire range.
155155 * (bug 6695) Fix native language name of Southern Sotho (Sesotho) (st)
 156+* Make action=render follow redirects by default
156157
157158 === API changes in 1.12 ===
158159

Status & tagging log