Chora::fatal(sprintf(_("$fullname: no such file or directory"), $where), '404 Not Found');
}
+/* Scripts needed for both dirs and files. */
+Horde::addScriptFile('prototype.js', 'horde', true);
+Horde::addScriptFile('tables.js', 'horde', true);
+
if ($atdir) {
try {
$atticFlags = (bool)$acts['sa'];
$dir = $VC->getDirObject($where, array('quicklog' => true, 'showattic' => $atticFlags));
$dir->applySort($acts['sbt'], $acts['ord']);
- $dirList = &$dir->queryDirList();
+ $dirList = $dir->queryDirList();
$fileList = $dir->queryFileList($atticFlags);
} catch (Horde_Vcs_Exception $e) {
Chora::fatal($e);
/* Print out the directory header. */
$printAllCols = count($fileList);
- Horde::addScriptFile('prototype.js', 'horde', true);
- Horde::addScriptFile('tables.js', 'horde', true);
require CHORA_TEMPLATES . '/common-header.inc';
require CHORA_TEMPLATES . '/menu.inc';
require CHORA_TEMPLATES . '/headerbar.inc';
if ($conf['hide_restricted'] && Chora::isRestricted($currentDir)) {
continue;
}
- $url = Chora::url('browse', "$where/$currentDir/");
+ $url = Chora::url('browse', '$where' . '/' . $currentDir . '/');
$currDir = Text::htmlAllSpaces($currentDir);
require CHORA_TEMPLATES . '/directory/dir.inc';
}
$url = Chora::url('browse', $fileName);
$readableDate = Chora::readableTime($date);
if ($log) {
- $shortLog = str_replace("\n", ' ',
- trim(substr($log, 0, $conf['options']['shortLogLength'] - 1)));
+ $shortLog = str_replace("\n", ' ', trim(substr($log, 0, $conf['options']['shortLogLength'] - 1)));
if (strlen($log) > 80) {
$shortLog .= '...';
}
}
}
-Horde::addScriptFile('prototype.js', 'horde', true);
-Horde::addScriptFile('tables.js', 'horde', true);
Horde::addScriptFile('QuickFinder.js', 'horde', true);
Horde::addScriptFile('revlog.js', 'chora', true);
require CHORA_TEMPLATES . '/common-header.inc';