Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.6
-
Fix Version/s: None
-
Component/s: Files API
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
As I quickly described in http://moodle.org/mod/forum/discuss.php?d=138323
I feel the function popup_form is not working 100% fine.
Let me explain.
In the frame of the development of the module "newmodule",
write the following code:
$url = $CFG->wwwroot.'/mod/newmodule/view.php?id='.$cm->id; // where $cm is what you think it is
$items = array();
$items[] = 'aa';
$items[] = 'bb';
popup_form($url, $items, 'myformid', '', get_string('choose'), 'myhelpfile', 'myhelptext', false);
The output of this code will be a popup_form equipped with an help button.
The helpbutton is supposed to link the file "myhelpfile.html" stored into $CFG->wwwroot.'/mod/newmodule/lang/xx_utf8/help/newmodule/
The link to that file shoulb be:
$CFG->wwwroot/help.php?module=newmodule&file=issuedays.html&forcelang=
but it is
$CFG->wwwroot/help.php?module=moodle&file=issuedays.html&forcelang=
Whether what I wrote is true, this function can't be used in this way in the frame of the development of a module!!!!
As far as I can understand the attached patch fixes the problem