From 9c29a5779bae420cb5f0719f2118ca18921f2506 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 13 Mar 2007 23:00:36 +0100 Subject: [PATCH] [svn r11564] Added default view mode selection (otherwise was not displaying the posts at all) --- main/forum/viewthread.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main/forum/viewthread.php b/main/forum/viewthread.php index 645212b9db..ddc4e1eed9 100644 --- a/main/forum/viewthread.php +++ b/main/forum/viewthread.php @@ -225,7 +225,10 @@ if ($message<>'PostDeletedSpecial') // in this case the first and only post of t $viewmode=$_GET['view']; $_SESSION['view']=$viewmode; } - + if(empty($viewmode)) + { + $viewmode = 'flat'; + } /* ----------------------------------------------------------- @@ -273,6 +276,8 @@ if ($message<>'PostDeletedSpecial') // in this case the first and only post of t break; case 'nested': include_once('viewthread_nested.inc.php'); + default: + include_once('viewthread_flat.inc.php'); break; } } // if ($message<>'PostDeletedSpecial') // in this case the first and only post of the thread is removed