// fix bug in HelperView
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ class HelperCore
|
||||
/**
|
||||
* @var string base template name
|
||||
*/
|
||||
protected $base_tpl = 'content.tpl';
|
||||
public $base_tpl = 'content.tpl';
|
||||
|
||||
public $tpl_vars = array();
|
||||
|
||||
|
||||
@@ -42,9 +42,9 @@ class HelperViewCore extends Helper
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function generateView($tpl = false)
|
||||
public function generateView()
|
||||
{
|
||||
$this->tpl = $this->createTemplate(!$tpl ? $this->base_tpl : $tpl);
|
||||
$this->tpl = $this->createTemplate($this->base_tpl);
|
||||
|
||||
$this->tpl->assign(array(
|
||||
'title' => $this->title,
|
||||
|
||||
Reference in New Issue
Block a user