summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-07-10 02:36:43 +0200
committerkondou <kondou@ts.unde.re>2013-07-10 02:36:43 +0200
commit70b4f85911c0d1a774c6a446c44e4ec464abaee4 (patch)
treeeba5749e1296931540872536e25adbe74d0c6d9c
parent2f11f56d323cc7a559ecc42f521083301479920e (diff)
downloadnextcloud-server-70b4f85911c0d1a774c6a446c44e4ec464abaee4.tar.gz
nextcloud-server-70b4f85911c0d1a774c6a446c44e4ec464abaee4.zip
Use isIgnoredDir()
-rw-r--r--apps/files_trashbin/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/index.php b/apps/files_trashbin/index.php
index 7cb2832c9fe..2dbaefe7a78 100644
--- a/apps/files_trashbin/index.php
+++ b/apps/files_trashbin/index.php
@@ -24,7 +24,7 @@ if ($dir) {
$dirContent = $view->opendir($dir);
$i = 0;
while($entryName = readdir($dirContent)) {
- if ( $entryName !== '.' && $entryName !== '..' ) {
+ if (!\OC\Files\Filesystem::isIgnoredDir($entryName)) {
$pos = strpos($dir.'/', '/', 1);
$tmp = substr($dir, 0, $pos);
$pos = strrpos($tmp, '.d');