From 1a9eff84982efb074f36f26d1c7c8d766bedf8be Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 29 May 2005 11:10:33 +0000 Subject: [PATCH] Put global def for $wgDisableHardRedirects where it's used --- includes/Article.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() ) { -- 2.20.1