From 476f2552e4a17589d2ca030b7408a08b38ce3e99 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 6 Aug 2009 02:55:46 +0000 Subject: [PATCH] MDL-19756 Fixed typo in debugging messages and added default string for close_window_button --- lib/deprecatedlib.php | 2 +- lib/outputlib.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index f7f44e465e..0d96eecc6c 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -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.'); } /** diff --git a/lib/outputlib.php b/lib/outputlib.php index a9d29b1680..f8a42c8202 100644 --- a/lib/outputlib.php +++ b/lib/outputlib.php @@ -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; -- 2.39.5