Updated event handling, convert old notification
This commit is contained in:
parent
042177985f
commit
2b96b5091b
2 changed files with 10 additions and 3 deletions
|
@ -89,11 +89,11 @@ system/themes/stockholm-opensans-light.woff: stockholm-opensans-light.woff, crea
|
|||
system/themes/stockholm-opensans-regular.woff: stockholm-opensans-regular.woff, create, update, careful
|
||||
|
||||
Extension: Update
|
||||
Version: 0.8.49
|
||||
Version: 0.8.50
|
||||
Description: Keep your website up to date.
|
||||
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/update
|
||||
DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/update.zip
|
||||
Published: 2021-01-15 20:31:50
|
||||
Published: 2021-03-25 21:43:34
|
||||
Developer: Datenstrom
|
||||
Tag: feature
|
||||
system/extensions/update.php: update.php, create, update
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Update extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/update
|
||||
|
||||
class YellowUpdate {
|
||||
const VERSION = "0.8.49";
|
||||
const VERSION = "0.8.50";
|
||||
const PRIORITY = "2";
|
||||
public $yellow; // access to API
|
||||
public $updates; // number of updates
|
||||
|
@ -419,6 +419,13 @@ class YellowUpdate {
|
|||
$this->yellow->language->load("system/extensions/yellow-language.ini");
|
||||
$this->yellow->page->error(503, "Flux capacitor is charging to 1.21 gigawatt, please reload page!");
|
||||
}
|
||||
if ($this->yellow->system->isExisting("updateNotification")) { // TODO: remove later, convert old notification
|
||||
$updateEventPending = $this->yellow->system->get("updateNotification");
|
||||
$fileName = $this->yellow->system->get("coreExtensionDirectory").$this->yellow->system->get("coreSystemFile");
|
||||
if (!$this->yellow->system->save($fileName, array("updateEventPending" => $updateEventPending))) {
|
||||
$this->yellow->log("error", "Can't write file '$fileName'!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Update system settings
|
||||
|
|
Loading…
Add table
Reference in a new issue