From be7dcf694e8ff6ae2bbe11446309d2aeada8e0a1 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 12 Oct 2021 17:01:54 +0200 Subject: [PATCH] DEV: correct argument names for addGlobalNotice (#14582) --- app/assets/javascripts/discourse/app/lib/plugin-api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/lib/plugin-api.js b/app/assets/javascripts/discourse/app/lib/plugin-api.js index ed86e5d8a3..fcc0a94e6b 100644 --- a/app/assets/javascripts/discourse/app/lib/plugin-api.js +++ b/app/assets/javascripts/discourse/app/lib/plugin-api.js @@ -1243,8 +1243,8 @@ class PluginApi { * api.addGlobalNotice("text", "foo", { html: "

bar

" }) * **/ - addGlobalNotice(id, text, options) { - addGlobalNotice(id, text, options); + addGlobalNotice(text, id, options) { + addGlobalNotice(text, id, options); } /**