I am starting to dabble with making small modifications to my moodle implementation's code, but I have come across and inconsistency that I cannot explain:
When a url is called directly form a JS function it's querystring has & between each variable, but when it is passed from an OnClick event handler, or is in the href= parameter, then it appears as &
for example in /mod/resource/type/file/resource.class.php
Line 326: openpopup('/mod/resource/view.php?inpopup=true&id={$cm->id}',
whereas
Line 334: openpopup('/mod/resource/view.php?inpopup=true&id={$cm->id}'
Could anyone please explain why this is?
Thanks