* fix bug#494.

This commit is contained in:
azhi
2013-08-30 10:03:43 +08:00
parent 4699dcc957
commit 1fc857c907
5 changed files with 117 additions and 75 deletions

View File

@@ -60,7 +60,7 @@ class custom extends control
$this->view->field = $field;
$this->view->module = $module;
$this->view->currentLang = $currentLang;
$this->view->canAdd = strpos($this->config->custom->$module->canAdd, $field) !== false;
$this->view->canAdd = strpos($this->config->custom->canAdd[$module], $field) !== false;
$this->display();
}