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
+3 -6
View File
@@ -188,16 +188,13 @@
$edit = "on";
}
$form = new html_form();
$form->url = new moodle_url("$CFG->wwwroot/course/search.php", array(
$aurl = new moodle_url("$CFG->wwwroot/course/search.php", array(
'edit' => $edit,
'sesskey' => sesskey(),
'search' => s($search, true),
'search' => $search,
'page' => $page,
'perpage' => $perpage));
$form->method = 'get';
$form->button->text = s($string);
$searchform = $OUTPUT->button($form);
$searchform = $OUTPUT->single_button($aurl, $string, 'get');
}
}