Fixed manual logo filename
authorAlexander Ebert <ebert@woltlab.com>
Sun, 15 Feb 2015 13:47:43 +0000 (14:47 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 15 Feb 2015 13:47:43 +0000 (14:47 +0100)
wcfsetup/install/files/acp/js/WCF.ACP.Style.js

index 51b49d25f22575d1d148a2148493556ef9c34a30..e2a70d3c5e45e01a53e74af023084d7b9387b8e5 100644 (file)
@@ -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 {