Skip to content

Commit

Permalink
MDL-19791 Upgraded calls to helpbutton, print_simple_box* and notify
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 18, 2009
1 parent 9549b98 commit 25c56af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions blocks/moodleblock.class.php
Expand Up @@ -591,17 +591,17 @@ function instance_allow_multiple() {
* @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()) {
return false;
}

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()));
}
Expand Down
4 changes: 2 additions & 2 deletions blocks/search_forums/block_search_forums.php
Expand Up @@ -7,7 +7,7 @@ function init() {
}

function get_content() {
global $CFG;
global $CFG, $OUTPUT;

if($this->content !== NULL) {
return $this->content;
Expand Down Expand Up @@ -36,7 +36,7 @@ function get_content() {
'<input id="searchform_search" name="search" type="text" size="16" />';
$this->content->text .= '<button id="searchform_button" type="submit" title="'.$search.'">'.$button.'</button><br />';
$this->content->text .= '<a href="'.$CFG->wwwroot.'/mod/forum/search.php?id='.$this->page->course->id.'">'.$advancedsearch.'</a>';
$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 .= '</fieldset></form></div>';

return $this->content;
Expand Down
2 changes: 1 addition & 1 deletion blocks/tags/block_tags.php
Expand Up @@ -229,7 +229,7 @@ function get_content() {
$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 .= <<<EOT
Expand Down

0 comments on commit 25c56af

Please sign in to comment.