MTrackWeb/Browse.php
authorAlan Knowles <alan@akbkhome.com>
Sat, 19 Mar 2011 13:26:25 +0000 (21:26 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sat, 19 Mar 2011 13:26:25 +0000 (21:26 +0800)
MTrackWeb/Browse.php

index 9b4ba79..a3b1a41 100644 (file)
@@ -345,6 +345,7 @@ class MTrackWeb_Browse extends MTrackWeb
         // build a map...
         $map = array();
         foreach($ar as $e) {
+            $e->basename = basename($e->name);
             $map[$e->hash] = $e;
         }
         
@@ -355,9 +356,8 @@ class MTrackWeb_Browse extends MTrackWeb
         
         foreach($revs as $hash => $sobject) {
             $event = $this->repo->impl()->commitLogToEvent($sobject);
-            $event->basename = basename($map[$hash]->name); // this was previous only done for directories??? why???
-            
-            $map[$hash] =  $this->repo->impl()->commitLogToEvent($sobject);
+             
+            $map[$hash] =  $this->repo->impl()->commitLogToEvent($sobject); // this was previous only done for directories??? why???
         }
         return array_values($map);
     }