From 92dc548b9d47b03425b824538c717eca99c0b0ad Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 22 Mar 2016 12:07:57 +0800 Subject: [PATCH] Added old school constructor to work with Moodle 2.x --- includes/colourpicker.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/includes/colourpicker.php b/includes/colourpicker.php index 280f287..6043d0f 100644 --- a/includes/colourpicker.php +++ b/includes/colourpicker.php @@ -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. *