jenkins-bot has submitted this change and it was merged.
Change subject: Fix special MathDebug
......................................................................
Fix special MathDebug
The new MathIdGenerator is more powerful, compared to
the old one. However the specialpage expects a simple
key value pair, where the key is the id and the value
is the user input tex.
Change-Id: I07463ce26db4fa18209eec291176d6a12c4b0938
---
M SpecialMathDebug.php
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
Physikerwelt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/SpecialMathDebug.php b/SpecialMathDebug.php
index d08c40c..825378c 100644
--- a/SpecialMathDebug.php
+++ b/SpecialMathDebug.php
@@ -206,7 +206,9 @@
$title = Title::newFromText( $titleString );
if ( $title->exists() ) {
$idGenerator = MathIdGenerator::newFromTitle( $title );
- return $idGenerator->getMathTags();
+ $tags = $idGenerator->getMathTags();
+ $keys = $idGenerator->formatIds( $tags );
+ return array_combine( $keys, array_column( $tags,
MathIdGenerator::CONTENT_POS ) );
} else {
return 'Page does not exist';
}
--
To view, visit https://gerrit.wikimedia.org/r/286383
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I07463ce26db4fa18209eec291176d6a12c4b0938
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/MathSearch
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>
Gerrit-Reviewer: Dyiop <[email protected]>
Gerrit-Reviewer: Hcohl <[email protected]>
Gerrit-Reviewer: Physikerwelt <[email protected]>
Gerrit-Reviewer: Whyameri <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits