// Added Helper::createTemplate()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9888 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -42,7 +42,12 @@ class HelperOptionsCore extends Helper
|
||||
|
||||
public $fields_value = array();
|
||||
|
||||
public $tpl = 'helper/options/options.tpl';
|
||||
public function __construct()
|
||||
{
|
||||
$this->base_folder = 'helper/options/';
|
||||
$this->base_tpl = 'options.tpl';
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a form for options
|
||||
@@ -51,6 +56,7 @@ class HelperOptionsCore extends Helper
|
||||
*/
|
||||
public function generateOptions($option_list)
|
||||
{
|
||||
$this->tpl = $this->createTemplate($this->base_tpl);
|
||||
$tab = Tab::getTab($this->context->language->id, $this->id);
|
||||
if (!isset($languages))
|
||||
$languages = Language::getLanguages(false);
|
||||
|
||||
Reference in New Issue
Block a user