http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89803
Revision: 89803
Author: foxtrott
Date: 2011-06-09 21:49:14 +0000 (Thu, 09 Jun 2011)
Log Message:
-----------
bugfix (stored wrong element as source for term)
Modified Paths:
--------------
trunk/extensions/SemanticGlossary/SemanticGlossaryBackend.php
trunk/extensions/SemanticGlossary/SpecialSemanticGlossaryBrowser.php
Modified: trunk/extensions/SemanticGlossary/SemanticGlossaryBackend.php
===================================================================
--- trunk/extensions/SemanticGlossary/SemanticGlossaryBackend.php
2011-06-09 21:49:08 UTC (rev 89802)
+++ trunk/extensions/SemanticGlossary/SemanticGlossaryBackend.php
2011-06-09 21:49:14 UTC (rev 89803)
@@ -88,7 +88,7 @@
LingoElement::ELEMENT_TERM => $term,
LingoElement::ELEMENT_DEFINITION => $definition,
LingoElement::ELEMENT_LINK => $link,
- LingoElement::ELEMENT_SOURCE =>
$resultline[0]->getResultSubject()->getTitle()->getPrefixedText()
+ LingoElement::ELEMENT_SOURCE =>
$resultline[0]->getResultSubject()
);
}
Modified: trunk/extensions/SemanticGlossary/SpecialSemanticGlossaryBrowser.php
===================================================================
--- trunk/extensions/SemanticGlossary/SpecialSemanticGlossaryBrowser.php
2011-06-09 21:49:08 UTC (rev 89802)
+++ trunk/extensions/SemanticGlossary/SpecialSemanticGlossaryBrowser.php
2011-06-09 21:49:14 UTC (rev 89803)
@@ -77,7 +77,8 @@
$definition = $glossaryElement->getDefinition(
$key );
$link = $glossaryElement->getLink( $key );
- $tablerows .= $this->$createTableRowMethod(
$source, $term, $definition, $link );
+ $tablerows .= $this->$createTableRowMethod(
$source->getInterwiki() . ":" . $source->getNamespace() . ":" .
$source->getDBkey(),
+ $term, $definition, $link );
$glossaryElement->next();
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs