[-] MO: Modules already installed are now unchecked by default in ThemeInstallator module

This commit is contained in:
rMalie
2012-01-12 15:32:46 +00:00
parent 0a064456cb
commit d60316bd4d
@@ -622,8 +622,11 @@ class ThemeInstallator extends Module
$var = '';
foreach ($this->to_install as $row)
if (file_exists(_IMPORT_FOLDER_.'modules/'.$row))
$var .= '<input type="checkbox" name="modulesToExport[]" id="'.$row.'" value="'.$row.'" checked /> <label style="display:bock;float:none" for="'.$row.'">'.$row.
(file_exists(_PS_MODULE_DIR_.$row) ? ' <span style="font-size:0.8em">-> '.$this->l('Warning: a module with the same name already exists').'</span>' : '').'</label><br />';
{
$module_already_exists = file_exists(_PS_MODULE_DIR_.$row);
$var .= '<input type="checkbox" name="modulesToExport[]" id="'.$row.'" value="'.$row.'" '.(($module_already_exists) ? '' : 'checked="checked"').' /> <label style="display:bock;float:none" for="'.$row.'">'.$row.
($module_already_exists ? ' <span style="font-size:0.8em">-> '.$this->l('Warning: a module with the same name already exists').'</span>' : '').'</label><br />';
}
if ($var != '')
$this->_html .= '