diff --git a/view/js/filebrowser.js b/view/js/filebrowser.js index fc852dcd7..1faef4acc 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 c036d1817..b43cf5ce4 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