Update index.py

This commit is contained in:
midoks
2020-07-12 23:50:30 +08:00
parent 8077cadb0e
commit 5040c1da6f
+3 -4
View File
@@ -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()