diff --git a/view/js/filebrowser.js b/view/js/filebrowser.js index fc852dcd75..1faef4acc4 100644 --- a/view/js/filebrowser.js +++ b/view/js/filebrowser.js @@ -86,7 +86,7 @@ var FileBrowser = { var embed = ""; if (FileBrowser.type == "image") { - embed = "[url="+this.dataset.link+"][img]"+this.dataset.img+"[/img][/url]"; + embed = "[url="+this.dataset.link+"][img="+this.dataset.img+"][/img][/url]"; } if (FileBrowser.type=="file") { // attachment links are "baseurl/attach/id"; we need id diff --git a/view/theme/frio/js/filebrowser.js b/view/theme/frio/js/filebrowser.js index c036d18175..b43cf5ce43 100644 --- a/view/theme/frio/js/filebrowser.js +++ b/view/theme/frio/js/filebrowser.js @@ -111,7 +111,7 @@ var FileBrowser = { var embed = ""; if (FileBrowser.type === "image") { - embed = "[url=" + this.dataset.link + "][img]" + this.dataset.img + "[/img][/url]"; + embed = "[url=" + this.dataset.link + "][img=" + this.dataset.img + "][/img][/url]"; } if (FileBrowser.type === "file") { // attachment links are "baseurl/attach/id"; we need id