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
@@ -339,7 +339,7 @@ $options = array();
$options['sesskey'] = sesskey();
$options['action'] = 'export';
$options['d'] = $data->id;
echo $OUTPUT->button(html_form::make_button('preset.php', $options, $strexport));
echo $OUTPUT->single_button(new moodle_url('preset.php', $options), $strexport);
echo '</td></tr>';
echo '<tr><td><label>'.$strsaveaspreset.'</label>';
@@ -349,7 +349,7 @@ $options = array();
$options['sesskey'] = sesskey();
$options['action'] = 'save1';
$options['d'] = $data->id;
echo $OUTPUT->button(html_form::make_button('preset.php', $options, $strsave));
echo $OUTPUT->single_button(new moodle_url('preset.php', $options), $strsave);
echo '</td></tr>';
echo '<tr><td valign="top" colspan="2" align="center"><h3>'.$strimport.'</h3></td></tr>';
echo '<tr><td><label for="fromfile">'.$strfromfile.'</label>';