Added old school constructor to work with Moodle 2.x
This commit is contained in:
parent
728c4da5e3
commit
92dc548b9d
1 changed files with 11 additions and 0 deletions
|
@ -43,6 +43,17 @@ class MoodleQuickForm_customcert_colourpicker extends HTML_QuickForm_text {
|
|||
parent::__construct($elementName, $elementLabel, $attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Old school constructor name to support earlier versions of Moodle.
|
||||
*
|
||||
* @param string $elementName
|
||||
* @param string $elementLabel
|
||||
* @param array $attributes
|
||||
*/
|
||||
function MoodleQuickForm_customcert_colourpicker($elementName = null, $elementLabel = null, $attributes = null) {
|
||||
self::__construct($elementName, $elementLabel, $attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the html string to display this element.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue