Notification when Bludit is updated
This commit is contained in:
parent
19d81f41a9
commit
4ba177cf53
|
@ -5,6 +5,8 @@
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
function updateBludit() {
|
function updateBludit() {
|
||||||
global $site;
|
global $site;
|
||||||
|
global $syslog;
|
||||||
|
|
||||||
// New installation
|
// New installation
|
||||||
if ($site->currentBuild()==0) {
|
if ($site->currentBuild()==0) {
|
||||||
$site->set(array('currentBuild'=>BLUDIT_BUILD));
|
$site->set(array('currentBuild'=>BLUDIT_BUILD));
|
||||||
|
@ -36,6 +38,12 @@ function updateBludit() {
|
||||||
// Set the current build number
|
// Set the current build number
|
||||||
$site->set(array('currentBuild'=>BLUDIT_BUILD));
|
$site->set(array('currentBuild'=>BLUDIT_BUILD));
|
||||||
Log::set('UPDATE SYSTEM - Finished.');
|
Log::set('UPDATE SYSTEM - Finished.');
|
||||||
|
|
||||||
|
// Add to syslog
|
||||||
|
$syslog->add(array(
|
||||||
|
'dictionaryKey'=>'system-updated',
|
||||||
|
'notes'=>'Bludit v'.BLUDIT_VERSION
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue