diff options
author | Simon Rettberg | 2014-12-02 19:22:48 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-12-02 19:22:48 +0100 |
commit | ba2a49e9875eda489385e370bb9f2259779caa7b (patch) | |
tree | 2654d7b4a6bf99d584e146f7708c75a5b8beaeac /modules/backup.inc.php | |
parent | Fix wrong event type when displaying event log (diff) | |
download | slx-admin-ba2a49e9875eda489385e370bb9f2259779caa7b.tar.gz slx-admin-ba2a49e9875eda489385e370bb9f2259779caa7b.tar.xz slx-admin-ba2a49e9875eda489385e370bb9f2259779caa7b.zip |
Tweaks and fixes
Diffstat (limited to 'modules/backup.inc.php')
-rw-r--r-- | modules/backup.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
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, |