浏览代码

dont use deprecated method

euromark 11 年之前
父节点
当前提交
9240f70551
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/View/Helper/FormatHelper.php

+ 1 - 1
src/View/Helper/FormatHelper.php

@@ -299,7 +299,7 @@ class FormatHelper extends TextHelper {
 			$t = isset($t['title']) ? $t['title'] : null; // deprecated
 		}
 
-		$type = extractPathInfo($icon, 'filename');
+		$type = pathinfo($icon, PATHINFO_FILENAME);
 
 		if (!$this->_config['fontIcons'] || !isset($this->_config['fontIcons'][$type])) {
 			$title = isset($t) ? $t : ucfirst($type);