diff options
author | Simon Rettberg | 2023-11-15 19:05:43 +0100 |
---|---|---|
committer | Simon Rettberg | 2023-11-15 19:05:43 +0100 |
commit | 1f6846bd10682f4c6a82b3c950c71ae76288a7f1 (patch) | |
tree | 3eb39784e1123dd7c348e846798069061dbe5d6a /modules-available | |
parent | Remove 32bit support (diff) | |
download | slx-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.php | 4 |
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); |