@ -67,7 +67,7 @@ if (isset($config['cache'])) {
}
$data = $repo->data();
$data = $repo->data($_REQUEST);
if (!array_key_exists('index', $data['categories'])) {
$data['categories']['index'] = array(
@ -23,7 +23,7 @@ class RepositoryBase {
return $ret;
function data () {
function data ($options) {
$data = array(
'categories' => array(),
'templates' => array(),
@ -14,8 +14,8 @@ class RepositoryDir extends RepositoryBase {
return $ts;
$data = parent::data();
$data = parent::data($options);
$d = opendir($this->path);
while ($f = readdir($d)) {
@ -29,8 +29,8 @@ class RepositoryGit extends RepositoryBase {
$d = popen("cd " . escapeShellArg($this->path) . "; git ls-tree {$this->branchEsc}", "r");
while ($r = fgets($d)) {