MDL-14460, fix get_context_instance, see tracker

This commit is contained in:
dongsheng 2008-04-23 08:07:42 +00:00
parent fd968fb1b5
commit 09ee7b0d9e
6 changed files with 8 additions and 8 deletions

View file

@ -61,7 +61,7 @@ function string_file_picture_algebra($imagefile, $tex= "", $height="", $width=""
}
$style .= '"';
if ($imagefile) {
if (!file_exists("$CFG->dataroot/filter/algebra/$imagefile") && has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID))) {
if (!file_exists("$CFG->dataroot/filter/algebra/$imagefile") && has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) {
$output .= "<a href=\"$CFG->wwwroot/filter/algebra/algebradebug.php\">";
} else {
$output .= "<a target=\"popup\" title=\"TeX\" href=";