Physikerwelt has uploaded a new change for review.

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

Change subject: Update BaseX client to NTCIR result format
......................................................................

Update BaseX client to NTCIR result format

Change-Id: Ic2822336ef75aee664199abeff1d855229c4f475
---
M includes/engines/MathEngineBaseX.php
1 file changed, 1 insertion(+), 1 deletion(-)


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

diff --git a/includes/engines/MathEngineBaseX.php 
b/includes/engines/MathEngineBaseX.php
index b1fa234..145d04b 100644
--- a/includes/engines/MathEngineBaseX.php
+++ b/includes/engines/MathEngineBaseX.php
@@ -49,7 +49,7 @@
         * @param SimpleXMLElement $xmlRoot
         */
        function processMathResults( $xmlRoot ) {
-               foreach ( $xmlRoot->children( )->children() as $page ) {
+               foreach ( $xmlRoot->run->result->children() as $page ) {
                        $attrs = $page->attributes();
                        $uri = explode( "#", $attrs["id"] );
                        if ( sizeof($uri) != 2 ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic2822336ef75aee664199abeff1d855229c4f475
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

Reply via email to