From 00c6364cbbe10aef1015a0d1b0e344d7cea09c7e Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 12 Oct 2004 18:37:56 +0000 Subject: [PATCH] added sesskey to update_module_button(), error reported in moodle forum d=13835 I made a quick fix - it seemed critical to me --- lib/weblib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 163c83e390c..1e541aae37c 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1877,13 +1877,14 @@ function update_course_icon($courseid) { function update_module_button($moduleid, $courseid, $string) { // Prints the editing button on a module "view" page - global $CFG; + global $CFG, $USER; if (isteacheredit($courseid)) { $string = get_string("updatethis", "", $string); return "
framename\" method=\"get\" action=\"$CFG->wwwroot/course/mod.php\">". "". "". + "sesskey\" />". "
"; } else { return "";