X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FOutputPage.php;h=b69069b02fb3f988af8d6a4a2c8e66cbc0237878;hb=f8710f255cc56f573891e756174168af219c5c95;hp=b020a8e7ebe200764314ebce1fc1e8130bdfbac7;hpb=fa2f786b39bc58f8ccce23e134172342ad8e576c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index b020a8e7eb..b69069b02f 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -851,11 +851,10 @@ class OutputPage extends ContextSource { $this->getContext()->setTitle( $t ); } - /** * Replace the subtile with $str * - * @param $str String|Message: new value of the subtitle + * @param $str String|Message: new value of the subtitle. String should be safe HTML. */ public function setSubtitle( $str ) { $this->clearSubtitle(); @@ -875,7 +874,7 @@ class OutputPage extends ContextSource { /** * Add $str to the subtitle * - * @param $str String|Message to add to the subtitle + * @param $str String|Message to add to the subtitle. String should be safe HTML. */ public function addSubtitle( $str ) { if ( $str instanceof Message ) { @@ -1990,6 +1989,9 @@ class OutputPage extends ContextSource { wfProfileOut( 'Output-skin' ); } + // This hook allows last minute changes to final overall output by modifying output buffer + wfRunHooks( 'AfterFinalPageOutput', array( $this ) ); + $this->sendCacheControl(); ob_end_flush(); wfProfileOut( __METHOD__ ); @@ -3545,7 +3547,7 @@ $templates * * Is equivalent to: * - * $wgOut->addWikiText( "
\n" . wfMsgNoTrans( 'some-error' ) . "\n
" ); + * $wgOut->addWikiText( "
\n" . wfMessage( 'some-error' )->plain() . "\n
" ); * * The newline after opening div is needed in some wikitext. See bug 19226. *