mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
No direct inclusion
This commit is contained in:
parent
222aa60d3f
commit
36245854f2
@ -1,5 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (!defined('MOODLE_INTERNAL')) {
|
||||
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
||||
}
|
||||
|
||||
if (!empty($CFG->enablestats)) {
|
||||
echo '<a href="'.$CFG->wwwroot.'/course/report/stats/index.php?course='.$course->id.'">'.get_string('stats').'</a>';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user