Permalink
Browse files

MDL-26932 full url path for toggle completion form POST

  • Loading branch information...
1 parent 5b97bff commit a5286ae4cc26bce555bde04db97532913549a6ed @jennymgray jennymgray committed with stronk7 Mar 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/lib.php
View
2 course/lib.php
@@ -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 a5286ae

Please sign in to comment.