Skip to content

Commit

Permalink
mod-quiz MDL-19813 $OUPUT and cm defined correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
pichetp committed Sep 29, 2009
1 parent 8570cff commit 4acb204
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mod/quiz/attemptlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,12 @@ public function review_url($attemptid) {
* as the $button parameter.
*/
public function update_module_button() {
global $OUTPUT ;
if (has_capability('moodle/course:manageactivities',
get_context_instance(CONTEXT_COURSE, $this->course->id))) {
return $OUTPUT->update_module_button($cm->id, 'quiz');


return $OUTPUT->update_module_button($this->cm->id, 'quiz');
} else {
return '';
}
Expand Down

0 comments on commit 4acb204

Please sign in to comment.