mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
bug fix: cPanel importer set default php if the inherit php is not set
This commit is contained in:
@@ -243,10 +243,6 @@ def main():
|
||||
elif args["function"] == "submitinstallImunifyAV":
|
||||
CageFS.submitinstallImunifyAV()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
||||
@@ -104,7 +104,10 @@ class cPanelImporter:
|
||||
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
|
||||
|
||||
|
||||
@@ -166,7 +166,6 @@ class WebsiteManager:
|
||||
json_data = json.dumps(data_ret)
|
||||
return HttpResponse(json_data)
|
||||
|
||||
|
||||
try:
|
||||
HA = data['HA']
|
||||
externalApp = 'nobody'
|
||||
|
||||
Reference in New Issue
Block a user