mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
fix for bug - not seeing standard elements on activity module form on some versions of PHP.
This commit is contained in:
parent
d4f36e7d2a
commit
cc935f9174
1 changed files with 2 additions and 2 deletions
|
@ -334,7 +334,7 @@ class moodleform_mod extends moodleform {
|
|||
*
|
||||
*/
|
||||
function standard_coursemodule_elements(){
|
||||
$mform=$this->_form;
|
||||
$mform =& $this->_form;
|
||||
$mform->addElement('header', '', get_string('modstandardels', 'form'));
|
||||
|
||||
$mform->addElement('modgroupmode', 'groupmode', get_string('groupmode'));
|
||||
|
@ -345,7 +345,7 @@ class moodleform_mod extends moodleform {
|
|||
}
|
||||
|
||||
function standard_hidden_coursemodule_elements(){
|
||||
$mform=$this->_form;
|
||||
$mform =& $this->_form;
|
||||
$mform->addElement('hidden', 'course', 0);
|
||||
$mform->setType('course', PARAM_INT);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue