mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit 2ac95aae40509974e520eea106aa5775b04d07e3
parent 2faf185e2addf644c24ca7112a388a0ca8996393
Author: markseu <mark2011@mayberg.se>
Date:   Wed,  9 Dec 2020 17:34:19 +0100

Updated extensions, winter remix

Diffstat:
Msystem/extensions/command.php | 5++---
Msystem/extensions/core.php | 4++--
Msystem/extensions/install.php | 3++-
Msystem/extensions/update-current.ini | 12++++++------
Msystem/extensions/update.php | 6+++---
5 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/system/extensions/command.php b/system/extensions/command.php @@ -2,7 +2,7 @@ // Command extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/command class YellowCommand { - const VERSION = "0.8.26"; + const VERSION = "0.8.27"; public $yellow; // access to API public $files; // number of files public $links; // number of links @@ -498,8 +498,7 @@ class YellowCommand { } // Return progress in percent - public function getProgressPercent($now, $total, $increments, $max) - { + public function getProgressPercent($now, $total, $increments, $max) { $percent = intval(($max / $total) * $now); if ($increments>1) $percent = intval($percent / $increments) * $increments; return min($max, $percent); diff --git a/system/extensions/core.php b/system/extensions/core.php @@ -2,7 +2,7 @@ // Core extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/core class YellowCore { - const VERSION = "0.8.37"; + const VERSION = "0.8.38"; const RELEASE = "0.8.16"; public $page; // current page public $content; // content files @@ -1781,7 +1781,7 @@ class YellowLanguage { $this->modified = max($this->modified, filemtime($entry)); $fileData = $this->yellow->toolbox->readFile($entry); $settings = $this->yellow->toolbox->getTextSettings($fileData, "language"); - foreach($settings as $language=>$block) { + foreach ($settings as $language=>$block) { if (!isset($this->settings[$language])) { $this->settings[$language] = $block; } else { diff --git a/system/extensions/install.php b/system/extensions/install.php @@ -2,7 +2,7 @@ // Install extension, https://github.com/datenstrom/yellow class YellowInstall { - const VERSION = "0.8.45"; + const VERSION = "0.8.46"; const PRIORITY = "1"; public $yellow; // access to API @@ -105,6 +105,7 @@ class YellowInstall { $statusCode = max($statusCode, $this->updateLanguageArchive($fileDataPhp, $fileDataTxt, $fileDataIni, $pathBase, "install")); } $this->yellow->language->load($this->yellow->system->get("coreExtensionDirectory")); + $this->yellow->extension->load($this->yellow->system->get("coreExtensionDirectory")); $zip->close(); } else { $statusCode = 500; diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini @@ -11,21 +11,21 @@ Tag: feature system/extensions/bundle.php: bundle.php, create, update Extension: Command -Version: 0.8.26 +Version: 0.8.27 Description: Command line of the website. HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/command DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/command.zip -Published: 2020-11-26 10:59:25 +Published: 2020-12-09 17:27:25 Developer: Datenstrom Tag: feature system/extensions/command.php: command.php, create, update Extension: Core -Version: 0.8.37 +Version: 0.8.38 Description: Core functionality of the website. HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/core DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/core.zip -Published: 2020-12-07 15:28:16 +Published: 2020-12-09 17:27:20 Developer: Datenstrom Tag: feature system/extensions/core.php: core.php, create, update @@ -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.46 +Version: 0.8.47 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: 2020-11-26 18:06:08 +Published: 2020-12-09 17:27:33 Developer: Datenstrom Tag: feature system/extensions/update.php: update.php, create, update diff --git a/system/extensions/update.php b/system/extensions/update.php @@ -2,7 +2,7 @@ // Update extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/update class YellowUpdate { - const VERSION = "0.8.46"; + const VERSION = "0.8.47"; const PRIORITY = "2"; public $yellow; // access to API public $updates; // number of updates @@ -513,7 +513,7 @@ class YellowUpdate { if ($action=="install" || $action=="update") { $settingsCurrent = $this->yellow->toolbox->getTextSettings($fileData, "extension"); if (!$settingsCurrent->isExisting($extension)) $settingsCurrent[$extension] = new YellowArray(); - foreach($settings as $key=>$value) $settingsCurrent[$extension][$key] = $value; + foreach ($settings as $key=>$value) $settingsCurrent[$extension][$key] = $value; $settingsCurrent->uksort("strnatcasecmp"); $fileDataNew = ""; foreach ($this->yellow->toolbox->getTextLines($fileData) as $line) { @@ -837,7 +837,7 @@ class YellowUpdate { // Return time of next daily update public function getTimestampDaily() { $timeOffset = 0; - foreach(str_split($this->yellow->system->get("sitename")) as $char) { + foreach (str_split($this->yellow->system->get("sitename")) as $char) { $timeOffset = ($timeOffset+ord($char)) % 60; } return mktime(0, 0, 0) + 60*60*24 + $timeOffset;