]> git.mjollnir.org Git - moodle.git/commitdiff
merged Martins warning patch from MOODLE_16_STABLE
authorskodak <skodak>
Fri, 2 Jun 2006 16:53:17 +0000 (16:53 +0000)
committerskodak <skodak>
Fri, 2 Jun 2006 16:53:17 +0000 (16:53 +0000)
course/report/stats/mod.php

index d8215d910e17b117627da578311358e3d5f5408f..e012363a335549d63e7ed4e7863adf2831ea9687 100644 (file)
@@ -4,11 +4,9 @@
         die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
     }
     
-    echo '<p style="text-align:center;">';
     if (!empty($CFG->enablestats)) {
+        echo '<p style="text-align:center;">';
         echo '<a href="'.$CFG->wwwroot.'/course/report/stats/index.php?course='.$course->id.'">'.get_string('stats').'</a>';
-    } else {
-        echo '<a href="'.$CFG->wwwroot.'/admin/config.php#configsectionstats">'.get_string('statsoff').'</a>';
+        echo '</p>';
     }
-    echo '</p>';
-?>
\ No newline at end of file
+?>