Notification when Bludit is updated

This commit is contained in:
Diego Najar 2018-11-01 20:24:27 -03:00
parent 19d81f41a9
commit 4ba177cf53

View File

@ -5,6 +5,8 @@
// ============================================================================
function updateBludit() {
global $site;
global $syslog;
// New installation
if ($site->currentBuild()==0) {
$site->set(array('currentBuild'=>BLUDIT_BUILD));
@ -36,6 +38,12 @@ function updateBludit() {
// Set the current build number
$site->set(array('currentBuild'=>BLUDIT_BUILD));
Log::set('UPDATE SYSTEM - Finished.');
// Add to syslog
$syslog->add(array(
'dictionaryKey'=>'system-updated',
'notes'=>'Bludit v'.BLUDIT_VERSION
));
}
}