// Normalize
This commit is contained in:
@@ -278,7 +278,7 @@ class HelperCore
|
||||
{
|
||||
// if the class is extended by a module, use modules/[module_name]/xx.php lang file
|
||||
$currentClass = get_class($this);
|
||||
if(Module::getModuleNameFromClass($currentClass))
|
||||
if (Module::getModuleNameFromClass($currentClass))
|
||||
{
|
||||
$string = str_replace('\'', '\\\'', $string);
|
||||
return Module::findTranslation(Module::$classInModule[$currentClass], $string, $currentClass);
|
||||
|
||||
@@ -175,7 +175,7 @@ class HelperFormCore extends Helper
|
||||
foreach ($this->fields_form as $fieldset)
|
||||
if (isset($fieldset['form']['input']))
|
||||
foreach ($fieldset['form']['input'] as $input)
|
||||
if (array_key_exists('required', $input) && $input['required'] && $input['type'] != 'radio')
|
||||
if (array_key_exists('required', $input) && $input['required'] && $input['type'] != 'radio')
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
@@ -177,7 +177,7 @@ class HelperOptionsCore extends Helper
|
||||
echo '<img src="../themes/'.$theme['name'].'/preview.jpg" alt="'.Tools::strtolower($theme['name']).'">';
|
||||
echo '</label>';
|
||||
echo '</td>';
|
||||
if (isset($field['max']) && ($i +1 ) % $field['max'] == 0)
|
||||
if (isset($field['max']) && ($i + 1) % $field['max'] == 0)
|
||||
echo '</tr><tr>';
|
||||
$i++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user