Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

corrected the sesskey code

  • Loading branch information...
commit 29a014c05a5c9e12a7407a096eddbb06a11d1d15 1 parent a39021e
michaelpenne authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  mod/lesson/view.php
3  mod/lesson/view.php
View
@@ -23,7 +23,6 @@
}
require_login($course->id);
- $SESSION->sesskey = !empty($USER->id) ? $USER->sesskey : '';
/// Print the page header
@@ -75,7 +74,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="sesskey" value="'. $USER->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>';
Please sign in to comment.
Something went wrong with that request. Please try again.