mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit 24c49af963f4e59ea18710cfde0bcaf9b9ea28cd
parent f1a723240729a950feb599bf0855622aa4073b92
Author: markseu <mark2011@mayberg.se>
Date:   Mon, 11 Jul 2016 16:42:16 +0200

System update (coding style)

Diffstat:
Msystem/plugins/commandline.php | 2+-
Msystem/plugins/update.php | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/system/plugins/commandline.php b/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; } } diff --git a/system/plugins/update.php b/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";