commit 928c63a91f109eb7f2b5a792ed5e6d7b2ddc3792
parent 2bd38579179cf9afd537d4a09fb37ae63ea2cf05
Author: markseu <mark2011@mayberg.se>
Date: Tue, 4 Feb 2020 09:40:56 +0100
Updated extensions
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/system/extensions/update.php b/system/extensions/update.php
@@ -4,7 +4,7 @@
// This file may be used and distributed under the terms of the public license.
class YellowUpdate {
- const VERSION = "0.8.15";
+ const VERSION = "0.8.16";
const TYPE = "feature";
const PRIORITY = "2";
public $yellow; //access to API
@@ -379,8 +379,7 @@ class YellowUpdate {
public function showExtensions() {
list($statusCode, $dataLatest) = $this->getExtensionsVersion(true, true);
foreach ($dataLatest as $key=>$value) {
- list($version, $type, $url, $description) = explode(",", $value, 4);
- if (substru($type, 0, 4)=="http") list($version, $url, $description) = explode(",", $value, 3); //TODO: remove later, converts old format
+ list($version, $url, $description) = explode(",", $value, 3);
echo ucfirst($key).": $description\n";
}
if ($statusCode!=200) echo "ERROR checking extensions: ".$this->yellow->page->get("pageError")."\n";
@@ -394,8 +393,7 @@ class YellowUpdate {
$fileExtension = $this->yellow->system->get("coreDownloadExtension");
foreach ($data as $key=>$value) {
$fileName = $path.$this->yellow->lookup->normaliseName($key, true, false, true).".zip";
- list($version, $type, $url) = explode(",", $value);
- if (substru($type, 0, 4)=="http") list($version, $url) = explode(",", $value); //TODO: remove later, converts old format
+ list($version, $url) = explode(",", $value);
list($statusCode, $fileData) = $this->getExtensionFile($url);
if (empty($fileData) || !$this->yellow->toolbox->createFile($fileName.$fileExtension, $fileData)) {
$statusCode = 500;