From 81e8121bd73b660f5ee2fd047665b82d970788bf Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 21 Jan 2009 16:51:30 -0700 Subject: [PATCH] Remove CVS/SVN-specifc code. --- chora/annotate.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/chora/annotate.php b/chora/annotate.php index 4808210c1..7e751302a 100644 --- a/chora/annotate.php +++ b/chora/annotate.php @@ -17,26 +17,23 @@ Chora::checkError($fl); $rev_ob = $VC->getRevisionObject(); /* Retrieve the desired revision from the GET variable. */ -$rev = Util::getFormData('rev', '1.1'); -if (!$VC->isValidRevision($rev)) { - Chora::fatal(sprintf(_("Revision %s not found"), $rev), '404 Not Found'); +$rev = Util::getFormData('rev'); +if (!$rev || !$VC->isValidRevision($rev)) { + Chora::fatal(sprintf(_("Revision %s not found"), $rev ? $rev : _("NONE")), '404 Not Found'); } switch (Util::getFormData('actionID')) { case 'log': if (isset($fl->logs[$rev])) { $log = $fl->logs[$rev]; - $out = '' . _("Author") . ': ' . Chora::showAuthorName($log->queryAuthor(), true) . '
' . + echo '' . _("Author") . ': ' . Chora::showAuthorName($log->queryAuthor(), true) . '
' . '' . _("Date") . ': ' . Chora::formatDate($log->queryDate()) . '

' . Chora::formatLogMessage($log->queryLog()); - } else { - $out = ''; } - echo $out; exit; } -$ann = &$VC->getAnnotateObject($fl); +$ann = $VC->getAnnotateObject($fl); Chora::checkError($lines = $ann->doAnnotate($rev)); $title = sprintf(_("Source Annotation of %s (revision %s)"), Text::htmlAllSpaces($where), $rev); @@ -60,8 +57,6 @@ require CHORA_TEMPLATES . '/annotate/header.inc'; $author = ''; $style = 0; -/* Use this counter so that we can give each tooltip object a unique - * id attribute (which we use to set the tooltip text later). */ while (list(,$line) = each($lines)) { $lineno = $line['lineno']; $author = Chora::showAuthorName($line['author']); -- 2.11.0