From: Brion Vibber Date: Wed, 13 Feb 2008 02:36:28 +0000 (+0000) Subject: * (bug 12938) Fix template expansion and 404 returns for action=raw with section X-Git-Tag: 1.31.0-rc.0~49497 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=bacf4234d4fa55f686549579fc8c918fb4781a79;p=lhc%2Fweb%2Fwiklou.git * (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. --- 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;