r95383 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95382‎ | r95383 | r95384 >
Date:07:02, 24 August 2011
Author:jeroendedauw
Status:deferred
Tags:lamecommitsummary 
Comment:
Modified paths:
  • /trunk/extensions/Maps/Maps.i18n.php (modified) (history)
  • /trunk/extensions/Maps/Maps.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/Maps.i18n.php
@@ -16,6 +16,9 @@
1717 $messages['en'] = array(
1818 // General
1919 'maps-desc' => "Enables embedding of dynamic maps into wiki pages, geocoding of addresses and other geographical operations. ([http://mapping.referata.com/wiki/Examples demos])",
 20+
 21+ 'right-geocode' => 'Geocode',
 22+
2023 'maps_map' => 'Map',
2124 'maps-loading-map' => 'Loading map...',
2225 'maps-load-failed' => 'Could not load the map!',
Index: trunk/extensions/Maps/Maps.php
@@ -274,16 +274,15 @@
275275
276276 $wgAvailableRights[] = 'geocode';
277277
278 -# Users that can manage the surveys.
279 -$wgGroupPermissions['*' ]['geocode'] = true;
280 -$wgGroupPermissions['user' ]['geocode'] = true;
281 -$wgGroupPermissions['autoconfirmed']['geocode'] = true;
282 -$wgGroupPermissions['bot' ]['geocode'] = true;
283 -$wgGroupPermissions['sysop' ]['geocode'] = true;
 278+# Users that can geocode. By default the same as those that can edit.
 279+foreach ( $wgGroupPermissions as $group => $rights ) {
 280+ if ( array_key_exists( 'edit', $rights ) ) {
 281+ $wgGroupPermissions[$group]['geocode'] = $wgGroupPermissions[$group]['edit'];
 282+ }
 283+}
284284
285285 $egMapsGlobalJSVars = array();
286286
287 -
288287 /**
289288 * Initialization function for the Maps extension.
290289 *

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r95376added API module for geocodingjeroendedauw06:29, 24 August 2011

Status & tagging log