Skip to content

A platform for community discussion. Free, open, simple.

DEV: correct argument names for addGlobalNotice (#14582)

Joffrey JAFFEUXbe7dcf694e8f
diff --git a/app/assets/javascripts/discourse/app/lib/plugin-api.js b/app/assets/javascripts/discourse/app/lib/plugin-api.js
index ed86e5d8a3d..fcc0a94e6b2 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: "<p>bar</p>" })
*
**/
- addGlobalNotice(id, text, options) {
- addGlobalNotice(id, text, options);
+ addGlobalNotice(text, id, options) {
+ addGlobalNotice(text, id, options);
}
/**