From bfce67a179f9b97e116ecea02a2a956de08fd64a Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 12 Oct 2004 18:47:39 +0000 Subject: [PATCH] merged from 14_STABLE, the merging is getting a bit messy :-O 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 b5c2c59029..a9ca3d10cd 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2440,13 +2440,14 @@ function update_course_icon($courseid) { * @todo Finish documenting this function */ function update_module_button($moduleid, $courseid, $string) { - 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 ''; -- 2.39.5