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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12397 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-12 15:32:46 +00:00
parent 2bfc7fd2a5
commit 13e49671ff
@@ -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 .= '