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:
@@ -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)))
|
||||
|
Reference in New Issue
Block a user