From dc7d8de0c24d6e16267976824fe9095d98abc840 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sun, 18 Aug 2019 18:30:53 +0100 Subject: [PATCH] data/backups used in updater.php now too --- lib/updater.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/updater.php b/lib/updater.php index 0eb8a1e..8a3b254 100644 --- a/lib/updater.php +++ b/lib/updater.php @@ -23,7 +23,7 @@ function startUpdate() { // Don't move backups, plugins or .git away $testPath = $source.DIRECTORY_SEPARATOR.$iterator->getSubPathName(); $testPath = str_replace("\\","/",$testPath); - if (strpos($testPath,"/backups/")==false && strpos($testPath,"/plugins/")==false && strpos($testPath,"/.git/")==false) { + if (strpos($testPath,"/data/backups/")==false && strpos($testPath,"/plugins/")==false && strpos($testPath,"/.git/")==false) { if (!is_writeable($item)) { array_push($cantMoveArray,substr($item,count($source)+2)); } @@ -67,7 +67,7 @@ function copyOldVersion() { // Don't move backups, plugins or .git away $testPath = $source.DIRECTORY_SEPARATOR.$iterator->getSubPathName(); $testPath = str_replace("\\","/",$testPath); - if (strpos($testPath,"/backups/")==false && strpos($testPath,"/plugins/")==false && strpos($testPath,"/.git/")==false) { + if (strpos($testPath,"/data/backups/")==false && strpos($testPath,"/plugins/")==false && strpos($testPath,"/.git/")==false) { if ($item->isDir()) { mkdir($dest.DIRECTORY_SEPARATOR.$iterator->getSubPathName(), 0755); } else {