* Modify the load module path.

This commit is contained in:
tianshujie
2022-02-23 14:08:25 +08:00
parent 20fb3044d5
commit 40fec08bb5
+1 -1
View File
@@ -5852,7 +5852,7 @@ class upgradeModel extends model
$content = file_get_contents($filePath);
if(strpos(basename($filePath), 'html'))
{
$content = preg_replace("#(include ')((../){2,})([a-z]+/)#", "$1$2../../module/$4", $content);
$content = preg_replace("#(include )'((../){2,})([a-z]+/)#", '$1' . '$app->getModuleRoot() . ' . "'$4", $content);
}
else
{