diff --git a/modules/autoinstall/autoinstall.model.php b/modules/autoinstall/autoinstall.model.php index 4630a7f69..38dabeaf0 100644 --- a/modules/autoinstall/autoinstall.model.php +++ b/modules/autoinstall/autoinstall.model.php @@ -205,6 +205,9 @@ function getRemoveUrlByPackageSrl($packageSrl) { + $ftp_info = Context::getFTPInfo(); + if (!$ftp_info->ftp_root_path) return; + if (!$packageSrl) return; return getNotEncodedUrl('', 'module', 'admin', 'act', 'dispAutoinstallAdminUninstall', 'package_srl', $packageSrl); @@ -214,6 +217,9 @@ { if (!$path) return; + $ftp_info = Context::getFTPInfo(); + if (!$ftp_info->ftp_root_path) return; + $packageSrl = $this->getPackageSrlByPath($path); if (!$packageSrl) return; diff --git a/modules/autoinstall/lang/lang.xml b/modules/autoinstall/lang/lang.xml index 6f58a808e..3265a1c86 100644 --- a/modules/autoinstall/lang/lang.xml +++ b/modules/autoinstall/lang/lang.xml @@ -254,26 +254,26 @@ - + - + - + - + - + - + - \ No newline at end of file + diff --git a/modules/autoinstall/tpl/list.html b/modules/autoinstall/tpl/list.html index 3e3b13a56..0c9ac4323 100644 --- a/modules/autoinstall/tpl/list.html +++ b/modules/autoinstall/tpl/list.html @@ -68,7 +68,7 @@ {htmlspecialchars($item->current_version)} {$lang->install} - {$lang->cmd_delete} + {$lang->cmd_delete} {$lang->update}