From 5040c1da6f10c0502205ea89e887c45d55670dfc Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 12 Jul 2020 23:50:30 +0800 Subject: [PATCH] Update index.py --- plugins/xhprof/index.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/xhprof/index.py b/plugins/xhprof/index.py index 501b5609c..8faa16570 100755 --- a/plugins/xhprof/index.py +++ b/plugins/xhprof/index.py @@ -157,10 +157,9 @@ def setPhpVer(): file_tpl = getPluginDir() + '/conf/xhprof.conf' file_run = getConf() - if not os.path.exists(file_run): - centent = mw.readFile(file_tpl) - centent = contentReplace(centent, args['phpver']) - mw.writeFile(file_run, centent) + centent = mw.readFile(file_tpl) + centent = contentReplace(centent, args['phpver']) + mw.writeFile(file_run, centent) mw.restartWeb()