Permalink
Browse files

Update CActiveForm.php

Added version number to comment, minor styling fixes
  • Loading branch information...
1 parent b936d0b commit 5205f4509febe72c2077f53298c4355b277eaa0a @ivokund ivokund committed Mar 21, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 framework/web/widgets/CActiveForm.php
View
9 framework/web/widgets/CActiveForm.php
@@ -161,10 +161,11 @@ class CActiveForm extends CWidget
*/
public $stateful=false;
/**
- * @var string the CSS class name for error messages. Defaults to 'errorMessage' defined in {@link CHtml::$errorMessageCss}.
+ * @var string the CSS class name for error messages.
+ * Since 1.1.14 this defaults to 'errorMessage' defined in {@link CHtml::$errorMessageCss}.
* Individual {@link error} call may override this value by specifying the 'class' HTML option.
*/
- public $errorMessageCssClass=null;
+ public $errorMessageCssClass;
/**
* @var array additional HTML attributes that should be rendered for the form tag.
*/
@@ -326,8 +327,8 @@ public function init()
else
echo CHtml::beginForm($this->action, $this->method, $this->htmlOptions);
- if (!isset($this->errorMessageCssClass))
- $this->errorMessageCssClass = CHtml::$errorMessageCss;
+ if ($this->errorMessageCssClass===null)
+ $this->errorMessageCssClass=CHtml::$errorMessageCss;
}
/**

0 comments on commit 5205f45

Please sign in to comment.