From 9c4e57b4ecdbe355092ce0ede0bb32118e993cc6 Mon Sep 17 00:00:00 2001 From: ovclas Date: Fri, 2 Mar 2012 02:01:44 +0000 Subject: [PATCH] issue 1370 add exception, when can not read directory list with ftp git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10281 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/admin/admin.admin.model.php | 4 ++++ modules/admin/lang/lang.xml | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/modules/admin/admin.admin.model.php b/modules/admin/admin.admin.model.php index 7e92bcc42..cc1234e7d 100644 --- a/modules/admin/admin.admin.model.php +++ b/modules/admin/admin.admin.model.php @@ -91,6 +91,10 @@ if(strpos($v,'d') === 0 || strpos($v, '')) $list[] = substr(strrchr($v,' '),1) . '/'; } } + else + { + return new Object(-1,'msg_ftp_no_directory'); + } $this->add('list', $list); } diff --git a/modules/admin/lang/lang.xml b/modules/admin/lang/lang.xml index 1c2a3ad64..59538bccd 100644 --- a/modules/admin/lang/lang.xml +++ b/modules/admin/lang/lang.xml @@ -1180,6 +1180,20 @@ Lütfen son sürümü için indirme linkine tıklayınız.]]> files/config/ftp.config.php 檔案中。 安裝後可在設定頁面中新增、更改或刪除此資訊。]]> files/config/ftp.config.php gespeichert. Nach der Installation ist es auch möglich, dass die Angabe von Administrator modifiziert oder gelöscht werden kann.]]> + + + + + + + + + + + + + +