]> git.mjollnir.org Git - moodle.git/commitdiff
Merged fix from stable
authormoodler <moodler>
Mon, 29 May 2006 08:36:58 +0000 (08:36 +0000)
committermoodler <moodler>
Mon, 29 May 2006 08:36:58 +0000 (08:36 +0000)
blocks/admin/block_admin.php

index 2773d1a52c39efc8a3e11c0e4b2691b597c358da..b3739f7665d22e8a6d8292982cd9575dadbe81ee 100644 (file)
@@ -56,10 +56,8 @@ class block_admin extends block_list {
             $this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/log.gif" alt="" />';
 
 
-            if (!empty($CFG->enablestats)) {
-                $this->content->items[] = '<a href="'.$CFG->wwwroot.'/course/report/stats/index.php?course='.SITEID.'">'.get_string('stats').'</a>';
-                $this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/stats.gif" alt="" />';
-            }
+            $this->content->items[] = '<a href="'.$CFG->wwwroot.'/admin/report.php">'.get_string('reports').'</a>';
+            $this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/stats.gif" alt="" />';
 
             $this->content->items[] = '<a href="'.$CFG->wwwroot.'/files/index.php?id='.SITEID.'">'.get_string('sitefiles').'</a>';
             $this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/files.gif" alt="" />';