Index: trunk/extensions/SemanticResultFormats/GraphViz/SRF_Process.php |
— | — | @@ -153,8 +153,9 @@ |
154 | 154 | /* SMWDataItem */ $subject = $row[0]->getResultSubject(); // get Subject of the Result |
155 | 155 | // creates a new node if $val has type wikipage |
156 | 156 | if ( $subject->getDIType() == SMWDataItem::TYPE_WIKIPAGE ) { |
157 | | - /* SMWDataValue */ $dataValue = SMWDataValueFactory::newDataItemValue( $subject, SMWDIProperty::getDataItemClassNameForId( $subject->getDIType() ) ); |
158 | | - $node = $this->m_process->makeNode( $dataValue->getShortWikiText(), $dataValue->getShortWikiText() ); |
| 157 | + $wikiPageValue = new SMWWikiPageValue( '_wpg' ); |
| 158 | + $wikiPageValue->setDataItem( $subject ); |
| 159 | + $node = $this->m_process->makeNode( $wikiPageValue->getShortWikiText(), $wikiPageValue->getShortWikiText() ); |
159 | 160 | } |
160 | 161 | |
161 | 162 | // |