Fix plugin download routine

Typo in my original PR #473 that prevents any plugin from installing.  My bad -> happened because I was too lazy to merge into my fork the tested code and simply manually did a patch.
This commit is contained in:
Squidly271
2019-03-24 14:41:35 -04:00
committed by GitHub
parent cfd8358671
commit 63b0402964

View File

@@ -149,7 +149,7 @@ EOF;
// Returns TRUE if success else FALSE and fills in error.
//
function download($URL, $name, &$error) {
if ($file = popen("wget --compressed=auto --no-cache --progress=dot -O $name $URL 2>&1", 'r')) {
if ($file = popen("wget --compression=auto --no-cache --progress=dot -O $name $URL 2>&1", 'r')) {
echo "plugin: downloading: $URL ...\r";
$level = -1;
while (!feof($file)) {