Skip to content
Browse files

fix param default value

  • Loading branch information...
1 parent c2aeee0 commit f4ee68a8db57377eafb7b7b019e9137119c7c636 @ronalfei committed Nov 26, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/core/tpl.class.php
View
6 lib/core/tpl.class.php
@@ -14,8 +14,8 @@ class tpl
public function __construct($benchmark)
{
$this->smarty = new Smarty();
- $this->benchmark = $benchmark;
$this->config();
+ $this->benchmark = $benchmark;
}
private function config()
@@ -139,9 +139,9 @@ public function assignByRef($tplvar, $phpvar)
* @param string $tplName
* @return string 整个模板文件内容
*/
- public function fetch($tplName,$cache_id=null,$compile_id=null)
+ public function fetch($tplName, $cache_id=null, $compile_id=null)
{
- return $this->smarty->fetch($tplName,$cache_id=null,$compile_id=null,false);
+ return $this->smarty->fetch($tplName, $cache_id, $compile_id);
}
/**

0 comments on commit f4ee68a

Please sign in to comment.
Something went wrong with that request. Please try again.