Physikerwelt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/286383
Change subject: Adjust to the new MathIdGenerator
......................................................................
Adjust to the new MathIdGenerator
Change-Id: I07463ce26db4fa18209eec291176d6a12c4b0938
---
M SpecialMathDebug.php
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MathSearch
refs/changes/83/286383/1
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: newchange
Gerrit-Change-Id: I07463ce26db4fa18209eec291176d6a12c4b0938
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MathSearch
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits