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
@@ -179,7 +179,7 @@ function message_print_contacts() {
echo $OUTPUT->container_end();
echo $OUTPUT->container_start('messagejsmanualrefresh aligncenter');
echo $OUTPUT->button(html_form::make_button('index.php', false, get_string('refresh')));
echo $OUTPUT->single_button('index.php', get_string('refresh'));
echo $OUTPUT->container_end();
}
@@ -518,7 +518,7 @@ function message_print_search_results($frm) {
}
echo '<br />';
echo $OUTPUT->button(html_form::make_button('index.php', array( 'tab' => 'search'), get_string('newsearch', 'message')));
echo $OUTPUT->single_button(new moodle_url('index.php', array('tab' => 'search')), get_string('newsearch', 'message'));
echo '</div>';
}