https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113170
Revision: 113170
Author: jeroendedauw
Date: 2012-03-06 19:21:32 +0000 (Tue, 06 Mar 2012)
Log Message:
-----------
attempt to fix compat, bug 35003
Modified Paths:
--------------
trunk/extensions/SemanticResultFormats/GraphViz/SRF_Process.php
Modified: trunk/extensions/SemanticResultFormats/GraphViz/SRF_Process.php
===================================================================
--- trunk/extensions/SemanticResultFormats/GraphViz/SRF_Process.php
2012-03-06 19:21:07 UTC (rev 113169)
+++ trunk/extensions/SemanticResultFormats/GraphViz/SRF_Process.php
2012-03-06 19:21:32 UTC (rev 113170)
@@ -150,11 +150,11 @@
$row = $res->getNext(); // get initial row (i.e. array of
SMWResultArray)
while ( $row !== false ) {
- $subject = $row[0]->getResultSubject(); // get Subject
of the Result
+ /* SMWDataItem */ $subject =
$row[0]->getResultSubject(); // get Subject of the Result
// creates a new node if $val has type wikipage
- if ( $subject->getTypeID() == '_wpg' ) {
- $val = $subject->getShortWikiText();
- $node = $this->m_process->makeNode( $val, $val
);
+ if ( $subject->getDIType() ==
SMWDataItem::TYPE_WIKIPAGE ) {
+ /* SMWDataValue */ $dataValue =
SMWDataValueFactory::newDataItemValue( $subject,
SMWDIProperty::getDataItemClassNameForId( $subject->getDIType() ) );
+ $node = $this->m_process->makeNode(
$dataValue->getShortWikiText(), $dataValue->getShortWikiText() );
}
//
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs