From: skodak Date: Tue, 12 Oct 2004 18:47:39 +0000 (+0000) Subject: merged from 14_STABLE, the merging is getting a bit messy :-O X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bfce67a179f9b97e116ecea02a2a956de08fd64a;p=moodle.git 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 --- 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 '';