Updated extensions
This commit is contained in:
parent
2bd3857917
commit
928c63a91f
1 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue