mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 13:25:51 +01:00
bug fix in template loading
This commit is contained in:
@@ -345,7 +345,7 @@ class BackupManager:
|
||||
def restoreSite(self, request=None, userID=None, data=None):
|
||||
path = os.path.join("/home", "backup")
|
||||
if not os.path.exists(path):
|
||||
proc = httpProc(request, 'backup/restore.html', 'restoreBackup')
|
||||
proc = httpProc(request, 'backup/restore.html', None, 'restoreBackup')
|
||||
return proc.render()
|
||||
else:
|
||||
all_files = []
|
||||
@@ -969,7 +969,7 @@ class BackupManager:
|
||||
return HttpResponse(final_json)
|
||||
|
||||
def remoteBackups(self, request, userID=None, data=None):
|
||||
proc = httpProc(request, 'backup/remoteBackups.html', 'remoteBackups')
|
||||
proc = httpProc(request, 'backup/remoteBackups.html', None, 'remoteBackups')
|
||||
return proc.render()
|
||||
|
||||
def submitRemoteBackups(self, userID=None, data=None):
|
||||
|
||||
Reference in New Issue
Block a user