r113263 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113262‎ | r113263 | r113264 >
Date:18:34, 7 March 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
follow up to r113170
Modified paths:
  • /trunk/extensions/SemanticResultFormats/GraphViz/SRF_Process.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/GraphViz/SRF_Process.php
@@ -153,8 +153,9 @@
154154 /* SMWDataItem */ $subject = $row[0]->getResultSubject(); // get Subject of the Result
155155 // creates a new node if $val has type wikipage
156156 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() );
159160 }
160161
161162 //

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113170attempt to fix compat, bug 35003jeroendedauw19:21, 6 March 2012