r51155 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51154‎ | r51155 | r51156 >
Date:17:48, 29 May 2009
Author:sergeychernyshev
Status:deferred
Tags:
Comment:
Fixed imagemap links.
Modified paths:
  • /trunk/extensions/SemanticResultFormats/GraphViz/SRF_Graph.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/GraphViz/SRF_Graph.php
@@ -88,7 +88,7 @@
8989
9090 while ( ($object = $field->getNextObject()) !== false ) {
9191
92 - $text = $object->getShortText($outputmode);
 92+ $text = $object->getShortText($outputmode);
9393
9494 if ($firstcol) {
9595 $firstcolvalue = $object->getShortText($outputmode);
@@ -96,7 +96,10 @@
9797 }
9898
9999 if ($this->m_graphLink==true){
100 - $graphInput .= " \"$text\" [URL = \"[[$text]]\"]; ";
 100+ $nodeLinkTitle = Title::newFromText($text);
 101+ $nodeLinkURL = $nodeLinkTitle->getLocalURL();
 102+
 103+ $graphInput .= " \"$text\" [URL = \"$nodeLinkURL\"]; ";
101104 }
102105
103106 if (!$firstcol) {

Status & tagging log