diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-11-08 17:51:28 +0100 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-11-08 17:51:28 +0100 |
commit | 57efd9a7ae27b2f0bd98382a1f6b107064585f99 (patch) | |
tree | 32b8fb2f2e2c50a5d625698248e605862333267f /ratatoeskr/sys/utils.php | |
parent | 32b8f4ae4243bc915fe38e28dd991a28c09b4331 (diff) | |
download | ratatoeskr-cms-57efd9a7ae27b2f0bd98382a1f6b107064585f99.tar.gz ratatoeskr-cms-57efd9a7ae27b2f0bd98382a1f6b107064585f99.tar.bz2 ratatoeskr-cms-57efd9a7ae27b2f0bd98382a1f6b107064585f99.zip |
Move delete_directory() into Plugin class
It was the only place it was used
Diffstat (limited to 'ratatoeskr/sys/utils.php')
-rw-r--r-- | ratatoeskr/sys/utils.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/ratatoeskr/sys/utils.php b/ratatoeskr/sys/utils.php index 60f90a8..5e0415c 100644 --- a/ratatoeskr/sys/utils.php +++ b/ratatoeskr/sys/utils.php @@ -11,29 +11,6 @@ */ /* - * Function: delete_directory - * Delete a directory and all of its content. - */ -function delete_directory($dir) -{ - $dir_content = scandir($dir); - foreach ($dir_content as $f) { - if (($f == "..") or ($f == ".")) { - continue; - } - - $f = "$dir/$f"; - - if (is_dir($f)) { - delete_directory($f); - } else { - unlink($f); - } - } - rmdir($dir); -} - -/* * Constant: SITE_BASE_PATH * The Base path of this ratatoeskr site. */ |