From ff91b6e5f4cba9d99bb661254f07adeddb2dbc3f Mon Sep 17 00:00:00 2001 From: cory marsh Date: Sat, 12 Jun 2021 22:13:44 -0600 Subject: [PATCH] fix for auto update filenaming --- src/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api.php b/src/api.php index af47b83..1b15162 100644 --- a/src/api.php +++ b/src/api.php @@ -190,14 +190,14 @@ function upgrade(\Bitfire\Request $request) { $success = \TF\tar_extract($dest, $target) ? "success" : "failure"; //unlink($dest); - \TF\file_recurse(WAF_DIR."cache/bitfire-bitfire_{$_GET['ver']}", function ($x) { + \TF\file_recurse(WAF_DIR."cache/bitfire-{$_GET['ver']}", function ($x) { //print_r($x); //die("\nhit"); //\TF\dbg($x); if (is_file($x)) { $base = basename($x); $path = dirname($x); - $root = str_replace(WAF_DIR."cache/bitfire-bitfire_{$_GET['ver']}/", "", $x); + $root = str_replace(WAF_DIR."cache/bitfire-{$_GET['ver']}/", "", $x); echo "base [$base] path [$path] - [" . WAF_DIR . $root . "]\n"; rename($x, WAF_DIR . $root); }