Forráskód Böngészése

System update (coding style)

markseu 9 éve
szülő
commit
24c49af963
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      system/plugins/commandline.php
  2. 1 1
      system/plugins/update.php

+ 1 - 1
system/plugins/commandline.php

@@ -428,7 +428,7 @@ class YellowCommandline
 			{
 				foreach(preg_split("/[\r\n]+/", $value["obj"]->onCommandHelp()) as $line)
 				{
-					list($command, $text) = explode(' ', $line, 2);
+					list($command) = explode(' ', $line);
 					if(!empty($command) && is_null($data[$command])) $data[$command] = $line;
 				}
 			}

+ 1 - 1
system/plugins/update.php

@@ -63,7 +63,7 @@ class YellowUpdate
 				if(empty($feature) || preg_match("/$feature/i", $key)) ++$updates;
 			}
 		}
-		if($statusCode != 200) echo "ERROR checking updates: $data[error]\n";
+		if($statusCode != 200) echo "ERROR checking updates: $dataLatest[error]\n";
 		if($updates)
 		{
 			echo "Yellow $command: $updates update".($updates==1 ? "":"s")." available\n";