瀏覽代碼

Updated extensions, winter remix

markseu 4 年之前
父節點
當前提交
2ac95aae40

+ 2 - 3
system/extensions/command.php

@@ -2,7 +2,7 @@
 // Command extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/command
 // Command extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/command
 
 
 class YellowCommand {
 class YellowCommand {
-    const VERSION = "0.8.26";
+    const VERSION = "0.8.27";
     public $yellow;                       // access to API
     public $yellow;                       // access to API
     public $files;                        // number of files
     public $files;                        // number of files
     public $links;                        // number of links
     public $links;                        // number of links
@@ -498,8 +498,7 @@ class YellowCommand {
     }
     }
     
     
     // Return progress in percent
     // Return progress in percent
-    public function getProgressPercent($now, $total, $increments, $max)
-    {
+    public function getProgressPercent($now, $total, $increments, $max) {
         $percent = intval(($max / $total) * $now);
         $percent = intval(($max / $total) * $now);
         if ($increments>1) $percent = intval($percent / $increments) * $increments;
         if ($increments>1) $percent = intval($percent / $increments) * $increments;
         return min($max, $percent);
         return min($max, $percent);

+ 2 - 2
system/extensions/core.php

@@ -2,7 +2,7 @@
 // Core extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/core
 // Core extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/core
 
 
 class YellowCore {
 class YellowCore {
-    const VERSION = "0.8.37";
+    const VERSION = "0.8.38";
     const RELEASE = "0.8.16";
     const RELEASE = "0.8.16";
     public $page;           // current page
     public $page;           // current page
     public $content;        // content files
     public $content;        // content files
@@ -1781,7 +1781,7 @@ class YellowLanguage {
             $this->modified = max($this->modified, filemtime($entry));
             $this->modified = max($this->modified, filemtime($entry));
             $fileData = $this->yellow->toolbox->readFile($entry);
             $fileData = $this->yellow->toolbox->readFile($entry);
             $settings = $this->yellow->toolbox->getTextSettings($fileData, "language");
             $settings = $this->yellow->toolbox->getTextSettings($fileData, "language");
-            foreach($settings as $language=>$block) {
+            foreach ($settings as $language=>$block) {
                 if (!isset($this->settings[$language])) {
                 if (!isset($this->settings[$language])) {
                     $this->settings[$language] = $block;
                     $this->settings[$language] = $block;
                 } else {
                 } else {

+ 2 - 1
system/extensions/install.php

@@ -2,7 +2,7 @@
 // Install extension, https://github.com/datenstrom/yellow
 // Install extension, https://github.com/datenstrom/yellow
 
 
 class YellowInstall {
 class YellowInstall {
-    const VERSION = "0.8.45";
+    const VERSION = "0.8.46";
     const PRIORITY = "1";
     const PRIORITY = "1";
     public $yellow;                 // access to API
     public $yellow;                 // access to API
     
     
@@ -105,6 +105,7 @@ class YellowInstall {
                     $statusCode = max($statusCode, $this->updateLanguageArchive($fileDataPhp, $fileDataTxt, $fileDataIni, $pathBase, "install"));
                     $statusCode = max($statusCode, $this->updateLanguageArchive($fileDataPhp, $fileDataTxt, $fileDataIni, $pathBase, "install"));
                 }
                 }
                 $this->yellow->language->load($this->yellow->system->get("coreExtensionDirectory"));
                 $this->yellow->language->load($this->yellow->system->get("coreExtensionDirectory"));
+                $this->yellow->extension->load($this->yellow->system->get("coreExtensionDirectory"));
                 $zip->close();
                 $zip->close();
             } else {
             } else {
                 $statusCode = 500;
                 $statusCode = 500;

+ 6 - 6
system/extensions/update-current.ini

@@ -11,21 +11,21 @@ Tag: feature
 system/extensions/bundle.php: bundle.php, create, update
 system/extensions/bundle.php: bundle.php, create, update
 
 
 Extension: Command
 Extension: Command
-Version: 0.8.26
+Version: 0.8.27
 Description: Command line of the website.
 Description: Command line of the website.
 HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/command
 HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/command
 DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/command.zip
 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
 Developer: Datenstrom
 Tag: feature
 Tag: feature
 system/extensions/command.php: command.php, create, update
 system/extensions/command.php: command.php, create, update
 
 
 Extension: Core
 Extension: Core
-Version: 0.8.37
+Version: 0.8.38
 Description: Core functionality of the website.
 Description: Core functionality of the website.
 HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/core
 HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/core
 DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/core.zip
 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
 Developer: Datenstrom
 Tag: feature
 Tag: feature
 system/extensions/core.php: core.php, create, update
 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
 system/themes/stockholm-opensans-regular.woff: stockholm-opensans-regular.woff, create, update, careful
 
 
 Extension: Update
 Extension: Update
-Version: 0.8.46
+Version: 0.8.47
 Description: Keep your website up to date.
 Description: Keep your website up to date.
 HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/update
 HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/update
 DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/update.zip
 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
 Developer: Datenstrom
 Tag: feature
 Tag: feature
 system/extensions/update.php: update.php, create, update
 system/extensions/update.php: update.php, create, update

+ 3 - 3
system/extensions/update.php

@@ -2,7 +2,7 @@
 // Update extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/update
 // Update extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/update
 
 
 class YellowUpdate {
 class YellowUpdate {
-    const VERSION = "0.8.46";
+    const VERSION = "0.8.47";
     const PRIORITY = "2";
     const PRIORITY = "2";
     public $yellow;                 // access to API
     public $yellow;                 // access to API
     public $updates;                // number of updates
     public $updates;                // number of updates
@@ -513,7 +513,7 @@ class YellowUpdate {
         if ($action=="install" || $action=="update") {
         if ($action=="install" || $action=="update") {
             $settingsCurrent = $this->yellow->toolbox->getTextSettings($fileData, "extension");
             $settingsCurrent = $this->yellow->toolbox->getTextSettings($fileData, "extension");
             if (!$settingsCurrent->isExisting($extension)) $settingsCurrent[$extension] = new YellowArray();
             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");
             $settingsCurrent->uksort("strnatcasecmp");
             $fileDataNew = "";
             $fileDataNew = "";
             foreach ($this->yellow->toolbox->getTextLines($fileData) as $line) {
             foreach ($this->yellow->toolbox->getTextLines($fileData) as $line) {
@@ -837,7 +837,7 @@ class YellowUpdate {
     // Return time of next daily update
     // Return time of next daily update
     public function getTimestampDaily() {
     public function getTimestampDaily() {
         $timeOffset = 0;
         $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;
             $timeOffset = ($timeOffset+ord($char)) % 60;
         }
         }
         return mktime(0, 0, 0) + 60*60*24 + $timeOffset;
         return mktime(0, 0, 0) + 60*60*24 + $timeOffset;