$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;
$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;