mikuli.cz

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

commit c7d57a9825f7463a953748038b963513605e4a53
parent b1780f0f4d5f1a57952f9b3d92dd3e1d7f3aea53
Author: markseu <mark2011@mayberg.se>
Date:   Fri, 19 Aug 2016 13:16:37 +0200

System update (better update)

Diffstat:
Mcontent/9-about/page.txt | 4++--
Msystem/plugins/core.php | 2+-
Msystem/plugins/update.php | 8++++----
3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/content/9-about/page.txt b/content/9-about/page.txt @@ -3,4 +3,4 @@ Title: About --- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna pizza. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. -This website is made with [yellow]. [See information for developers](https://developers.datenstrom.se/). -\ No newline at end of file +This website is made with [yellow]. [Learn more](https://developers.datenstrom.se/help/). +\ No newline at end of file diff --git a/system/plugins/core.php b/system/plugins/core.php @@ -1694,7 +1694,7 @@ class YellowThemes preg_match("/^\/\*\s*(.*?)\s*:\s*(.*?)\s*\*\/$/", $line, $matches); if(lcfirst($matches[1])=="theme" && !strempty($matches[2])) $theme = $matches[2]; if(lcfirst($matches[1])=="version" && !strempty($matches[2])) $version = $matches[2]; - if(!empty($line) && $line[0]!= '/') break; + if(!empty($line) && $line[0]!='/') break; } if(!empty($theme) && !empty($version)) { diff --git a/system/plugins/update.php b/system/plugins/update.php @@ -5,7 +5,7 @@ // Update plugin class YellowUpdate { - const VERSION = "0.6.8"; + const VERSION = "0.6.9"; var $yellow; //access to API // Handle initialisation @@ -98,7 +98,7 @@ class YellowUpdate if(empty($fileData) || !$this->yellow->toolbox->createFile($fileName.$fileExtension, $fileData)) { $statusCode = 500; - $this->yellow->page->error($statusCode, "Can't download file '$fileName'!"); + $this->yellow->page->error($statusCode, "Can't write file '$fileName'!"); break; } } @@ -110,7 +110,7 @@ class YellowUpdate if(!$this->yellow->toolbox->renameFile($fileName.$fileExtension, $fileName)) { $statusCode = 500; - $this->yellow->page->error($statusCode, "Can't create file '$fileName'!"); + $this->yellow->page->error($statusCode, "Can't write file '$fileName'!"); } } } @@ -212,7 +212,7 @@ class YellowUpdate !$this->yellow->toolbox->modifyFile($fileName, $modified)) { $statusCode = 500; - $this->yellow->page->error($statusCode, "Can't create file '$fileName'!"); + $this->yellow->page->error($statusCode, "Can't write file '$fileName'!"); } } if($update)