From ba2a49e9875eda489385e370bb9f2259779caa7b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 2 Dec 2014 19:22:48 +0100 Subject: Tweaks and fixes --- modules/backup.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/backup.inc.php') diff --git a/modules/backup.inc.php b/modules/backup.inc.php index 61964d47..2a44997a 100644 --- a/modules/backup.inc.php +++ b/modules/backup.inc.php @@ -96,6 +96,7 @@ class Page_Backup extends Page $this->templateData['mountid'] = $task['id']; $parent = $task['id']; } + EventLog::info('Creating backup, v' . Database::getExpectedSchemaVersion() . ' on ' . Property::getServerIp()); // Finally run backup $task = Taskmanager::submit('BackupRestore', array( 'mode' => 'restore', @@ -106,8 +107,8 @@ class Page_Backup extends Page if (isset($task['id'])) { $this->templateData['restoreid'] = $task['id']; $parent = $task['id']; + TaskmanagerCallback::addCallback($task, 'dbRestored'); } - // TODO: Trigger::rebuildAdModules(); // Wait a bit $task = Taskmanager::submit('SleepTask', array( 'seconds' => 3, -- cgit v1.2.3-55-g7522