Adding the attachment didn't work. So putting it inline again:
Code:
--- modules/xerte/delete_template.php.orig 2015-07-29 23:17:23.000000000 +0100
+++ modules/xerte/delete_template.php 2015-08-13 15:14:36.634487590 +0100
@@ -55,18 +55,17 @@
if(($f!=".")&&($f!="..")){
- if(is_dir($path . $f)){
-
+ $string = $path . DIRECTORY_SEPARATOR . $f;
- array_push($folder_array, $path . "/" . $f);
+ if(is_dir($string)){
+
+ array_push($folder_array, $string);
- delete_folder_loop($path . $f);
+ delete_folder_loop($string);
}else{
- $string = $path . "/" . $f;
-
array_push($file_array, $string);
}
@@ -149,4 +148,4 @@
rmdir($path);
}
-?>
\ No newline at end of file
+?>