Added old school constructor to work with Moodle 2.x

This commit is contained in:
Mark Nelson 2016-03-22 12:07:57 +08:00
parent 728c4da5e3
commit 92dc548b9d

View file

@ -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.
*