From: Kunal Mehta Date: Thu, 27 Oct 2016 17:57:20 +0000 (-0700) Subject: Remove tracking category stuff that accidentally slipped into 61adc1e14 X-Git-Tag: 1.31.0-rc.0~5017 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=0d4e0135c4cd04beebbd689375983e7aadf9b529;p=lhc%2Fweb%2Fwiklou.git Remove tracking category stuff that accidentally slipped into 61adc1e14 Bug: T149310 Change-Id: I0a3725a72b1467c57280ae1880935dd5fa54ae9e --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 2c152359cd..669e9fc126 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -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",