Browse Source

[svn r13142] Improved redirection when using studentView

Yannick Warnier 17 years ago
parent
commit
befbf57fa2
1 changed files with 13 additions and 1 deletions
  1. 13 1
      main/newscorm/lp_controller.php

+ 13 - 1
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'])
 {