mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-19403 glossary settings - add support to pixpath. Credit goes to Red Morris ; merged from 19_STABLE
This commit is contained in:
parent
cfb3825e0d
commit
302fe95867
@ -59,7 +59,7 @@ foreach ($formats as $formatid=>$formatname) {
|
||||
$recformat = $DB->get_record('glossary_formats', array('id'=>$formatid));
|
||||
$str .= '<tr>';
|
||||
$str .= '<td>' . $formatname . '</td>';
|
||||
$eicon = "<a title=\"".get_string("edit")."\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\"><img class=\"iconsmall\" src=\"../pix/t/edit.gif\" alt=\"".get_string("edit")."\" /></a>";
|
||||
$eicon = "<a title=\"".get_string("edit")."\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\"><img class=\"iconsmall\" src=\"$CFG->pixpath/t/edit.gif\" alt=\"".get_string("edit")."\" /></a>";
|
||||
if ( $recformat->visible ) {
|
||||
$vtitle = get_string("hide");
|
||||
$vicon = "hide.gif";
|
||||
@ -67,7 +67,7 @@ foreach ($formats as $formatid=>$formatname) {
|
||||
$vtitle = get_string("show");
|
||||
$vicon = "show.gif";
|
||||
}
|
||||
$vicon = "<a title=\"".$vtitle."\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\"><img class=\"iconsmall\" src=\"../pix/t/".$vicon."\" alt=\"$vtitle\" /></a>";
|
||||
$vicon = "<a title=\"".$vtitle."\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\"><img class=\"iconsmall\" src=\"$CFG->pixpath/t/".$vicon."\" alt=\"$vtitle\" /></a>";
|
||||
|
||||
$str .= '<td align="center">'.$eicon.' '.$vicon.'</td>';
|
||||
$str .= '</tr>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user