mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
issue 160, don`t display "delete" link when not set ftp info
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9299 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b55fa847ea
commit
da7e0c0b2a
3 changed files with 14 additions and 8 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue