r9262 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r9261‎ | r9262 | r9263 >
Date:11:10, 29 May 2005
Author:vibber
Status:old
Tags:
Comment:
Put global def for $wgDisableHardRedirects where it's used
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -246,7 +246,7 @@
247247 * Load the revision (including cur_text) into this object
248248 */
249249 function loadContent( $noredir = false ) {
250 - global $wgOut, $wgRequest, $wgDisableHardRedirects;
 250+ global $wgOut, $wgRequest;
251251
252252 if ( $this->mContentLoaded ) return;
253253
@@ -386,6 +386,7 @@
387387 # Gotta hand redirects to special pages differently:
388388 # Fill the HTTP response "Location" header and ignore
389389 # the rest of the page we're on.
 390+ global $wgDisableHardRedirects;
390391 if( $globalTitle && !$wgDisableHardRedirects ) {
391392 global $wgOut;
392393 if ( $rt->getInterwiki() != '' && $rt->isLocal() ) {

Status & tagging log