浏览代码

Fix regression after class side effect introduction.

mscherer 4 年之前
父节点
当前提交
1bd5dc9de6
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/View/Helper/FormatHelper.php

+ 2 - 0
src/View/Helper/FormatHelper.php

@@ -365,6 +365,8 @@ class FormatHelper extends Helper {
 	protected function _fontIcon($type, $options, $attributes) {
 		$iconClass = $type;
 
+		unset($this->_config['class']);
+
 		$options += $this->_config;
 		if ($options['autoPrefix'] && is_string($options['autoPrefix'])) {
 			$iconClass = $options['autoPrefix'] . '-' . $iconClass;