mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Now GD is checked before displaying course overview graphs. MDL-7204
Merged from MOODLE_17_STABLE
This commit is contained in:
parent
7fb0bc8abb
commit
981b3ae06f
1 changed files with 5 additions and 1 deletions
|
@ -81,8 +81,12 @@
|
||||||
if (empty($courses)) {
|
if (empty($courses)) {
|
||||||
notify(get_string('statsnodata'));
|
notify(get_string('statsnodata'));
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if (empty($CFG->gdversion)) {
|
||||||
|
echo '<div align="center">(' . get_string("gdneed") .')</div>';
|
||||||
} else {
|
} else {
|
||||||
echo '<div align="center"><img src="'.$CFG->wwwroot.'/'.$CFG->admin.'/report/courseoverview/reportsgraph.php?time='.$time.'&report='.$report.'&numcourses='.$numcourses.'" /></div>';
|
echo '<div align="center"><img src="'.$CFG->wwwroot.'/'.$CFG->admin.'/report/courseoverview/reportsgraph.php?time='.$time.'&report='.$report.'&numcourses='.$numcourses.'" /></div>';
|
||||||
|
}
|
||||||
|
|
||||||
$table = new StdClass;
|
$table = new StdClass;
|
||||||
$table->align = array('left','center','center','center');
|
$table->align = array('left','center','center','center');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue