From 2166d76d7c4835a3ae6d9110dbf1aaf1a9b9c2b1 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 20 Jan 2011 13:57:36 -0700 Subject: [PATCH] Fix badly broken patchsets display --- chora/patchsets.php | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/chora/patchsets.php b/chora/patchsets.php index 6b61eacf2..3493e3dcd 100644 --- a/chora/patchsets.php +++ b/chora/patchsets.php @@ -57,20 +57,14 @@ while (list($id, $patchset) = each($patchsets)) { ->link(array('title' => sprintf("Commits to %s", $id))) . htmlspecialchars($VC->abbrev($id)) . ''; - $files = $tags = array(); - - $commitDate = Chora::formatDate($patchset['date']); - $readableDate = Chora::readableTime($patchset['date'], true); - $author = Chora::showAuthorName($patchset['author'], true); - $logMessage = Chora::formatLogMessage($patchset['log']); - - if (!empty($patchset['branch'])) { - $tags = $patchset['branch']; - } - - if (!empty($patchset['tag'])) { - $tags = array_merge($tags, $patchset['tag']); - } + $commitDate = Chora::formatDate($patchset['log']->queryDate()); + $readableDate = Chora::readableTime($patchset['log']->queryDate(), true); + $author = Chora::showAuthorName($patchset['log']->queryAuthor(), true); + $logMessage = Chora::formatLogMessage($patchset['log']->queryLog()); + $tags = array_merge( + $patchset['log']->queryBranch(), + $patchset['log']->queryTags() + ); require CHORA_TEMPLATES . '/patchsets/ps.inc'; } -- 2.11.0