浏览代码

System update (better update)

markseu 9 年之前
父节点
当前提交
c7d57a9825
共有 3 个文件被更改,包括 6 次插入6 次删除
  1. 1 1
      content/9-about/page.txt
  2. 1 1
      system/plugins/core.php
  3. 4 4
      system/plugins/update.php

+ 1 - 1
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/).
+This website is made with [yellow]. [Learn more](https://developers.datenstrom.se/help/).

+ 1 - 1
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))
 			{

+ 4 - 4
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)