From cf7fc6954d0efa9a9ef20cf5f05c103274b0c900 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Mon, 21 Dec 2015 04:28:23 -0700 Subject: [PATCH] Remove 'protected' from the function. --- resources/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/functions.php b/resources/functions.php index a58997c4a6..24e3e719b0 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -190,20 +190,20 @@ if (!function_exists('recursive_delete')) { if (file_exists('/bin/rm')) { - protected function recursive_delete($dir) { + function recursive_delete($dir) { $this->write_debug('rm -Rf '.$dir.'/*'); exec ('rm -Rf '.$dir.'/*'); clearstatcache(); } }elseif(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'){ - protected function recursive_delete($dir) { + function recursive_delete($dir) { $dst = normalize_path_to_os($dst); $this->write_debug("del /S /F /Q \"$dir\""); exec("del /S /F /Q \"$dir\""); clearstatcache(); } }else{ - protected function recursive_delete($dir) { + function recursive_delete($dir) { foreach (glob($dir) as $file) { if (is_dir($file)) { $this->write_debug("rm dir: ".$file);