From ac06c0a3718b8777b828cb45ebadd36f1aa96f3f Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Wed, 16 Sep 2009 09:29:37 +0000 Subject: [PATCH] MDL-19756 Fixed link to help.php --- lib/outputcomponents.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/outputcomponents.php b/lib/outputcomponents.php index ecab1a2746..16f4096308 100644 --- a/lib/outputcomponents.php +++ b/lib/outputcomponents.php @@ -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)) { -- 2.39.5