Explorar el Código

System update (better update)

markseu hace 9 años
padre
commit
c7d57a9825
Se han modificado 3 ficheros con 6 adiciones y 6 borrados
  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.
 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);
 				preg_match("/^\/\*\s*(.*?)\s*:\s*(.*?)\s*\*\/$/", $line, $matches);
 				if(lcfirst($matches[1])=="theme" && !strempty($matches[2])) $theme = $matches[2];
 				if(lcfirst($matches[1])=="theme" && !strempty($matches[2])) $theme = $matches[2];
 				if(lcfirst($matches[1])=="version" && !strempty($matches[2])) $version = $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))
 			if(!empty($theme) && !empty($version))
 			{
 			{

+ 4 - 4
system/plugins/update.php

@@ -5,7 +5,7 @@
 // Update plugin
 // Update plugin
 class YellowUpdate
 class YellowUpdate
 {
 {
-	const VERSION = "0.6.8";
+	const VERSION = "0.6.9";
 	var $yellow;					//access to API
 	var $yellow;					//access to API
 	
 	
 	// Handle initialisation
 	// Handle initialisation
@@ -98,7 +98,7 @@ class YellowUpdate
 			if(empty($fileData) || !$this->yellow->toolbox->createFile($fileName.$fileExtension, $fileData))
 			if(empty($fileData) || !$this->yellow->toolbox->createFile($fileName.$fileExtension, $fileData))
 			{
 			{
 				$statusCode = 500;
 				$statusCode = 500;
-				$this->yellow->page->error($statusCode, "Can't download file '$fileName'!");
+				$this->yellow->page->error($statusCode, "Can't write file '$fileName'!");
 				break;
 				break;
 			}
 			}
 		}
 		}
@@ -110,7 +110,7 @@ class YellowUpdate
 				if(!$this->yellow->toolbox->renameFile($fileName.$fileExtension, $fileName))
 				if(!$this->yellow->toolbox->renameFile($fileName.$fileExtension, $fileName))
 				{
 				{
 					$statusCode = 500;
 					$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))
 				   !$this->yellow->toolbox->modifyFile($fileName, $modified))
 				{
 				{
 					$statusCode = 500;
 					$statusCode = 500;
-					$this->yellow->page->error($statusCode, "Can't create file '$fileName'!");
+					$this->yellow->page->error($statusCode, "Can't write file '$fileName'!");
 				}
 				}
 			}
 			}
 			if($update)
 			if($update)