diff --git a/include/comment.php b/include/comment.php index 28cab68..669c735 100644 --- a/include/comment.php +++ b/include/comment.php @@ -366,18 +366,18 @@ function view_app_comments($versionId, $threadId = 0) { // FIXME we need to change this so not logged in users can change current view as well if (isset($_REQUEST['cmode'])) - $_SESSION['current']->setpref("comments:mode", $_REQUEST['cmode']); + $_SESSION['current']->setPref("comments:mode", $_REQUEST['cmode']); - $sel[$_SESSION['current']->getpref("comments:mode")] = 'selected'; - echo '
',"\n"; - echo "Application Comments $messageCount total comments "; - echo 'Mode ',"\n"; - echo '
',"\n"; + $sel[$_SESSION['current']->getPref("comments:mode")] = 'selected'; + echo '
',"\n"; + echo "Application Comments $messageCount total comments "; + echo 'Mode ',"\n"; + echo '
',"\n"; } // blank space @@ -404,7 +404,7 @@ function view_app_comments($versionId, $threadId = 0) if ($_SESSION['current']->isLoggedIn()) $mode = $_SESSION['current']->getPref("comments:mode"); else - $mode = "flat"; + $mode = "threaded"; /* default non-logged in users to threaded comment display mode */ switch ($mode) {