Skip to content

Commit

Permalink
MDL-19823 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 fef8f84 commit 8f6e7e6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tag/coursetags_edit.php
Expand Up @@ -115,7 +115,7 @@

// Print the add and delete form
$script = coursetag_get_jscript();
$addtagshelp = helpbutton('addtags', 'adding tags', $tagslang, TRUE, FALSE, '', TRUE);
$addtagshelp = $OUTPUT->help_icon(moodle_help_icon::make('addtags', 'adding tags', $tagslang));
$edittagthisunit = get_string('edittagthisunit', $tagslang);
$arrowtitle = get_string('arrowtitle', $tagslang);
$sesskey = sesskey();
Expand Down Expand Up @@ -148,7 +148,7 @@
</div>
EOT;
if ($coursetabs) {
$deletetagshelp = helpbutton('deletetags', 'deleting tags', $tagslang, TRUE, FALSE, '', TRUE);
$deletetagshelp = $OUTPUT->help_icon(moodle_help_icon::make('deletetags', 'deleting tags', $tagslang));
$editdeletemytag = get_string('editdeletemytag', $tagslang);
$outstr .= <<<EOT1
<div class="coursetag_edit_row">
Expand Down
2 changes: 1 addition & 1 deletion tag/coursetags_more.php
Expand Up @@ -177,7 +177,7 @@
$outstr = '
<div class="coursetag_more_title">
<div style="padding-bottom:5px">'.$welcome.
helpbutton('usingtags', 'using tags', $tagslang, TRUE, FALSE, '', TRUE).'
$OUTPUT->help_icon(moodle_help_icon::make('usingtags', 'using tags', $tagslang)).'
</div>
<div class="coursetag_more_link">'.$link1.'</div>
<div class="coursetag_more_link">'.$link2.'</div>
Expand Down
4 changes: 2 additions & 2 deletions tag/coursetagslib.php
Expand Up @@ -464,7 +464,7 @@ function coursetag_get_tagged_courses($tagid) {
*/
function coursetag_delete_course_tags($courseid, $showfeedback=false) {

global $DB;
global $DB, $OUTPUT;

if ($tags = $DB->get_records_select('tag_instance', "itemtype='course' AND itemid=:courseid", array('courseid'=>$courseid))) {
foreach ($tags as $tag) {
Expand All @@ -478,7 +478,7 @@ function coursetag_delete_course_tags($courseid, $showfeedback=false) {
}

if ($showfeedback) {
notify(get_string('deletedcoursetags', 'tag'));
echo $OUTPUT->notification(get_string('deletedcoursetags', 'tag'));
}
}

Expand Down
2 changes: 1 addition & 1 deletion tag/edit.php
Expand Up @@ -119,7 +119,7 @@
echo $OUTPUT->heading($tagname, 2);

if (!empty($errorstring)) {
notify($errorstring);
echo $OUTPUT->notification($errorstring);
}

$tagform->display();
Expand Down
4 changes: 2 additions & 2 deletions tag/manage.php
Expand Up @@ -137,10 +137,10 @@
echo '<br/>';

if ($err_notice) {
notify($err_notice, 'red');
echo $OUTPUT->notification($err_notice, 'red');
}
if ($notice) {
notify($notice, 'green');
echo $OUTPUT->notification($notice, 'green');
}

// small form to add an official tag
Expand Down

0 comments on commit 8f6e7e6

Please sign in to comment.