|
@@ 761-763 (lines=3) @@
|
| 758 |
|
} |
| 759 |
|
|
| 760 |
|
if ($stat['mime'] == 'directory') { |
| 761 |
|
if (!$recursive && !$this->_rmdir($path)) { |
| 762 |
|
return $this->setError(elFinder::ERROR_RM, $this->_path($path)); |
| 763 |
|
} |
| 764 |
|
} else { |
| 765 |
|
if (!$recursive && !$this->_unlink($path)) { |
| 766 |
|
return $this->setError(elFinder::ERROR_RM, $this->_path($path)); |
|
@@ 764-768 (lines=5) @@
|
| 761 |
|
if (!$recursive && !$this->_rmdir($path)) { |
| 762 |
|
return $this->setError(elFinder::ERROR_RM, $this->_path($path)); |
| 763 |
|
} |
| 764 |
|
} else { |
| 765 |
|
if (!$recursive && !$this->_unlink($path)) { |
| 766 |
|
return $this->setError(elFinder::ERROR_RM, $this->_path($path)); |
| 767 |
|
} |
| 768 |
|
} |
| 769 |
|
|
| 770 |
|
$this->removed[] = $stat; |
| 771 |
|
return true; |