MTrackWeb/LinkHandler.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 24 Mar 2011 07:48:01 +0000 (15:48 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 24 Mar 2011 07:48:01 +0000 (15:48 +0800)
MTrackWeb/LinkHandler.php

index a74aaeb..bd6ab23 100644 (file)
@@ -48,7 +48,7 @@ class MTrackWeb_LinkHandler implements MTrack_Interface_WikiLinkHandler
         } else {
             // FIXME: hinted data from reports
             $tkt = new stdClass;
-            $tkt->tid = $no['ticket'];
+            $tkt->id = $no['ticket'];
             $tkt->summary = $no['summary'];
             $tkt->status = '';
             
@@ -63,7 +63,7 @@ class MTrackWeb_LinkHandler implements MTrack_Interface_WikiLinkHandler
         }
         if ($tkt == NULL) {
             $tkt = new stdClass;
-            $tkt->tid = $no;
+            $tkt->id = $no;
             $tkt->summary = 'No such ticket';
             $tkt->status = 'No such ticket';
         }
@@ -74,7 +74,7 @@ class MTrackWeb_LinkHandler implements MTrack_Interface_WikiLinkHandler
         if (!empty($tkt->nsident)) {
             $ident = $tkt->nsident;
         } else {
-            $ident = $tkt->tid;
+            $ident = $tkt->id;
         }
         if (isset($extras['#'])) {
             $anchor = '#' . $extras['#'];