Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bug fix: cPanel importer set default php if the inherit php is not set
  • Loading branch information
usmannasir committed Apr 20, 2021
1 parent 19fe606 commit e01dd72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 0 additions & 4 deletions CLManager/CageFS.py
Expand Up @@ -243,10 +243,6 @@ def main():
elif args["function"] == "submitinstallImunifyAV":
CageFS.submitinstallImunifyAV()





if __name__ == "__main__":
main()

5 changes: 4 additions & 1 deletion plogical/cPanelImporter.py
Expand Up @@ -104,7 +104,10 @@ def PHPDecider(self):
self.PHPVersion = 'PHP 8.0'

if self.PHPVersion == '':
self.PHPVersion = self.InheritPHP
if self.InheritPHP != '':
self.PHPVersion = self.InheritPHP
else:
self.PHPVersion = 'PHP 7.4'

return self.PHPVersion

Expand Down
1 change: 0 additions & 1 deletion websiteFunctions/website.py
Expand Up @@ -166,7 +166,6 @@ def submitWebsiteCreation(self, userID=None, data=None):
json_data = json.dumps(data_ret)
return HttpResponse(json_data)


try:
HA = data['HA']
externalApp = 'nobody'
Expand Down

0 comments on commit e01dd72

Please sign in to comment.