From: Michael M Slusarz Date: Thu, 20 Jan 2011 20:57:36 +0000 (-0700) Subject: Fix badly broken patchsets display X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2166d76d7c4835a3ae6d9110dbf1aaf1a9b9c2b1;p=horde.git Fix badly broken patchsets display --- 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'; }