No direct inclusion

This commit is contained in:
moodler 2006-03-09 07:41:18 +00:00
parent 222aa60d3f
commit 36245854f2

View File

@ -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>';
}