https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113263

Revision: 113263
Author:   jeroendedauw
Date:     2012-03-07 18:34:09 +0000 (Wed, 07 Mar 2012)
Log Message:
-----------
follow up to r113170

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-07 18:24:52 UTC (rev 113262)
+++ trunk/extensions/SemanticResultFormats/GraphViz/SRF_Process.php     
2012-03-07 18:34:09 UTC (rev 113263)
@@ -153,8 +153,9 @@
                        /* SMWDataItem */ $subject = 
$row[0]->getResultSubject(); // get Subject of the Result
                        // creates a new node if $val has type wikipage
                        if ( $subject->getDIType() == 
SMWDataItem::TYPE_WIKIPAGE ) {
-                               /* SMWDataValue */ $dataValue = 
SMWDataValueFactory::newDataItemValue( $subject, 
SMWDIProperty::getDataItemClassNameForId( $subject->getDIType() ) );
-                               $node = $this->m_process->makeNode( 
$dataValue->getShortWikiText(), $dataValue->getShortWikiText() );
+                               $wikiPageValue = new SMWWikiPageValue( '_wpg' );
+                               $wikiPageValue->setDataItem( $subject );
+                               $node = $this->m_process->makeNode( 
$wikiPageValue->getShortWikiText(), $wikiPageValue->getShortWikiText() );
                        }
 
                //


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to