Skip to content

Commit

Permalink
update manager basic logging added
Browse files Browse the repository at this point in the history
  • Loading branch information
nightflyza committed May 24, 2017
1 parent b1754a0 commit 4b9f2df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.2 rev 5479
0.8.2 rev 5480
2 changes: 2 additions & 0 deletions api/libs/api.updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ public function applyMysqlDump($release) {
$result .= wf_CleanDiv();
$result .= wf_tag('pre', false, '', 'style="width:100%;overflow:auto"') . shell_exec($applyCommand) . wf_tag('pre', true);
$result .= wf_BackLink(self::URL_ME);
log_register('UPDMGR APPLY SQL RELEASE `' . $release . '`');
} else {
if ((!wf_CheckPost(array('applyconfirm'))) AND ( wf_CheckPost(array('applysqldump')))) {
$result .= $this->messages->getStyledMessage(__('You are not mentally prepared for this'), 'error');
Expand All @@ -253,6 +254,7 @@ public function applyMysqlDump($release) {
}
} else {
$result = $this->messages->getStyledMessage(__('Wrong release'), 'error');
log_register('UPDMGR FAIL SQL RELEASE `' . $release . '`');
}

return ($result);
Expand Down

0 comments on commit 4b9f2df

Please sign in to comment.