Skip to content

Commit cac1943

Browse files
committed
Update mw.config to 1.46.0-wmf.19
1 parent 71a1bda commit cac1943

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

mw/Api.d.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,13 @@ declare global {
385385
* Given an API response indicating an error, get a jQuery object containing a human-readable
386386
* error message that you can display somewhere on the page.
387387
*
388+
* This method handles the different error formats returned by the action API itself, and some
389+
* error conditions that may occur at other layers, e.g. user losing their network connection,
390+
* server being down, rate limits enforced by a proxy in front of MediaWiki, etc.
391+
*
392+
* Error messages, particularly for editing pages, may consist of multiple paragraphs of text.
393+
* Your user interface should have enough space for that.
394+
*
388395
* For better quality of error messages, it's recommended to use the following options in your
389396
* API queries:
390397
*
@@ -394,9 +401,6 @@ declare global {
394401
* errorsuselocal: true,
395402
* ```
396403
*
397-
* Error messages, particularly for editing pages, may consist of multiple paragraphs of text.
398-
* Your user interface should have enough space for that.
399-
*
400404
* @example
401405
* ```js
402406
* var api = new mw.Api();

mw/util.d.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,7 @@ declare global {
224224

225225
/**
226226
* Adjust the thumbnail size to fit the width steps defined in config via
227-
* config.ThumbnailSteps, according to whether config.ThumbnailStepsRatio
228-
* is set.
229-
*
230-
* This logic is duplicated server-side in File::adjustThumbWidthForSteps.
227+
* config.ThumbnailSteps, according to whether config.ThumbnailStepsRatio is set.
231228
*
232229
* @since 1.46
233230
* @param thumbWidth Target width in pixels.

0 commit comments

Comments
 (0)