Merge "Removed READ_LATEST default from Revision::newFromPageId()."
[lhc/web/wiklou.git] / includes / content / WikitextContent.php
index 5de09b6..b660fc0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @since WD.1
+ * @since 1.21
  */
 class WikitextContent extends TextContent {
 
@@ -17,7 +17,7 @@ class WikitextContent extends TextContent {
                $text = $this->getNativeData();
                $sect = $wgParser->getSection( $text, $section, false );
 
-               return  new WikitextContent( $sect );
+               return new WikitextContent( $sect );
        }
 
        /**
@@ -71,7 +71,7 @@ class WikitextContent extends TextContent {
         */
        public function addSectionHeader( $header ) {
                $text = wfMessage( 'newsectionheaderdefaultlevel' )
-                               ->inContentLanguage()->params( $header )->text();
+                       ->rawParams( $header )->inContentLanguage()->text();
                $text .= "\n\n";
                $text .= $this->getNativeData();
 
@@ -160,7 +160,7 @@ class WikitextContent extends TextContent {
         * This implementation replaces the first link on the page with the given new target
         * if this Content object is a redirect. Otherwise, this method returns $this.
         *
-        * @since WD.1
+        * @since 1.21
         *
         * @param Title $target
         *
@@ -241,7 +241,7 @@ class WikitextContent extends TextContent {
         * Returns a ParserOutput object resulting from parsing the content's text
         * using $wgParser.
         *
-        * @since    WD.1
+        * @since    1.21
         *
         * @param $content Content the content to render
         * @param $title \Title