MTrackWeb/Log.php
authorAlan Knowles <alan@akkbhome.com>
Thu, 10 Mar 2011 11:44:04 +0000 (19:44 +0800)
committerAlan Knowles <alan@akkbhome.com>
Thu, 10 Mar 2011 11:44:04 +0000 (19:44 +0800)
MTrackWeb/Log.php

index e1d122f..ad8863a 100644 (file)
@@ -45,11 +45,11 @@ class MTrackWeb_Log extends MTrackWeb
         
         $this->crumbs = array();
         $location = '';
+        $crumbs = explode('/', $file);
+        array_unshift($crumbs,'');
         foreach($crumbs as $path) 
         {
-            //if (count($this->crumbs) && !strlen($path)) {
-            //    continue;
-            //}
+            
             $c = new StdClass;
             $c->name = strlen($path) ? $path : '[root]';
             $c->root = strlen($path) ? 0 : 1;
@@ -88,7 +88,7 @@ class MTrackWeb_Log extends MTrackWeb
             
         $last_day = null;
         $even = 1;
-        $hist = $this->repo->history($pi, 100, $object, $ident);
+        $hist = $this->repo->history($file, 100, $object, $ident);
          
         if (empty($hist)) {
             return;