1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +02:00

file-class filter fix

This commit is contained in:
CaMer0n
2012-07-13 06:32:42 +00:00
parent 11318bf7c1
commit 8c497fcee1
2 changed files with 9 additions and 6 deletions

View File

@@ -115,6 +115,13 @@ class e_file
$this->finfo = $val;
return $this;
}
public function setFileFilter($filter)
{
$this->fileFilter = $filter;
return $this;
}
/**
* Read files from given path
@@ -158,11 +165,6 @@ class e_file
{
$omit = array($omit);
}
if(count($omit))
{
$this->fileFilter = $omit;
}
}
while (false !== ($file = readdir($handle)))