MDL-14591 - changed nico's form warning element to use notifyproblem class so that it's synonymous with notify (by default)

This commit is contained in:
mjollnir_
2008-09-02 12:54:09 +00:00
parent 2c3550dec2
commit fdc25313cf
2 changed files with 2 additions and 10 deletions
+2 -2
View File
@@ -17,11 +17,11 @@ class MoodleQuickForm_warning extends HTML_QuickForm_static{
var $_helpbutton='';
var $_class='';
function MoodleQuickForm_warning($elementName=null, $elementClass='formwarning', $text=null) {
function MoodleQuickForm_warning($elementName=null, $elementClass='notifyproblem', $text=null) {
parent::HTML_QuickForm_static($elementName, null, $text);
$this->_type = 'warning';
if (is_null($elementClass)) {
$elementClass = 'formwarning';
$elementClass = 'notifyproblem';
}
$this->_class = $elementClass;
}