Skip to content

Commit

Permalink
Added a class around helpbutton links so that enclosing <font> tags can
Browse files Browse the repository at this point in the history
be removed from HTML code
  • Loading branch information
ikawhero committed Jan 21, 2005
1 parent 4b22e39 commit d3dcbc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/weblib.php
Expand Up @@ -3056,14 +3056,14 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
if ($image) {
$icon = $CFG->pixpath .'/help.gif';
if ($linktext) {
$linkobject = "<span style=\"cursor:help;\">$title<img align=\"middle\" border=\"0\" ".
$linkobject = "<span class=\"formhelplinks\">$title<img align=\"middle\" border=\"0\" ".
" height=\"17\" width=\"22\" alt=\"\" src=\"$icon\" /></span>";
} else {
$linkobject = "<img align=\"middle\" border=\"0\" height=\"17\" width=\"22\" ".
" alt=\"$title\" style=\"cursor:help;\" src=\"$icon\" />";
}
} else {
$linkobject = '<span style="cursor:help;">'. $title .'</span>';
$linkobject = '<span class="formhelplinks">'. $title .'</span>';
}
if ($text) {
$url = '/help.php?module='. $module .'&amp;text='. htmlentities(urlencode($text));
Expand Down

0 comments on commit d3dcbc2

Please sign in to comment.