Alex Monk has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/49855


Change subject: (bug 45168) Don't use a closure for wgExtensionFunctions
......................................................................

(bug 45168) Don't use a closure for wgExtensionFunctions

Change-Id: Ie3105705683c09c5f61fd9e40ea7c00d91365646
---
M GeoData.php
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GeoData 
refs/changes/55/49855/1

diff --git a/GeoData.php b/GeoData.php
index 15bc9f1..deef82f 100644
--- a/GeoData.php
+++ b/GeoData.php
@@ -51,12 +51,14 @@
 $wgHooks['FileUpload'][] = 'GeoDataHooks::onFileUpload';
 
 // Use the proper search backend
-$wgExtensionFunctions[] = function() {
+$wgExtensionFunctions[] = 'efGeoData';
+
+function efGeoData() {
        global $wgGeoDataBackend, $wgAPIListModules;
        if ( !isset( $wgAPIListModules['geosearch'] ) ) {
                $wgAPIListModules['geosearch'] = 'ApiQueryGeoSearch' . ucfirst( 
$wgGeoDataBackend );
        }
-};
+}
 
 $wgJobClasses['solrUpdate'] = 'SolrUpdateJob';
 

-- 
To view, visit https://gerrit.wikimedia.org/r/49855
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie3105705683c09c5f61fd9e40ea7c00d91365646
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GeoData
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to