Merge branch 'sprint/189_liumengyi_fixbug' into 'master'

* Fix bug for update.

See merge request easycorp/zentaopms!3405
This commit is contained in:
李玉春
2022-05-16 00:30:19 +00:00
+1 -1
View File
@@ -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);