From 235c9b071feed755f1222c16aa40e26c30da59e9 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Mon, 16 May 2022 08:28:28 +0800 Subject: [PATCH] * Fix bug for update. --- module/upgrade/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/upgrade/model.php b/module/upgrade/model.php index 5dc35483fa..e1017434f4 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -6106,7 +6106,7 @@ class upgradeModel extends model $content = file_get_contents($filePath); if(strpos(basename($filePath), 'html')) { - $content = preg_replace('#(include )(\'|")((../){2,})([a-z]+/)(?!ext/)([a-z]+/)#', '$1' . '$app->getModuleRoot() . ' . '"$5$6', $content); + $content = preg_replace('#(include )(\'|")((../){2,})([a-z]+/)(?!ext/)([a-z]+/)#', '$1' . '$app->getModuleRoot() . ' . '$2$5$6', $content); $systemFiles = file_get_contents('systemfiles.txt'); $systemFiles = str_replace('/', DS, $systemFiles);