mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 08:09:47 +02:00
MDL-14460, fix get_context_instance, see tracker
This commit is contained in:
parent
fd968fb1b5
commit
09ee7b0d9e
6 changed files with 8 additions and 8 deletions
|
@ -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=";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue