aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2014-08-07 15:49:41 +0200
committerDhruv <dhruv.goel92@gmail.com>2014-08-07 15:49:41 +0200
commit07a92d29df03a1a2c432382e35c0741e133787ea (patch)
tree9555a6b0363df7a9cf16fa76abd76c8699902eaf
parentef26a6fd64c5e532cf1c91c54415a67b7dfa06bc (diff)
downloadforums-07a92d29df03a1a2c432382e35c0741e133787ea.tar
forums-07a92d29df03a1a2c432382e35c0741e133787ea.tar.gz
forums-07a92d29df03a1a2c432382e35c0741e133787ea.tar.bz2
forums-07a92d29df03a1a2c432382e35c0741e133787ea.tar.xz
forums-07a92d29df03a1a2c432382e35c0741e133787ea.zip
[ticket/12778] Automatically delete files on update
PHPBB3-12778
-rw-r--r--phpBB/install/install_update.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/install/install_update.php b/phpBB/install/install_update.php
index 28777a8d24..7a423b622f 100644
--- a/phpBB/install/install_update.php
+++ b/phpBB/install/install_update.php
@@ -1063,6 +1063,14 @@ class install_update extends module
$transfer->write_file($file_struct['filename'], $contents);
}
break;
+
+ case 'deleted':
+
+ if ($update_mode != 'download')
+ {
+ $transfer->delete_file($file_struct['filename']);
+ }
+ break;
}
}
}