mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
fixes #3423, Folder::find() and undefined variable
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5831 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
717e278550
commit
b2f8bf21f8
1 changed files with 2 additions and 2 deletions
|
@ -183,7 +183,7 @@ class Folder extends Object{
|
|||
* @access public
|
||||
*/
|
||||
function find($regexp_pattern = '.*', $sort = false) {
|
||||
$data = $this->read($sort, $exceptions);
|
||||
$data = $this->read($sort);
|
||||
|
||||
if (!is_array($data)) {
|
||||
return array();
|
||||
|
@ -220,7 +220,7 @@ class Folder extends Object{
|
|||
* @access private
|
||||
*/
|
||||
function _findRecursive($pattern, $sort = false) {
|
||||
list($dirs, $files) = $this->read($sort, $exceptions);
|
||||
list($dirs, $files) = $this->read($sort);
|
||||
|
||||
$found = array();
|
||||
foreach ($files as $file) {
|
||||
|
|
Loading…
Add table
Reference in a new issue