Update index.py

pull/121/head
midoks 3 years ago
parent a1cef1708b
commit 93668b3061
  1. 4
      plugins/php-yum/index.py

@ -329,7 +329,7 @@ def getPhpConf(version):
{'name': 'cgi.fix_pathinfo', 'type': 0, 'ps': '是否开启pathinfo'},
{'name': 'date.timezone', 'type': 3, 'ps': '时区'}
]
phpini = mw.readFile(getServerDir() + '/' + version + '/etc/php.ini')
phpini = mw.readFile(getConf())
result = []
for g in gets:
rep = g['name'] + '\s*=\s*([0-9A-Za-z_& ~]+)(\s*;?|\r?\n)'
@ -347,7 +347,7 @@ def submitPhpConf(version):
'post_max_size', 'file_uploads', 'upload_max_filesize', 'max_file_uploads',
'default_socket_timeout', 'error_reporting']
args = getArgs()
filename = getServerDir() + '/' + version + '/etc/php.ini'
filename = getConf()
phpini = mw.readFile(filename)
for g in gets:
if g in args:

Loading…
Cancel
Save