MDL-19756 Fixed typo in debugging messages and added default string for close_window_button

This commit is contained in:
nicolasconnault
2009-08-06 02:55:46 +00:00
parent bb0b907598
commit 476f2552e4
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -3528,7 +3528,7 @@ function update_module_button($cmid, $ignored, $string) {
* @deprecated since Moodle 2.0
*/
function update_categories_search_button($search,$page,$perpage) {
throw new coding_exception('update_tag_button() has been completely deprecated.');
throw new coding_exception('update_categories_search_button() has been completely deprecated.');
}
/**
+3
View File
@@ -2892,6 +2892,9 @@ class moodle_core_renderer extends moodle_renderer_base {
* @return string|void if $return is true, void otherwise
*/
public function close_window_button($text) {
if (empty($text)) {
$text = get_string('closewindow');
}
$closeform = new html_form();
$closeform->url = '#';
$closeform->button->text = $text;