From 53d08c261ccd61aa315a5ca1bb546cedb9357d10 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 25 Dec 2024 15:53:30 +0800 Subject: [PATCH] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index bf71ee6f48..b0c7cb4ea9 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -961,7 +961,7 @@ def setSitePath(self, site_id, path): content = mw.readFile(conf_file) if content: content = content.replace(info['path'], path) - mw.writeFile(file, content) + mw.writeFile(conf_file, content) thisdb.setSitesData(site_id, path=path) msg = mw.getInfo('修改网站[{1}]物理路径成功!', (info['name'],))