mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
rmoving path check from Folder::tree fixes issues with classes not beign found in App::import
This commit is contained in:
parent
6775e0997e
commit
27437a808d
1 changed files with 0 additions and 3 deletions
|
@ -431,9 +431,6 @@ class Folder extends Object {
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function tree($path, $exceptions = true, $type = null) {
|
function tree($path, $exceptions = true, $type = null) {
|
||||||
if (!$this->pwd()) {
|
|
||||||
return array();
|
|
||||||
}
|
|
||||||
$original = $this->path;
|
$original = $this->path;
|
||||||
$path = rtrim($path, DS);
|
$path = rtrim($path, DS);
|
||||||
$this->__files = array();
|
$this->__files = array();
|
||||||
|
|
Loading…
Reference in a new issue