浏览代码

Merge pull request #106 from php-engineer/master-bugfix

Format Helper Bugfix
Mark S. 11 年之前
父节点
当前提交
9bbcf80209
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      View/Helper/FormatHelper.php

+ 2 - 2
View/Helper/FormatHelper.php

@@ -36,9 +36,9 @@ class FormatHelper extends TextHelper {
 			}
 		}
 
-		$templates = array(
+		$templates = (array)Configure::read('Format.templates') + array(
 			'icon' => '<i class="{{class}}" title="{{title}}" data-placement="bottom" data-toggle="tooltip"></i>',
-		) + (array)Configure::read('Format.templates');
+		);
 		if (!isset($this->template)) {
 			$this->template = new StringTemplate($templates);
 		}