]> git.mjollnir.org Git - moodle.git/commitdiff
[BugFix] Action was using global variables - now is fetched with optional_param
authormark-nielsen <mark-nielsen>
Thu, 6 Apr 2006 23:03:08 +0000 (23:03 +0000)
committermark-nielsen <mark-nielsen>
Thu, 6 Apr 2006 23:03:08 +0000 (23:03 +0000)
mod/lesson/view.php

index 2c975977a837874599a32153b57d43ccc6d74836..6431b0a7a13f31c4b6aa32a49ddd058ae2f229a5 100644 (file)
@@ -7,10 +7,11 @@
     require_once('locallib.php');
     require_once('lib.php');
 
-    $id = required_param('id', PARAM_INT);    // Course Module ID
-    $pageid = optional_param('pageid', NULL, PARAM_INT);    // Lesson Page ID
-    $display = optional_param('display', 0, PARAM_INT);  // for teacherview action
-    $mode = optional_param('mode', '', PARAM_ALPHA); // for eacherview action todo use user pref
+    $id      = required_param('id', PARAM_INT);             // Course Module ID
+    $pageid  = optional_param('pageid', NULL, PARAM_INT);   // Lesson Page ID
+    $action  = optional_param('action', '', PARAM_ALPHA);
+    $display = optional_param('display', 0, PARAM_INT);     // for teacherview action
+    $mode    = optional_param('mode', '', PARAM_ALPHA);     // for eacherview action todo use user pref
     
 
     if (! $cm = get_record('course_modules', 'id', $id)) {