Document that setSubtitle() and addSubtitle() need safe HTML
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 21 Sep 2012 22:30:28 +0000 (15:30 -0700)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 21 Sep 2012 22:32:35 +0000 (15:32 -0700)
Change-Id: Id5431fc20fb9e9cc755e6a3c393146888a5b666e

includes/OutputPage.php

index 2c32c6a..b69069b 100644 (file)
@@ -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 ) {