From bacf4234d4fa55f686549579fc8c918fb4781a79 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 13 Feb 2008 02:36:28 +0000 Subject: [PATCH] * (bug 12938) Fix template expansion and 404 returns for action=raw with section Function returned early, so further processing didn't happen in the section case. --- RELEASE-NOTES | 1 + includes/RawPage.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c1b3f7517e..fa42763f41 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -388,6 +388,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 5262) Fully-qualified $wgStylePath no longer corrupted on XML feeds * (bug 3269) Inaccessible titles ending in '/.' or '/..' now forbidden. * (bug 12935) Fully-qualify archive URLs correctly in deletion message +* (bug 12938) Fix template expansion and 404 returns for action=raw with section == Parser changes in 1.12 == diff --git a/includes/RawPage.php b/includes/RawPage.php index 8b10693889..909c300b30 100644 --- a/includes/RawPage.php +++ b/includes/RawPage.php @@ -194,7 +194,7 @@ class RawPage { if ( !is_null($this->mSection ) ) { global $wgParser; - return $wgParser->getSection ( $rev->getText(), $this->mSection ); + $text = $wgParser->getSection ( $rev->getText(), $this->mSection ); } else $text = $rev->getText(); $found = true; -- 2.20.1