From: Brion Vibber Date: Sun, 29 May 2005 11:10:33 +0000 (+0000) Subject: Put global def for $wgDisableHardRedirects where it's used X-Git-Tag: 1.5.0alpha2~36 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=1a9eff84982efb074f36f26d1c7c8d766bedf8be;p=lhc%2Fweb%2Fwiklou.git Put global def for $wgDisableHardRedirects where it's used --- diff --git a/includes/Article.php b/includes/Article.php index fe57a8dee5..e22da0be4c 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -246,7 +246,7 @@ class Article { * Load the revision (including cur_text) into this object */ function loadContent( $noredir = false ) { - global $wgOut, $wgRequest, $wgDisableHardRedirects; + global $wgOut, $wgRequest; if ( $this->mContentLoaded ) return; @@ -386,6 +386,7 @@ class Article { # Gotta hand redirects to special pages differently: # Fill the HTTP response "Location" header and ignore # the rest of the page we're on. + global $wgDisableHardRedirects; if( $globalTitle && !$wgDisableHardRedirects ) { global $wgOut; if ( $rt->getInterwiki() != '' && $rt->isLocal() ) {