@@ 770-772 (lines=3) @@ | ||
767 | } |
|
768 | ||
769 | if ($stat['mime'] == 'directory') { |
|
770 | if (!$recursive && !$this->_rmdir($path)) { |
|
771 | return $this->setError(elFinder::ERROR_RM, $this->_path($path)); |
|
772 | } |
|
773 | } else { |
|
774 | if (!$recursive && !$this->_unlink($path)) { |
|
775 | return $this->setError(elFinder::ERROR_RM, $this->_path($path)); |
|
@@ 773-777 (lines=5) @@ | ||
770 | if (!$recursive && !$this->_rmdir($path)) { |
|
771 | return $this->setError(elFinder::ERROR_RM, $this->_path($path)); |
|
772 | } |
|
773 | } else { |
|
774 | if (!$recursive && !$this->_unlink($path)) { |
|
775 | return $this->setError(elFinder::ERROR_RM, $this->_path($path)); |
|
776 | } |
|
777 | } |
|
778 | ||
779 | $this->removed[] = $stat; |
|
780 | return true; |