Permalink
Browse files

[BugFix] Action was using global variables - now is fetched with opti…

…onal_param
  • Loading branch information...
1 parent 8fbfacd commit 31f6b26d4ff2ce7b67e53c017a91e5b78285904e mark-nielsen committed Apr 6, 2006
Showing with 5 additions and 4 deletions.
  1. +5 −4 mod/lesson/view.php
View
@@ -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)) {

0 comments on commit 31f6b26

Please sign in to comment.