Permalink
Browse files

added sesskey code to remove the sesskey error from updating the less…

…on from view.php
  • Loading branch information...
1 parent d3354f5 commit 4ea3ce2fcbfae3da3cfdb84393d9f910c86a49ce michaelpenne committed Jan 21, 2005
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/lesson/view.php
View
@@ -23,7 +23,7 @@
}
require_login($course->id);
-
+ $SESSION->sesskey = !empty($USER->id) ? $USER->sesskey : '';
/// Print the page header
@@ -75,6 +75,7 @@
if (isteacheredit($course->id)) {
$button = '<table><tr><td>';
$button .= '<form target="'. $CFG->framename .'" method="get" action="'. $CFG->wwwroot .'/course/mod.php">'.
+ '<input type="hidden" name="sesskey" value="'. $SESSION->sesskey .'" />'.
'<input type="hidden" name="update" value="'. $cm->id .'" />'.
'<input type="hidden" name="return" value="true" />'.
'<input type="submit" value="'. get_string('editlessonsettings', 'lesson') .'" /></form>';

0 comments on commit 4ea3ce2

Please sign in to comment.