Okay, It seems I can't attach files to the posts. (I'm sure I had this problem before. anyway couldn't find a solution.) so here is the diff inline:
Code:
--- modules/decision/delete_template.php.orig 2015-07-29 23:17:23.000000000 +0100
+++ modules/decision/delete_template.php 2017-02-06 16:19:12.253905013 +0000
@@ -53,18 +53,16 @@
if(($f!=".")&&($f!="..")){
- if(is_dir($path . $f)){
-
+ $string = $path . DIRECTORY_SEPARATOR . $f;
- array_push($folder_array, $path . "/" . $f);
-
- delete_folder_loop($path . $f);
+ if(is_dir($string)){
+ array_push($folder_array, $string);
+
+ delete_folder_loop($string);
}else{
- $string = $path . "/" . $f;
-
array_push($file_array, $string);
}
@@ -147,4 +145,4 @@
rmdir($path);
}
-?>
\ No newline at end of file
+?>