so extensions might influence the output.
now be customized via the $wgNamespaceProtection array. By default,
editing pages in the MediaWiki namespace requires "editinterface"
permissions, just as before.
+* (bug 8567) Added hook RawPageViewBeforeOutput just before the text is blown out in action=raw,
+ so extensions might influence the output.
== Languages updated ==
$form : PreferencesForm object
&$html : HTML to append to
+'RawPageViewBeforeOutput': Right before the text is blown out in action=raw
+&$obj: RawPage object
+&$text: The text that's going to be the output
+
'SiteNoticeBefore': Before the sitenotice/anonnotice is composed
&$siteNotice: HTML returned as the sitenotice
Return true to allow the normal method of notice selection/rendering to work,
# allow the client to cache this for 24 hours
$mode = $this->mPrivateCache ? 'private' : 'public';
header( 'Cache-Control: '.$mode.', s-maxage='.$this->mSmaxage.', max-age='.$this->mMaxage );
- echo $this->getRawText();
+ $text = $this->getRawText();
+
+ if( !wfRunHooks( 'RawPageViewBeforeOutput', array( &$this, &$text ) ) ) {
+ wfDebug( __METHOD__ . ': RawPageViewBeforeOutput hook broke raw page output.' );
+ }
+
+ echo $text;
$wgOut->disable();
}