Commits

Christoffer Niska committed caf2747

changed type error to important in BootBadge

  • Participants
  • Parent commits 43a82ba

Comments (0)

Files changed (1)

File widgets/BootBadge.php

 	const TYPE_DEFAULT = '';
 	const TYPE_SUCCESS = 'success';
 	const TYPE_WARNING = 'warning';
-	const TYPE_ERROR = 'error';
+	const TYPE_IMPORTANT = 'important';
 	const TYPE_INFO = 'info';
 	const TYPE_INVERSE = 'inverse';
 
 	/**
 	 * @var string the badge type (defaults to '').
-	 * Valid types are '', 'success', 'warning', 'error', 'info' and 'inverse'.
+	 * Valid types are '', 'success', 'warning', 'important', 'info' and 'inverse'.
 	 */
 	public $type = self::TYPE_DEFAULT;
 	/**
 	{
 		$classes = array('badge');
 
-		$validTypes = array(self::TYPE_SUCCESS, self::TYPE_WARNING, self::TYPE_ERROR, self::TYPE_INFO, self::TYPE_INVERSE);
+		$validTypes = array(self::TYPE_SUCCESS, self::TYPE_WARNING, self::TYPE_IMPORTANT, self::TYPE_INFO, self::TYPE_INVERSE);
 
 		if (in_array($this->type, $validTypes))
 			$classes[] = 'badge-'.$this->type;