From 7d270a91cccf1c4d45b92c0633be547b67e2776d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 15 Feb 2015 14:47:43 +0100 Subject: [PATCH] Fixed manual logo filename --- wcfsetup/install/files/acp/js/WCF.ACP.Style.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.Style.js b/wcfsetup/install/files/acp/js/WCF.ACP.Style.js index 51b49d25f2..e2a70d3c5e 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.Style.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.Style.js @@ -231,12 +231,17 @@ WCF.ACP.Style.LogoUpload = WCF.Upload.extend({ var $src = this._pageLogo.val(); if ($src.length) { if (!$src.match(/^https?:\/\//)) { - var $path = this._pageLogo.val(); + var $path = this._imagePath.val(); if (!$path) { $path = 'images/'; } - $path = this._wcfPath + $path; + $path = this._wcfPath + $path.replace(/^\/?images\/?/, ''); + if ($path.substr(-1) !== '/') { + $path += '/'; + } + + $src = $path + $src; } } else { -- 2.20.1