* (bug 12938) Fix template expansion and 404 returns for action=raw with section
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 13 Feb 2008 02:36:28 +0000 (02:36 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 13 Feb 2008 02:36:28 +0000 (02:36 +0000)
Function returned early, so further processing didn't happen in the section case.

RELEASE-NOTES
includes/RawPage.php

index c1b3f75..fa42763 100644 (file)
@@ -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 ==
index 8b10693..909c300 100644 (file)
@@ -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;