Fix code indenting, change default non-logged in comment mode to threaded
This commit is contained in:
@@ -366,9 +366,9 @@ function view_app_comments($versionId, $threadId = 0)
|
|||||||
{
|
{
|
||||||
// FIXME we need to change this so not logged in users can change current view as well
|
// FIXME we need to change this so not logged in users can change current view as well
|
||||||
if (isset($_REQUEST['cmode']))
|
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';
|
$sel[$_SESSION['current']->getPref("comments:mode")] = 'selected';
|
||||||
echo '<td><form method="post" name="smode" action="appview.php">',"\n";
|
echo '<td><form method="post" name="smode" action="appview.php">',"\n";
|
||||||
echo "<b>Application Comments</b> $messageCount total comments ";
|
echo "<b>Application Comments</b> $messageCount total comments ";
|
||||||
echo '<b>Mode</b> <select name="cmode" onchange="document.smode.submit();">',"\n";
|
echo '<b>Mode</b> <select name="cmode" onchange="document.smode.submit();">',"\n";
|
||||||
@@ -404,7 +404,7 @@ function view_app_comments($versionId, $threadId = 0)
|
|||||||
if ($_SESSION['current']->isLoggedIn())
|
if ($_SESSION['current']->isLoggedIn())
|
||||||
$mode = $_SESSION['current']->getPref("comments:mode");
|
$mode = $_SESSION['current']->getPref("comments:mode");
|
||||||
else
|
else
|
||||||
$mode = "flat";
|
$mode = "threaded"; /* default non-logged in users to threaded comment display mode */
|
||||||
|
|
||||||
switch ($mode)
|
switch ($mode)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user