Remove isFile() checks that just make dealing with branches harder
authorChuck Hagenbuch <chuck@horde.org>
Sat, 13 Jun 2009 03:05:17 +0000 (23:05 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Sat, 13 Jun 2009 03:05:17 +0000 (23:05 -0400)
chora/browsefile.php
chora/patchsets.php

index d4c3ea3..0c1854f 100644 (file)
@@ -19,10 +19,6 @@ if ($atdir) {
     exit;
 }
 
-if (!$VC->isFile($fullname)) {
-    Chora::fatal(sprintf(_("$fullname: no such file or directory"), $where), '404 Not Found');
-}
-
 $onb = Horde_Util::getFormData('onb');
 try {
     $fl = $VC->getFileObject($where, array('branch' => $onb));
index 9380659..803df52 100644 (file)
@@ -21,10 +21,6 @@ if (!$GLOBALS['VC']->hasFeature('patchsets')) {
     exit;
 }
 
-if (!$VC->isFile($fullname)) {
-    Chora::fatal(sprintf(_("%s: no such file or directory"), $where), '404 Not Found');
-}
-
 $ps_opts = array();
 if ($ps_id = Horde_Util::getFormData('ps')) {
     $ps_opts['range'] = array($ps_id);