From 3acc29e3dd0e2fcf32d3fc2c3cdb42d5c612c6bf Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sat, 13 Jun 2009 00:04:23 -0400 Subject: [PATCH] use the Patchset class constants --- chora/patchsets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chora/patchsets.php b/chora/patchsets.php index 803df522e..d053ab588 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'] == 'INITIAL') { + if ($member['from'] == 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 (substr($member['to'], -6) == '(DEAD)') { + if ($member['from'] == Horde_Vcs_Patchset::DEAD) { $file['to'] = '' . _("Deleted") . ''; $file['diff'] = ''; } else { -- 2.11.0