From: Chuck Hagenbuch Date: Sun, 14 Jun 2009 04:14:42 +0000 (-0400) Subject: check 'status' against Vcs_Patchset constants X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e2b6513306aad13e15151b9af02f5eb544cf7af6;p=horde.git check 'status' against Vcs_Patchset constants --- diff --git a/chora/patchsets.php b/chora/patchsets.php index d053ab588..e880a6146 100644 --- a/chora/patchsets.php +++ b/chora/patchsets.php @@ -67,7 +67,7 @@ while (list($id, $patchset) = each($patchsets)) { $file['file'] = Horde::link(Chora::url('patchsets', $member['file'])) . htmlspecialchars($member['file']) . ''; - if ($member['from'] == Horde_Vcs_Patchset::INITIAL) { + if ($member['status'] == Horde_Vcs_Patchset::INITIAL) { $file['from'] = '' . _("New File") . ''; $file['diff'] = ''; } else { @@ -75,7 +75,7 @@ while (list($id, $patchset) = each($patchsets)) { $file['diff'] = Horde::link(Chora::url('diff', $member['file'], array('r1' => $member['from'], 'r2' => $member['to']))) . ' ' . $diff_img . ''; } - if ($member['from'] == Horde_Vcs_Patchset::DEAD) { + if ($member['status'] == Horde_Vcs_Patchset::DEAD) { $file['to'] = '' . _("Deleted") . ''; $file['diff'] = ''; } else {