From: nicolasconnault Date: Tue, 18 Aug 2009 04:29:31 +0000 (+0000) Subject: MDL-19791 Upgraded calls to helpbutton, print_simple_box* and notify X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=25c56af82405995f681f8aad7a219a4aab9fff16;p=moodle.git MDL-19791 Upgraded calls to helpbutton, print_simple_box* and notify --- diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 71531ef74a..c3a928604f 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -591,7 +591,7 @@ class block_base { * @return boolean whether anything was done. Blocks should use edit_form.php. */ function instance_config_print() { - global $CFG, $DB; + global $CFG, $DB, $OUTPUT; // Default behavior: print the config_instance.html file // You don't need to override this if you're satisfied with the above if (!$this->instance_allow_multiple() && !$this->instance_allow_config()) { @@ -599,9 +599,9 @@ class block_base { } if (is_file($CFG->dirroot .'/blocks/'. $this->name() .'/config_instance.html')) { - print_simple_box_start('center', '', '', 5, 'blockconfiginstance'); + echo $OUTPUT->box_start('generalbox boxaligncenter blockconfiginstance'); include($CFG->dirroot .'/blocks/'. $this->name() .'/config_instance.html'); - print_simple_box_end(); + echo $OUTPUT->box_end(); } else { notice(get_string('blockconfigbad'), str_replace('blockaction=', 'dummy=', qualified_me())); } diff --git a/blocks/search_forums/block_search_forums.php b/blocks/search_forums/block_search_forums.php index 5bddd329e8..fd641f744b 100644 --- a/blocks/search_forums/block_search_forums.php +++ b/blocks/search_forums/block_search_forums.php @@ -7,7 +7,7 @@ class block_search_forums extends block_base { } function get_content() { - global $CFG; + global $CFG, $OUTPUT; if($this->content !== NULL) { return $this->content; @@ -36,7 +36,7 @@ class block_search_forums extends block_base { ''; $this->content->text .= '
'; $this->content->text .= ''.$advancedsearch.''; - $this->content->text .= helpbutton('search', $advancedsearch, 'moodle', true, false, '', true); + $this->content->text .= $OUTPUT->help_icon(moodle_help_icon::make('search', $advancedsearch)); $this->content->text .= ''; return $this->content; diff --git a/blocks/tags/block_tags.php b/blocks/tags/block_tags.php index 70fb6a7dc5..e27b5315c2 100644 --- a/blocks/tags/block_tags.php +++ b/blocks/tags/block_tags.php @@ -229,7 +229,7 @@ class block_tags extends block_base { $tagthisunit = get_string('tagthisunit', $tagslang); $buttonadd = get_string('add', $tagslang); $arrowtitle = get_string('arrowtitle', $tagslang); - $coursetaghelpbutton = helpbutton('addtags', 'adding tags', $tagslang, TRUE, FALSE, '', TRUE); + $coursetaghelpbutton = $OUTPUT->help_icon(moodle_help_icon::make('addtags', 'adding tags', $tagslang)); $sesskey = sesskey(); $arrowright = $OUTPUT->old_icon_url('t/arrow_left'); $this->content->footer .= <<