https://www.mediawiki.org/wiki/Special:Code/MediaWiki/109867
Revision: 109867
Author: wikinaut
Date: 2012-01-23 23:01:29 +0000 (Mon, 23 Jan 2012)
Log Message:
-----------
adding "$IP" to the require() statements to avoid failures during
maintenance/php update.php runs (GoogleMaps with this patch stops the
update.php because the paths are then incorrect)
Modified Paths:
--------------
trunk/extensions/GoogleMaps/GoogleMaps.php
trunk/extensions/GoogleMaps/SpecialGoogleMapsKML.php
Modified: trunk/extensions/GoogleMaps/GoogleMaps.php
===================================================================
--- trunk/extensions/GoogleMaps/GoogleMaps.php 2012-01-23 22:59:59 UTC (rev
109866)
+++ trunk/extensions/GoogleMaps/GoogleMaps.php 2012-01-23 23:01:29 UTC (rev
109867)
@@ -5,9 +5,9 @@
# Copyright Evan Miller ([email protected])
# Modifications copyright Joshua Hodge
-# Version 0.9.4, 27 Jan 2009
+# Version 0.9.41, 23 Jan 2012
-define('GOOGLE_MAPS_EXTENSION_VERSION', '0.9.4');
+define('GOOGLE_MAPS_EXTENSION_VERSION', '0.9.41');
// if we're not in the mediawiki framework just die
if( !defined( 'MEDIAWIKI' ) ) {
@@ -18,13 +18,13 @@
// FIXME: use autoloader and other standards here
// require the message file
-require( 'extensions/GoogleMaps/GoogleMaps.i18n.php' );
-require( 'extensions/GoogleMaps/export/GoogleMapsExporter.php' );
-require( 'extensions/GoogleMaps/export/GoogleMapsJsExporter.php' );
-require( 'extensions/GoogleMaps/export/GoogleMapsKmlExporter.php' );
-require( 'extensions/GoogleMaps/export/GoogleMapsImgExporter.php' );
-require( 'extensions/GoogleMaps/SpecialGoogleMapsKML.php' );
-require( 'extensions/GoogleMaps/GoogleMaps.body.php' );
+require( "$IP/extensions/GoogleMaps/GoogleMaps.i18n.php" );
+require( "$IP/extensions/GoogleMaps/export/GoogleMapsExporter.php" );
+require( "$IP/extensions/GoogleMaps/export/GoogleMapsJsExporter.php" );
+require( "$IP/extensions/GoogleMaps/export/GoogleMapsKmlExporter.php" );
+require( "$IP/extensions/GoogleMaps/export/GoogleMapsImgExporter.php" );
+require( "$IP/extensions/GoogleMaps/SpecialGoogleMapsKML.php" );
+require( "$IP/extensions/GoogleMaps/GoogleMaps.body.php" );
function wfGoogleMaps_CommentJS(&$pParser, &$pText) {
global $wgGoogleMaps;
Modified: trunk/extensions/GoogleMaps/SpecialGoogleMapsKML.php
===================================================================
--- trunk/extensions/GoogleMaps/SpecialGoogleMapsKML.php 2012-01-23
22:59:59 UTC (rev 109866)
+++ trunk/extensions/GoogleMaps/SpecialGoogleMapsKML.php 2012-01-23
23:01:29 UTC (rev 109867)
@@ -1,6 +1,6 @@
<?php
-require_once("includes/SpecialPage.php");
+require_once( "$IP/includes/SpecialPage.php" );
// TODO: Captions here
// Bugs in main renderer (oops)
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs