bug fix: cPanel importer set default php if the inherit php is not set

This commit is contained in:
Usman Nasir
2021-04-20 21:12:11 +05:00
parent 19fe606436
commit e01dd72e24
3 changed files with 4 additions and 6 deletions

View File

@@ -243,10 +243,6 @@ def main():
elif args["function"] == "submitinstallImunifyAV":
CageFS.submitinstallImunifyAV()
if __name__ == "__main__":
main()

View File

@@ -104,7 +104,10 @@ class cPanelImporter:
self.PHPVersion = 'PHP 8.0'
if self.PHPVersion == '':
if self.InheritPHP != '':
self.PHPVersion = self.InheritPHP
else:
self.PHPVersion = 'PHP 7.4'
return self.PHPVersion

View File

@@ -166,7 +166,6 @@ class WebsiteManager:
json_data = json.dumps(data_ret)
return HttpResponse(json_data)
try:
HA = data['HA']
externalApp = 'nobody'