From: Siebrand Mazeland Date: Fri, 21 Sep 2012 22:30:28 +0000 (-0700) Subject: Document that setSubtitle() and addSubtitle() need safe HTML X-Git-Tag: 1.31.0-rc.0~22312^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22brouteur%22%2C%28%24id_rubrique%20?a=commitdiff_plain;h=143623d590ac32e885b81d795547779680dd50f9;p=lhc%2Fweb%2Fwiklou.git Document that setSubtitle() and addSubtitle() need safe HTML Change-Id: Id5431fc20fb9e9cc755e6a3c393146888a5b666e --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 2c32c6abe0..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 ) {