Physikerwelt has uploaded a new change for review.

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

Change subject: Remove API from MathSearch
......................................................................

Remove API from MathSearch

The API function has been deleted, but was not completely removed from
MathSearch.php

Change-Id: Ic425d78f963d2ef45d09b1e52a48359bfcfa0e0a
---
M MathSearch.php
1 file changed, 19 insertions(+), 22 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MathSearch 
refs/changes/88/196888/1

diff --git a/MathSearch.php b/MathSearch.php
index a9903fa..50fc3f7 100644
--- a/MathSearch.php
+++ b/MathSearch.php
@@ -33,27 +33,25 @@
 /** @var string $wgMathAnalysisTableName mathoid or mathlatexml */
 $wgMathAnalysisTableName = 'mathlatexml';
 
-$dir = dirname( __FILE__ ) . '/';
-
-$wgAutoloadClasses['MathSearchHooks'] = $dir . 'MathSearch.hooks.php';
-$wgAutoloadClasses['SpecialMathSearch'] = $dir . 
'/includes/special/SpecialMathSearch.php';
-$wgAutoloadClasses['FormulaInfo'] = $dir . 'FormulaInfo.php';
-$wgAutoloadClasses['MathObject'] = $dir . 'MathObject.php';
-$wgAutoloadClasses['MathQueryObject'] = $dir . 'MathQueryObject.php';
-$wgAutoloadClasses['GetEquationsByQuery'] = $dir . 'GetEquationsByQuery.php';
-$wgAutoloadClasses['SpecialMathDebug'] = $dir . 'SpecialMathDebug.php';
-$wgAutoloadClasses['SpecialMathIndex'] = $dir . 'SpecialMathIndex.php';
-$wgAutoloadClasses['SpecialDisplayTopics'] = $dir . 
'/includes/special/SpecialDisplayTopics.php';
-$wgAutoloadClasses['MathEngineMws'] = $dir . 
'/includes/engines/MathEngineMws.php';
-$wgAutoloadClasses['MathEngineBaseX'] = $dir . 
'/includes/engines/MathEngineBaseX.php';
-$wgAutoloadClasses['MathEngineRest'] = $dir . 
'/includes/engines/MathEngineRest.php';
-$wgAutoloadClasses['ImportCsv'] = $dir . 'includes/ImportCsv.php';
-$wgAutoloadClasses['MathSearchUtils'] = $dir . 'includes/MathSearchUtils.php';
-$wgAutoloadClasses['MathSearchTerm'] = $dir . 'includes/MathSearchTerm.php';
+$wgAutoloadClasses['MathSearchHooks'] = __DIR__ . '/MathSearch.hooks.php';
+$wgAutoloadClasses['SpecialMathSearch'] = __DIR__ . 
'//includes/special/SpecialMathSearch.php';
+$wgAutoloadClasses['FormulaInfo'] = __DIR__ . '/FormulaInfo.php';
+$wgAutoloadClasses['MathObject'] = __DIR__ . '/MathObject.php';
+$wgAutoloadClasses['MathQueryObject'] = __DIR__ . '/MathQueryObject.php';
+$wgAutoloadClasses['GetEquationsByQuery'] = __DIR__ . 
'/GetEquationsByQuery.php';
+$wgAutoloadClasses['SpecialMathDebug'] = __DIR__ . '/SpecialMathDebug.php';
+$wgAutoloadClasses['SpecialMathIndex'] = __DIR__ . '/SpecialMathIndex.php';
+$wgAutoloadClasses['SpecialDisplayTopics'] = __DIR__ . 
'//includes/special/SpecialDisplayTopics.php';
+$wgAutoloadClasses['MathEngineMws'] = __DIR__ . 
'//includes/engines/MathEngineMws.php';
+$wgAutoloadClasses['MathEngineBaseX'] = __DIR__ . 
'//includes/engines/MathEngineBaseX.php';
+$wgAutoloadClasses['MathEngineRest'] = __DIR__ . 
'//includes/engines/MathEngineRest.php';
+$wgAutoloadClasses['ImportCsv'] = __DIR__ . '/includes/ImportCsv.php';
+$wgAutoloadClasses['MathSearchUtils'] = __DIR__ . 
'/includes/MathSearchUtils.php';
+$wgAutoloadClasses['MathSearchTerm'] = __DIR__ . 
'/includes/MathSearchTerm.php';
 
 $wgMessagesDirs['MathSeach'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['MathSearch'] = $dir . 'MathSearch.i18n.php';
-$wgExtensionMessagesFiles['MathSearchAlias'] = $dir . 'MathSearch.alias.php';
+$wgExtensionMessagesFiles['MathSearch'] = __DIR__ . '/MathSearch.i18n.php';
+$wgExtensionMessagesFiles['MathSearchAlias'] = __DIR__ . 
'/MathSearch.alias.php';
 
 $wgSpecialPageGroups['MathSearch'] = 'mathsearch';
 $wgSpecialPageGroups['FormulaInfo'] = 'mathsearch';
@@ -69,7 +67,6 @@
 $wgSpecialPages['MathDebug'] = 'SpecialMathDebug';
 $wgSpecialPages['MathIndex'] = 'SpecialMathIndex';
 $wgSpecialPages['DisplayTopics'] = 'SpecialDisplayTopics';
-$wgAPIModules['mathquery'] = 'MathSearchApi';
 
 $wgHooks['LoadExtensionSchemaUpdates'][] = 
'MathSearchHooks::onLoadExtensionSchemaUpdates';
 $wgHooks['MathFormulaRendered']['updateIndex'] = 
'MathSearchHooks::updateMathIndex';
@@ -85,11 +82,11 @@
 $wgAvailableRights[] = 'mathwmcsubmit';
 /** @var boolean $MathSearchWmcServer set true if you offer a math search 
competition server */
 $wgMathWmcMaxResults = 10000;
-$wgAutoloadClasses['SpecialUploadResult'] = $dir . 'SpecialUploadResult.php';
+$wgAutoloadClasses['SpecialUploadResult'] = __DIR__ . 
'/SpecialUploadResult.php';
 $wgSpecialPages['MathUpload'] = 'SpecialUploadResult';
 $wgSpecialPageGroups['MathUpload'] = 'mathsearch';
 $wgMathUploadEnabled = false;
-$wgAutoloadClasses['SpecialMathDownloadResult'] = $dir . 
'SpecialMathDownloadResult.php';
+$wgAutoloadClasses['SpecialMathDownloadResult'] = __DIR__ . 
'/SpecialMathDownloadResult.php';
 $wgSpecialPages['MathDownload'] = 'SpecialMathDownloadResult';
 $wgSpecialPageGroups['MathDownload'] = 'mathsearch';
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic425d78f963d2ef45d09b1e52a48359bfcfa0e0a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MathSearch
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <w...@physikerwelt.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to