// fix bug in HelperView

This commit is contained in:
lLefevre
2011-11-22 16:59:03 +00:00
parent 2fbafe711d
commit e3f31993bf
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ class HelperCore
/** /**
* @var string base template name * @var string base template name
*/ */
protected $base_tpl = 'content.tpl'; public $base_tpl = 'content.tpl';
public $tpl_vars = array(); public $tpl_vars = array();
+2 -2
View File
@@ -42,9 +42,9 @@ class HelperViewCore extends Helper
parent::__construct(); 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( $this->tpl->assign(array(
'title' => $this->title, 'title' => $this->title,