MDL-19756 Fixed link to help.php
authornicolasconnault <nicolasconnault>
Wed, 16 Sep 2009 09:29:37 +0000 (09:29 +0000)
committernicolasconnault <nicolasconnault>
Wed, 16 Sep 2009 09:29:37 +0000 (09:29 +0000)
lib/outputcomponents.php

index ecab1a2746bc6fdaf230b261c98ef61478e7d469..16f409630881448eb46955ed3c06a0d0ea269a38 100644 (file)
@@ -1994,7 +1994,7 @@ class moodle_help_icon extends labelled_html_component {
      * @return void
      */
     public function prepare() {
-        global $COURSE, $OUTPUT;
+        global $COURSE, $OUTPUT, $CFG;
 
         if (empty($this->page)) {
             throw new coding_exception('A moodle_help_icon object requires a $page parameter');
@@ -2007,7 +2007,7 @@ class moodle_help_icon extends labelled_html_component {
         }
 
         // fix for MDL-7734
-        $this->link->url = new moodle_url('/help.php', array('module' => $this->module, 'file' => $this->page .'.html'));
+        $this->link->url = new moodle_url($CFG->wwwroot.'/help.php', array('module' => $this->module, 'file' => $this->page .'.html'));
 
         // fix for MDL-7734
         if (!empty($COURSE->lang)) {