MDL-21198 $OUTPUT->single_button() resurrection, hopefully much easier to use than $OUTPUT->button(); fixed some regressions and code style improvements

This commit is contained in:
Petr Skoda
2010-01-03 15:46:14 +00:00
parent 3cd5305f11
commit 5c2ed7e215
62 changed files with 170 additions and 243 deletions
+2 -2
View File
@@ -224,7 +224,7 @@ class quiz_access_manager {
if ($strconfirmstartattempt) {
$form->button->add_confirm_action($strconfirmstartattempt);
}
echo $OUTPUT->button($form);
echo $OUTPUT->single_button($form);
}
echo "</div>\n";
}
@@ -750,7 +750,7 @@ class securewindow_access_rule extends quiz_access_rule_base {
$form->button->title = $form->button->text;
$form->url = $this->_quizobj->review_url($attemptid);
$form->button->add_action(new popup_action('click', $form->url, 'quizpopup', $this->windowoptions));
return $OUTPUT->button($form);
return $OUTPUT->single_button($form);
}
/**