Merge "Fix wrong @return type hints in Language::tsTo… methods"
[lhc/web/wiklou.git] / resources / src / mediawiki / api / options.js
index 399e6f4..0af2a75 100644 (file)
                                        }
                                } else {
                                        if ( value !== null ) {
-                                               deferreds.push( this.postWithToken( 'options', {
+                                               deferreds.push( this.postWithToken( 'csrf', {
+                                                       formatversion: 2,
                                                        action: 'options',
                                                        optionname: name,
                                                        optionvalue: value
                                                } ) );
                                        } else {
                                                // Omitting value resets the option
-                                               deferreds.push( this.postWithToken( 'options', {
+                                               deferreds.push( this.postWithToken( 'csrf', {
+                                                       formatversion: 2,
                                                        action: 'options',
                                                        optionname: name
                                                } ) );
                        }
 
                        if ( grouped.length ) {
-                               deferreds.push( this.postWithToken( 'options', {
+                               deferreds.push( this.postWithToken( 'csrf', {
+                                       formatversion: 2,
                                        action: 'options',
-                                       change: grouped.join( '|' )
+                                       change: grouped
                                } ) );
                        }