Permalink
Browse files

MDL-26932 full url path for toggle completion form POST

  • Loading branch information...
jennymgray committed Mar 25, 2011
1 parent 92a387b commit d5842f7a355349d2b3cb1c24b2884f854931a236
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/lib.php
View
@@ -1707,7 +1707,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
$extraclass = '';
}
echo "
-<form class='togglecompletion$extraclass' method='post' action='togglecompletion.php'><div>
+<form class='togglecompletion$extraclass' method='post' action='".$CFG->wwwroot."/course/togglecompletion.php'><div>
<input type='hidden' name='id' value='{$mod->id}' />
<input type='hidden' name='sesskey' value='".sesskey()."' />
<input type='hidden' name='completionstate' value='$newstate' />

0 comments on commit d5842f7

Please sign in to comment.