Remove tracking category stuff that accidentally slipped into 61adc1e14
authorKunal Mehta <legoktm@member.fsf.org>
Thu, 27 Oct 2016 17:57:20 +0000 (10:57 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 27 Oct 2016 17:59:10 +0000 (17:59 +0000)
Bug: T149310
Change-Id: I0a3725a72b1467c57280ae1880935dd5fa54ae9e

includes/parser/Parser.php

index 2c15235..669e9fc 100644 (file)
@@ -1446,7 +1446,6 @@ class Parser {
                                $keyword = 'RFC';
                                $urlmsg = 'rfcurl';
                                $cssClass = 'mw-magiclink-rfc';
-                               $trackingCategory = 'magiclinks-rfc-category';
                                $id = $m[5];
                        } elseif ( substr( $m[0], 0, 4 ) === 'PMID' ) {
                                if ( !$this->mOptions->getMagicPMIDLinks() ) {
@@ -1455,14 +1454,12 @@ class Parser {
                                $keyword = 'PMID';
                                $urlmsg = 'pubmedurl';
                                $cssClass = 'mw-magiclink-pmid';
-                               $trackingCategory = 'magiclinks-pmid-category';
                                $id = $m[5];
                        } else {
                                throw new MWException( __METHOD__ . ': unrecognised match type "' .
                                        substr( $m[0], 0, 20 ) . '"' );
                        }
                        $url = wfMessage( $urlmsg, $id )->inContentLanguage()->text();
-                       $this->addTrackingCategory( $trackingCategory );
                        return Linker::makeExternalLink( $url, "{$keyword} {$id}", true, $cssClass, [], $this->mTitle );
                } elseif ( isset( $m[6] ) && $m[6] !== ''
                        && $this->mOptions->getMagicISBNLinks()
@@ -1476,7 +1473,6 @@ class Parser {
                                ' ' => '',
                                'x' => 'X',
                        ] );
-                       $this->addTrackingCategory( 'magiclinks-isbn-category' );
                        return $this->getLinkRenderer()->makeKnownLink(
                                SpecialPage::getTitleFor( 'Booksources', $num ),
                                "ISBN $isbn",