var $up = '';
var $jump = '';
+ var $pi;
+ var $basename;
+ var $crumbs;
+ var $dirname;
+ var $repos;
function getAuth()
{
}
- function get($pi)
+ function get($pi='', $args = array())
{
$this->pi = $pi . (strlen($pi) ? $this->bootLoader->ext : '');
if (!$this->repo->id) {
$this->repo = false;
}
+ // if we have an active project.. enforce it..
+ if ($this->currentProject() && $this->repo && $this->repo->project_id != $this->currentProject()) {
+ $this->repo = false; // no repo..
+ }
+
$this->object = null;
$this->ident = null;
} else {
$do->orderBy("shortname ASC");
}
+
+ if ($this->currentProject()) {
+ $do->project_id = $this->currentProject();
+ }
// FIXME -> permissions on repositories goes here..
//$do->ensurePerm($this->authUser);
//$do->fetchAll();
foreach($revs as $hash => $sobject) {
$event = $impl->commitLogToEvent($sobject);
- // add something???
+ // add something???
+ if (!$event) {
+ continue;
+ }
$event->is_dir = $map[$hash]->is_dir;
$event->name = $map[$hash]->name;
$event->basename = $map[$hash]->basename;
+
$map[$hash] = $event; // this was previous only done for directories??? why???
}
return array_values($map);