From e2b6513306aad13e15151b9af02f5eb544cf7af6 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sun, 14 Jun 2009 00:14:42 -0400 Subject: [PATCH] check 'status' against Vcs_Patchset constants --- chora/patchsets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.11.0