From 749e7d56eb3b1b5c984dead375e30f28ed74f7b3 Mon Sep 17 00:00:00 2001
From: Micha Espey <tracer@24unix.net>
Date: Fri, 18 Jan 2019 12:49:11 +0100
Subject: [PATCH] added overwrite option to extractto()

---
 .gitignore | 1 +
 update.php | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
 create mode 100644 .gitignore

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..849ddff
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+dist/
diff --git a/update.php b/update.php
index bcafd3f..0ff42e7 100644
--- a/update.php
+++ b/update.php
@@ -238,7 +238,7 @@ if (!empty($argv[1])) {
             // $data->extractTo($phpbb_root_path, 'phpBB3');
             // does not work due to php bug:
             // https://bugs.php.net/bug.php?id=54289
-            $data->extractTo($phpbb_root_path);
+            $data->extractTo($phpbb_root_path, null, true);
 
             $fromDir = $phpbb_root_path . 'phpBB3/';
             $toDir = $phpbb_root_path;
@@ -332,4 +332,4 @@ if (!empty($argv[1])) {
 //   echo "php $argv[0] --reenable-styles", PHP_EOL;
 //   really?
    exit(0);
-}
\ No newline at end of file
+}