From: kondou Date: Wed, 10 Jul 2013 00:36:43 +0000 (+0200) Subject: Use isIgnoredDir() X-Git-Tag: v6.0.0alpha2~367^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=70b4f85911c0d1a774c6a446c44e4ec464abaee4;p=nextcloud-server.git Use isIgnoredDir() --- 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');