http://www.mediawiki.org/wiki/Special:Code/MediaWiki/56238
Revision: 56238
Author: jeroendedauw
Date: 2009-09-12 19:29:17 +0000 (Sat, 12 Sep 2009)
Log Message:
-----------
Changes for 0.3.4
Modified Paths:
--------------
trunk/extensions/Maps/INSTALL
trunk/extensions/Maps/Maps.php
Modified: trunk/extensions/Maps/INSTALL
===================================================================
--- trunk/extensions/Maps/INSTALL 2009-09-12 19:28:49 UTC (rev 56237)
+++ trunk/extensions/Maps/INSTALL 2009-09-12 19:29:17 UTC (rev 56238)
@@ -1,4 +1,4 @@
-[[Maps 0.3.3]]
+[[Maps 0.3.4]]
Once you have downloaded the code, place the 'Maps' directory within your
MediaWiki 'extensions' directory.
Then add the following code to your LocalSettings.php file after the line that
installs Semantic MediaWiki:
Modified: trunk/extensions/Maps/Maps.php
===================================================================
--- trunk/extensions/Maps/Maps.php 2009-09-12 19:28:49 UTC (rev 56237)
+++ trunk/extensions/Maps/Maps.php 2009-09-12 19:29:17 UTC (rev 56238)
@@ -103,12 +103,9 @@
call_user_func(array($values['class'],
'initialize'));
}
}
-
- }
-
- // TODO: move to above loop
- foreach ($egMapsServices as $serviceData) {
- foreach($egMapsAvailableFeatures as $key => $name) {
+
+ // Check for wich services there are handlers for the current
fature, and load them
+ foreach ($egMapsServices as $serviceData) {
if (array_key_exists($key, $serviceData)) {
$file = $serviceData[$key]['local'] ? $egMapsIP
. '/' . $serviceData[$key]['file'] : $IP . '/extensions/' .
$serviceData[$key]['file'];
$wgAutoloadClasses[$serviceData[$key]['class']]
= $file;
@@ -119,9 +116,8 @@
$file = $class['local'] ? $egMapsIP .
'/' . $class['file'] : $IP . '/extensions/' . $class['file'];
$wgAutoloadClasses[$class['class']] =
$file;
}
- }
+ }
}
-
}
return true;
@@ -132,7 +128,7 @@
/**
* This function ensures backward compatibility with Semantic Google Maps and
other extensions
* using $wgGoogleMapsKey instead of $egGoogleMapsKey.
- */
+ */ // TODO: move to gmaps code
function efMapsValidateGoogleMapsKey() {
global $egGoogleMapsKey, $wgGoogleMapsKey;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs