浏览代码

Simplify hack

Mark Scherer 10 年之前
父节点
当前提交
b447f263ac
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      View/Helper/DatetimeHelper.php

+ 1 - 2
View/Helper/DatetimeHelper.php

@@ -1,7 +1,6 @@
 <?php
 
 App::uses('TimeHelper', 'View/Helper');
-App::uses('HtmlHelper', 'View/Helper');
 
 /**
  * Wrapper for TimeHelper and TimeLib
@@ -127,7 +126,7 @@ class DatetimeHelper extends TimeHelper {
 
 		// Why is this hack necessary?
 		if (!isset($this->Html)) {
-			$this->Html = new HtmlHelper($this->_View);
+			$this->Html = $this->_View->Html;
 		}
 		return $this->Html->tag('span', $niceDate, $attr);
 	}