Merge "TitleFormatter: Remove indirection from getText()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 18 Aug 2018 01:18:38 +0000 (01:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 18 Aug 2018 01:18:38 +0000 (01:18 +0000)
includes/title/MediaWikiTitleCodec.php
includes/title/TitleFormatter.php

index daa4dd5..15f8ff0 100644 (file)
@@ -174,7 +174,7 @@ class MediaWikiTitleCodec implements TitleFormatter, TitleParser {
         * @return string $title->getText()
         */
        public function getText( LinkTarget $title ) {
-               return $this->formatTitle( false, $title->getText(), '' );
+               return $title->getText();
        }
 
        /**
index 4551d75..8859066 100644 (file)
@@ -50,7 +50,7 @@ interface TitleFormatter {
        /**
         * Returns the title text formatted for display, without namespace of fragment.
         *
-        * @note Only minimal normalization is applied. Consider using TitleValue::getText() directly.
+        * @note Consider using LinkTarget::getText() directly, it's identical.
         *
         * @param LinkTarget $title The title to format
         *