Fixed path problem on home page
authormoodler <moodler>
Wed, 28 Jul 2004 11:58:48 +0000 (11:58 +0000)
committermoodler <moodler>
Wed, 28 Jul 2004 11:58:48 +0000 (11:58 +0000)
blocks/activity_modules/block_activity_modules.php

index 15add1b56f8dadbb97a396a029c2afbf0f924e77..70a900c3a0f5a5e72fca20ca572b9bbfe4a0b635 100644 (file)
@@ -26,7 +26,7 @@ class CourseBlock_activity_modules extends MoodleBlock {
         if ($modnamesused) {
             foreach ($modnamesused as $modname => $modfullname) {
                 if ($modname != 'label') {
-                    $this->content->items[] = '<a href="../mod/'.$modname.'/index.php?id='.$this->course->id.'">'.$modnamesplural[$modname].'</a>';
+                    $this->content->items[] = '<a href="'.$CFG->wwwroot.'/mod/'.$modname.'/index.php?id='.$this->course->id.'">'.$modnamesplural[$modname].'</a>';
                     $this->content->icons[] = '<img src="'.$CFG->modpixpath.'/'.$modname.'/icon.gif" height="16" width="16" alt="">';
                 }
             }