r89803 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89802‎ | r89803 | r89804 >
Date:21:49, 9 June 2011
Author:foxtrott
Status:deferred
Tags:
Comment:
bugfix (stored wrong element as source for term)
Modified paths:
  • /trunk/extensions/SemanticGlossary/SemanticGlossaryBackend.php (modified) (history)
  • /trunk/extensions/SemanticGlossary/SpecialSemanticGlossaryBrowser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticGlossary/SpecialSemanticGlossaryBrowser.php
@@ -77,7 +77,8 @@
7878 $definition = $glossaryElement->getDefinition( $key );
7979 $link = $glossaryElement->getLink( $key );
8080
81 - $tablerows .= $this->$createTableRowMethod( $source, $term, $definition, $link );
 81+ $tablerows .= $this->$createTableRowMethod( $source->getInterwiki() . ":" . $source->getNamespace() . ":" . $source->getDBkey(),
 82+ $term, $definition, $link );
8283
8384 $glossaryElement->next();
8485 }
Index: trunk/extensions/SemanticGlossary/SemanticGlossaryBackend.php
@@ -88,7 +88,7 @@
8989 LingoElement::ELEMENT_TERM => $term,
9090 LingoElement::ELEMENT_DEFINITION => $definition,
9191 LingoElement::ELEMENT_LINK => $link,
92 - LingoElement::ELEMENT_SOURCE => $resultline[0]->getResultSubject()->getTitle()->getPrefixedText()
 92+ LingoElement::ELEMENT_SOURCE => $resultline[0]->getResultSubject()
9393 );
9494 }
9595