[-] 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:
1 parent
2bfc7fd2a5
commit
13e49671ff
1 file changed
+5
-2
@@ -622,8 +622,11 @@ class ThemeInstallator extends Module
|
|||||||
$var = '';
|
$var = '';
|
||||||
foreach ($this->to_install as $row)
|
foreach ($this->to_install as $row)
|
||||||
if (file_exists(_IMPORT_FOLDER_.'modules/'.$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 != '')
|
if ($var != '')
|
||||||
$this->_html .= '
|
$this->_html .= '
|
||||||
|
|||||||
Reference in new issue
Block a user