diff options
author | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-02-20 19:25:13 +0100 |
---|---|---|
committer | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-02-20 19:25:13 +0100 |
commit | 900a9e9e56d360fa7d347304e9b0d4b691d4becc (patch) | |
tree | 6eafd48210f8c92fcb8a61826f22627ab09ba931 /lib | |
parent | 8d443db51f9acca81484bec96d8bcd49c00e6414 (diff) | |
download | rpg-900a9e9e56d360fa7d347304e9b0d4b691d4becc.tar.gz rpg-900a9e9e56d360fa7d347304e9b0d4b691d4becc.tar.bz2 |
replace dir_delete by io_rmdir
Diffstat (limited to 'lib')
-rw-r--r-- | lib/exe/ajax.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php index 6e2011cd9..203af9c5b 100644 --- a/lib/exe/ajax.php +++ b/lib/exe/ajax.php @@ -298,26 +298,6 @@ function ajax_mediaupload(){ echo htmlspecialchars($json->encode($result), ENT_NOQUOTES); } -function dir_delete($path) { - if (!is_string($path) || $path == "") return false; - - if (is_dir($path) && !is_link($path)) { - if (!$dh = @opendir($path)) return false; - - while ($f = readdir($dh)) { - if ($f == '..' || $f == '.') continue; - dir_delete("$path/$f"); - } - - closedir($dh); - return @rmdir($path); - } else { - return @unlink($path); - } - - return false; -} - /** * Return sub index for index view * |