jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
MaxSem: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/GeoData.php b/GeoData.php
index 15bc9f1..eb10f01 100644
--- a/GeoData.php
+++ b/GeoData.php
@@ -51,12 +51,14 @@
$wgHooks['FileUpload'][] = 'GeoDataHooks::onFileUpload';
// Use the proper search backend
-$wgExtensionFunctions[] = function() {
+$wgExtensionFunctions[] = 'efInitGeoData';
+
+function efInitGeoData() {
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: merged
Gerrit-Change-Id: Ie3105705683c09c5f61fd9e40ea7c00d91365646
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/GeoData
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>
Gerrit-Reviewer: MaxSem <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits