Merge "Document that setSubtitle() and addSubtitle() need safe HTML"
authorNikerabbit <niklas.laxstrom@gmail.com>
Fri, 21 Sep 2012 23:43:04 +0000 (23:43 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 21 Sep 2012 23:43:04 +0000 (23:43 +0000)
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 ) {