summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
authorSimon Rettberg2023-11-15 19:05:43 +0100
committerSimon Rettberg2023-11-15 19:05:43 +0100
commit1f6846bd10682f4c6a82b3c950c71ae76288a7f1 (patch)
tree3eb39784e1123dd7c348e846798069061dbe5d6a /modules-available
parentRemove 32bit support (diff)
downloadslx-admin-1f6846bd10682f4c6a82b3c950c71ae76288a7f1.tar.gz
slx-admin-1f6846bd10682f4c6a82b3c950c71ae76288a7f1.tar.xz
slx-admin-1f6846bd10682f4c6a82b3c950c71ae76288a7f1.zip
[inc/Download] Fix downloading from Wikipedia
Diffstat (limited to 'modules-available')
-rw-r--r--modules-available/sysconfig/addmodule_branding.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/sysconfig/addmodule_branding.inc.php b/modules-available/sysconfig/addmodule_branding.inc.php
index 5d94a489..52d466fe 100644
--- a/modules-available/sysconfig/addmodule_branding.inc.php
+++ b/modules-available/sysconfig/addmodule_branding.inc.php
@@ -47,8 +47,10 @@ class Branding_ProcessFile extends AddModule_Base
if (strpos($url, '://') === false)
$url = "http://$url";
$title = false;
- if (!Branding_ProcessFile::downloadSvg($this->svgFile, $url, $title))
+ if (!Branding_ProcessFile::downloadSvg($this->svgFile, $url, $title)) {
+ @unlink($this->svgFile);
Util::redirect('?do=SysConfig&action=addmodule&step=Branding_Start');
+ }
Session::set('logo_name', $title);
}
chmod($this->svgFile, 0644);