mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +01:00
bug fix to wp backups
This commit is contained in:
@@ -231,9 +231,16 @@ class WebsiteManager:
|
||||
Data['FileName'] = config['name']
|
||||
try:
|
||||
Data['Backuptype'] = config['Backuptype']
|
||||
|
||||
if Data['Backuptype'] == 'DataBase Backup' or Data['Backuptype'] == 'Website Backup':
|
||||
Data['WPsites'] = [WPSites.objects.get(pk=Data['backupobj'].WPSiteID)]
|
||||
else:
|
||||
Data['WPsites'] = ACLManager.GetALLWPObjects(currentACL, userID)
|
||||
|
||||
except:
|
||||
Data['Backuptype'] = None
|
||||
Data['WPsites'] = ACLManager.GetALLWPObjects(currentACL, userID)
|
||||
Data['WPsites'] = ACLManager.GetALLWPObjects(currentACL, userID)
|
||||
|
||||
proc = httpProc(request, 'websiteFunctions/WPRestoreHome.html',
|
||||
Data, 'createWebsite')
|
||||
return proc.render()
|
||||
|
||||
Reference in New Issue
Block a user