commit 5a2eac65cab942cf7b3bf9a6b03e89c799177897
parent 9a8638930a07ffa98e0832516841cf086de3e9be
Author: markseu <mark2011@mayberg.se>
Date: Wed, 20 Jul 2016 11:44:17 +0200
System update (coding style)
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/system/plugins/update.php b/system/plugins/update.php
@@ -60,7 +60,7 @@ class YellowUpdate
{
foreach($data as $key=>$value)
{
- list($version, $url) = explode(',', $value);
+ list($version) = explode(',', $value);
echo "$key $version\n";
}
if($statusCode==200) $statusCode = $this->download($data);
@@ -376,7 +376,7 @@ class YellowUpdate
list($statusCode, $dataLatest) = $this->getSoftwareVersion(true, true);
foreach($dataCurrent as $key=>$value)
{
- list($version, $url) = explode(',', $dataLatest[$key]);
+ list($version) = explode(',', $dataLatest[$key]);
if(empty($feature))
{
if(strnatcasecmp($dataCurrent[$key], $version)<0) $data[$key] = $dataLatest[$key];
@@ -405,7 +405,7 @@ class YellowUpdate
preg_match("/^\s*(.*?)\s*:\s*(.*?)\s*$/", $line, $matches);
if(!empty($matches[1]) && !empty($matches[2]))
{
- list($version, $url) = explode(',', $matches[2]);
+ list($version) = explode(',', $matches[2]);
$data[$matches[1]] = $rawFormat ? $matches[2] : $version;
}
}