Fix stray $1 in some Special:Tags error messages
authorgeorggi <bmp2558@gmail.com>
Wed, 9 Dec 2015 12:07:33 +0000 (14:07 +0200)
committerTTO <at.light@live.com.au>
Wed, 9 Dec 2015 12:13:04 +0000 (12:13 +0000)
Removed '$1' on line 395 of SpecialTags.php, it should
no longer appear in the text.

Bug: T97639
Change-Id: I7f225df684c20f4d0606f001b90a7fb97595600d

includes/specials/SpecialTags.php

index 97f2380..0cef7b0 100644 (file)
@@ -392,7 +392,7 @@ class SpecialTags extends SpecialPage {
                $func = $activate ? 'canActivateTag' : 'canDeactivateTag';
                $result = ChangeTags::$func( $tag, $user );
                if ( !$result->isGood() ) {
-                       $out->wrapWikiMsg( "<div class=\"error\">\n$1" . $result->getWikiText() .
+                       $out->addWikiText( "<div class=\"error\">\n" . $result->getWikiText() .
                                "\n</div>" );
                        if ( !$result->isOK() ) {
                                return;