From befbf57fa2ae4b702b5e66f520ada0a2eb49c53d Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 20 Sep 2007 17:39:15 +0200 Subject: [PATCH] [svn r13142] Improved redirection when using studentView --- main/newscorm/lp_controller.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/main/newscorm/lp_controller.php b/main/newscorm/lp_controller.php index 6b53b56f7c..69e5f525a8 100644 --- a/main/newscorm/lp_controller.php +++ b/main/newscorm/lp_controller.php @@ -151,7 +151,19 @@ $fck_attribute['ToolbarSet'] = 'Full'; $fck_attribute['Config']['FullPage'] = true; if($_GET['isStudentView'] == 'true') - $_REQUEST['action'] = 'view'; +{ + if($_REQUEST['action'] != 'list' AND $_REQUEST['action'] != 'view') + { + if(!empty($_REQUEST['lp_id'])) + { + $_REQUEST['action'] = 'view'; + } + else + { + $_REQUEST['action'] = 'list'; + } + } +} switch($_REQUEST['action']) {