commit 16938a00a6aebfd5738ac6ba920b2f549e324908
parent 0b4ad495ae24cc21e62d1cd0d1bc883ab869a768
Author: markseu <mark2011@mayberg.se>
Date: Sat, 25 Mar 2017 15:06:52 +0100
System update (unix philosophy remix)
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/system/plugins/update.php b/system/plugins/update.php
@@ -5,7 +5,7 @@
class YellowUpdate
{
- const VERSION = "0.6.14";
+ const VERSION = "0.6.15";
var $yellow; //access to API
var $updates; //number of updates
@@ -721,7 +721,8 @@ class YellowUpdate
$fileData = $rawData;
} else if($statusCode==0) {
$statusCode = 500;
- $this->yellow->page->error($statusCode, "Can't connect to server!");
+ list($scheme, $address) = $this->yellow->lookup->getUrlInformation($url);
+ $this->yellow->page->error($statusCode, "Can't connect to server '$scheme://$address'!");
} else {
$statusCode = 500;
$this->yellow->page->error($statusCode, "Can't download file '$url'!");
@@ -753,4 +754,4 @@ class YellowUpdate
}
$yellow->plugins->register("update", "YellowUpdate", YellowUpdate::VERSION, 1);
-?>
-\ No newline at end of file
+?>