From: tjhunt Date: Wed, 1 Jul 2009 04:17:31 +0000 (+0000) Subject: MDL-19674 - err - slighly more sensible version of the previous commit. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0456fc1ac42d72fee68de6b200afa3f2d11ae54b;p=moodle.git MDL-19674 - err - slighly more sensible version of the previous commit. --- diff --git a/mod/glossary/settings.php b/mod/glossary/settings.php index b5ec9df5d8..8462b06d0a 100644 --- a/mod/glossary/settings.php +++ b/mod/glossary/settings.php @@ -59,7 +59,10 @@ foreach ($formats as $formatid=>$formatname) { $recformat = $DB->get_record('glossary_formats', array('id'=>$formatid)); $str .= ''; $str .= '' . $formatname . ''; - $eicon = "wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\">\"".get_string("edit")."\""; +// TODO MDL-19674 We cannot refer to $CFG->pixpath here. This code is executed +// when the structure of the admin tree is being build. $CFG->pixpath is only +// set up once output has started. + $eicon = "wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\">pixpath*/"/t/edit.gif\" alt=\"".get_string("edit")."\" />"; if ( $recformat->visible ) { $vtitle = get_string("hide"); $vicon = "hide.gif"; @@ -67,7 +70,7 @@ foreach ($formats as $formatid=>$formatname) { $vtitle = get_string("show"); $vicon = "show.gif"; } - $vicon = "wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\">\"$vtitle\""; + $vicon = "wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\">pixpath*/"/t/".$vicon."\" alt=\"$vtitle\" />"; $str .= ''.$eicon.'  '.$vicon.''; $str .= '';