jenkins-bot has submitted this change and it was merged.
Change subject: Add a tracking category
......................................................................
Add a tracking category
Bug: 56917
Change-Id: I228919de5c7c550ec0a6e91397475b57a5e49079
---
M Maps.i18n.php
M includes/parserhooks/Maps_DisplayMap.php
2 files changed, 4 insertions(+), 1 deletion(-)
Approvals:
Wikinaut: Looks good to me, but someone else must approve
Jeroen De Dauw: Looks good to me, approved
jenkins-bot: Verified
diff --git a/Maps.i18n.php b/Maps.i18n.php
index 3d4424e..58e281e 100644
--- a/Maps.i18n.php
+++ b/Maps.i18n.php
@@ -21,6 +21,7 @@
'right-geocode' => 'Geocode',
'maps_map' => 'Map',
+ 'maps-tracking-category' => 'Pages with a map rendered by the Maps
extension',
'maps-loading-map' => 'Loading map...',
'maps-load-failed' => 'Could not load the map!',
'maps-markers' => 'Markers',
@@ -263,6 +264,7 @@
'maps-desc' =>
'{{desc|name=Maps|url=http://www.mediawiki.org/wiki/Extension:Maps}}',
'right-geocode' => '{{doc-right|geocode}}',
'maps_map' => '{{Identical|Map}}',
+ 'maps-tracking-category' => 'The name of a category for all pages which
use the <code><nowiki>display_map<nowiki><code> parser extension function or
tag. The category is automatically added unless the feature is disabled.',
'maps-copycoords-prompt' => 'text displayed in javascript prompt to
indicate first press ctrl+c to copy text, and press enter to close prompt',
'maps-others' => '{{Identical|Other}}',
'maps-kml-parsing-failed' => 'text displayed in the event of parsing
failure of kml file(s).',
diff --git a/includes/parserhooks/Maps_DisplayMap.php
b/includes/parserhooks/Maps_DisplayMap.php
index a6136d9..96ad9fd 100644
--- a/includes/parserhooks/Maps_DisplayMap.php
+++ b/includes/parserhooks/Maps_DisplayMap.php
@@ -198,11 +198,12 @@
$parameters['zoom'] = false;
}
+ $this->parser->addTrackingCategory( 'maps-tracking-category' );
return $mapClass->renderMap( $parameters, $this->parser );
}
/**
- * Returns the parser function otpions.
+ * Returns the parser function options.
* @see ParserHook::getFunctionOptions
*
* @since 0.7
--
To view, visit https://gerrit.wikimedia.org/r/93499
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I228919de5c7c550ec0a6e91397475b57a5e49079
Gerrit-PatchSet: 7
Gerrit-Project: mediawiki/extensions/Maps
Gerrit-Branch: master
Gerrit-Owner: Wikinaut <[email protected]>
Gerrit-Reviewer: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: Wikinaut <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits