System update (better update)
This commit is contained in:
parent
b1780f0f4d
commit
c7d57a9825
3 changed files with 6 additions and 6 deletions
|
@ -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/).
|
||||
This website is made with [yellow]. [Learn more](https://developers.datenstrom.se/help/).
|
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue