Only link to cvsgraph.php if we actually have a CVS repo.
authorJan Schneider <jan@horde.org>
Tue, 24 Aug 2010 14:02:30 +0000 (16:02 +0200)
committerJan Schneider <jan@horde.org>
Tue, 24 Aug 2010 14:02:30 +0000 (16:02 +0200)
chora/lib/Chora.php

index a05a639..f9016a2 100644 (file)
@@ -325,7 +325,8 @@ class Chora
         }
 
         if ($GLOBALS['VC']->hasFeature('branches')) {
-            if (empty($GLOBALS['conf']['paths']['cvsgraph'])) {
+            if (empty($GLOBALS['conf']['paths']['cvsgraph']) ||
+                !($GLOBALS['VC'] instanceof Horde_Vcs_Cvs)) {
                 $views[] = ($current == 'history')
                     ? '<em class="widget">' . _("Branches") . '</em>'
                     : Horde::widget(self::url('history', $where), _("Branches"), 'widget', '', '', _("_Branches"));