// Routes for dispatcher (part 5)

This commit is contained in:
rMalie
2011-08-03 07:53:59 +00:00
parent 2644d41f7d
commit a1a33de41b
5 changed files with 118 additions and 21 deletions
+4 -1
View File
@@ -1693,6 +1693,9 @@ abstract class AdminTabCore
if ($field['type'] != 'textLang')
if (!Validate::isCleanHtml($val))
$val = Configuration::get($key);
if (isset($field['defaultValue']) && !$val)
$val = $field['defaultValue'];
$isDisabled = (Shop::isMultiShopActivated() && isset($field['visibility']) && $field['visibility'] > $this->context->shop->getContextType()) ? true : false;
@@ -2162,7 +2165,7 @@ EOF;
$method_name = 'updateOption'.Tools::toCamelCase($key, true);
if (method_exists($this, $method_name))
$this->$method_name(Tools::getValue($key));
if (isset($options['type']) && in_array($options['type'], array('textLang', 'textareaLang')))
else if (isset($options['type']) && in_array($options['type'], array('textLang', 'textareaLang')))
{
$list = array();
foreach ($languages as $language)