From: nicolasconnault Date: Tue, 2 Sep 2008 12:47:23 +0000 (+0000) Subject: MDL-14591 Changed element's 2nd param (elementLabel) to class name(s). Defaults to... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2c3550dec2b640f17188f874527ccef90c2bd523;p=moodle.git MDL-14591 Changed element's 2nd param (elementLabel) to class name(s). Defaults to .formwarning --- 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; }