From 2c3550dec2b640f17188f874527ccef90c2bd523 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Tue, 2 Sep 2008 12:47:23 +0000 Subject: [PATCH] MDL-14591 Changed element's 2nd param (elementLabel) to class name(s). Defaults to .formwarning --- lib/form/warning.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/form/warning.php b/lib/form/warning.php index 1492912aff..aea35cc1ee 100644 --- a/lib/form/warning.php +++ b/lib/form/warning.php @@ -20,6 +20,9 @@ class MoodleQuickForm_warning extends HTML_QuickForm_static{ function MoodleQuickForm_warning($elementName=null, $elementClass='formwarning', $text=null) { parent::HTML_QuickForm_static($elementName, null, $text); $this->_type = 'warning'; + if (is_null($elementClass)) { + $elementClass = 'formwarning'; + } $this->_class = $elementClass; } -- 2.39.5