From e7b00f8fee93441a68f081183a3c6fd2ccfbca85 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 23 Mar 2004 10:16:32 +0000 Subject: [PATCH] allowing redirects in inclusions --- includes/Parser.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 47c6598727..a1fb01f988 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1223,12 +1223,11 @@ class Parser $this->mIncludeCount[$dbk] = 0; } if ( ++$this->mIncludeCount[$dbk] <= MAX_INCLUDE_REPEAT ) { - $row = wfGetArray( "cur", array("cur_text"), array( - "cur_namespace" => $title->getNamespace(), - "cur_title" => $title->getDBkey() ), $fname ); - if ( $row !== false ) { + $article = new Article( $title ); + $articleContent = $article->getContentWithoutUsingSoManyDamnGlobals(); + if ( $articleContent !== false ) { $found = true; - $text = $row->cur_text; + $text = $articleContent; # Escaping and link table handling # Not required for preSaveTransform() -- 2.20.1