瀏覽代碼

System update (installation)

markseu 8 年之前
父節點
當前提交
c5a1f4e5ab
共有 3 個文件被更改,包括 2 次插入4 次删除
  1. 0 0
      system/plugins/update-blog.installation
  2. 0 0
      system/plugins/update-wiki.installation
  3. 2 4
      system/plugins/update.php

+ 0 - 0
system/plugins/update-blog.zip.installation → system/plugins/update-blog.installation


+ 0 - 0
system/plugins/update-wiki.zip.installation → system/plugins/update-wiki.installation


+ 2 - 4
system/plugins/update.php

@@ -328,7 +328,6 @@ class YellowUpdate
 				$this->yellow->page->error($statusCode, "Can't delete file '$entry'!");
 			}
 		}
-		$statusCode = max($statusCode, $this->updateSoftwareNotification("YellowUpdate"));
 		return $statusCode;
 	}
 
@@ -492,9 +491,8 @@ class YellowUpdate
 	{
 		$statusCode = 200;
 		$startupUpdate = $this->yellow->config->get("startupUpdate");
-		if($startupUpdate=="none") $startupUpdate = "";
-		if(!empty($startupUpdate)) $startupUpdate .= ",";
-		$startupUpdate .= $software;
+		if($startupUpdate=="none") $startupUpdate = "YellowUpdate";
+		if($software!="YellowUpdate") $startupUpdate .= ",$software";
 		$fileNameConfig = $this->yellow->config->get("configDir").$this->yellow->config->get("configFile");
 		if(!$this->yellow->config->update($fileNameConfig, array("startupUpdate" => $startupUpdate)))
 		{