6 years agoUpdate grunt-jsonlint to 1.0.7
Paladox [Thu, 24 Dec 2015 14:12:42 +0000 (14:12 +0000)]
Update grunt-jsonlint to 1.0.7

This update now tells you on which line in which file the error happends.

Changelog is

1.0.7 Include file name and JSON source line number in error messages

1.0.6 CJSON support thanks to @fredghosn, unit tests

Change-Id: I38dc4a51416cfde0bb0434921d15f1c119abc01b

6 years agoMerge "SpecialContributions: Simplify check for 'Special:Contributions/newbies'"
jenkins-bot [Thu, 24 Dec 2015 04:27:09 +0000 (04:27 +0000)]
Merge "SpecialContributions: Simplify check for 'Special:Contributions/newbies'"

6 years agoMerge "Make getLagFromPtHeartbeat() always use the LB cluster master entry"
jenkins-bot [Wed, 23 Dec 2015 23:27:30 +0000 (23:27 +0000)]
Merge "Make getLagFromPtHeartbeat() always use the LB cluster master entry"

6 years agoMerge "Allow $wgInterwikiCache to be an associative array"
jenkins-bot [Wed, 23 Dec 2015 22:40:39 +0000 (22:40 +0000)]
Merge "Allow $wgInterwikiCache to be an associative array"

6 years agoAllow $wgInterwikiCache to be an associative array
Ori Livneh [Sun, 1 Nov 2015 06:04:18 +0000 (23:04 -0700)]
Allow $wgInterwikiCache to be an associative array

For the same reasons wikiversions.cdb was converted to a PHP file -- viz., that
static arrays in PHP files get cached in HHVM's bytecode cache and are
therefore faster to use with HHVM than CDB files.

Bug: T122362
Change-Id: I5a979f047031ef211622f399df9b3b388797f53a

6 years agoMerge "SpecialMediaSattistics: Add header for "Total file size""
jenkins-bot [Wed, 23 Dec 2015 22:09:21 +0000 (22:09 +0000)]
Merge "SpecialMediaSattistics: Add header for "Total file size""

6 years agoSpecialContributions: Simplify check for 'Special:Contributions/newbies'
Bartosz Dziewoński [Wed, 23 Dec 2015 21:17:06 +0000 (22:17 +0100)]
SpecialContributions: Simplify check for 'Special:Contributions/newbies'

Added in 54615b5ea1a05caf40461b46193b4779e912f528 (per T36659)
as a possibly temporary workaround, it has stuck around for six
release versions now. It's not going to suddenly disappear
and we shouldn't optimize this code for ease of removal :)

Bug: T36659
Change-Id: I946ae7cf164f5c71b2ea4023161df7452bd1745a

6 years agoMerge "Remove arbitrary newSequentialPerNodeIDs() $count limit"
jenkins-bot [Wed, 23 Dec 2015 20:57:29 +0000 (20:57 +0000)]
Merge "Remove arbitrary newSequentialPerNodeIDs() $count limit"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 23 Dec 2015 20:49:01 +0000 (21:49 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Idfa0fd6e8908367a74f73118ac1d430196fd839b

6 years agoSpecialMediaSattistics: Add header for "Total file size"
Florian [Wed, 23 Dec 2015 20:23:58 +0000 (21:23 +0100)]
SpecialMediaSattistics: Add header for "Total file size"

Bug: T122208
Change-Id: I1fb9f3c80e2def9623ce8b5d4e3765fe9cbafa25

6 years agoMerge "Remove mediawiki.special.javaScriptTest module"
jenkins-bot [Wed, 23 Dec 2015 20:06:42 +0000 (20:06 +0000)]
Merge "Remove mediawiki.special.javaScriptTest module"

6 years agoRemove mediawiki.special.javaScriptTest module
Timo Tijhof [Fri, 18 Dec 2015 22:03:53 +0000 (14:03 -0800)]
Remove mediawiki.special.javaScriptTest module

We're almost ready to drop the non-plain mode of Special:JavaScriptTest
in favour of Special:JavaScript/qunit/plain. There's a few mobile-related
extensions still using the non-karma mode for qunit testing.

However, none of them make use of the Skin selector, which was mainly a debug
thing I added in the initial version. It no longer makes sense since our tests
now enforce an anti-dependency on skin html and other context. Encouraging
testing in multiple skins in the old UI therefore no longer makes sense.

This also fixes one of the most frequent errors in resourceloader logs and gets
rid of an ugly hack in Resources.php that causes a small amount of overhead
in ResourceLoader::__construct().

> MessageBlobStore failed to find skinname-fallback
> MessageBlobStore failed to find skinname-apioutput

Change-Id: Idaacf718703883c6a7e83a17ccd3f41ebdca53d1

6 years agoMerge "mediawiki.util: Remove outdated comment from unit test"
jenkins-bot [Wed, 23 Dec 2015 19:09:13 +0000 (19:09 +0000)]
Merge "mediawiki.util: Remove outdated comment from unit test"

6 years agoMerge "Pass __METHOD__ to load balancer commit/rollback methods"
jenkins-bot [Wed, 23 Dec 2015 18:48:39 +0000 (18:48 +0000)]
Merge "Pass __METHOD__ to load balancer commit/rollback methods"

6 years agoMerge "Add submit message for Special:PageLanguage"
jenkins-bot [Wed, 23 Dec 2015 18:43:00 +0000 (18:43 +0000)]
Merge "Add submit message for Special:PageLanguage"

6 years agoAdd submit message for Special:PageLanguage
victorbarbu [Wed, 23 Dec 2015 11:16:35 +0000 (13:16 +0200)]
Add submit message for Special:PageLanguage

Added a submit message for Special:PageLanguage to fix the misleading
behavior in other languages than English.

Bug: T120578
Change-Id: I725ef06ec7cfb0fe6d002c54113411e81b033ae4

6 years agoMerge "mw.widgets.CategorySelector: Prevent duplicates"
jenkins-bot [Wed, 23 Dec 2015 13:12:52 +0000 (13:12 +0000)]
Merge "mw.widgets.CategorySelector: Prevent duplicates"

6 years agoMerge changes I69557b09,I9bd0b280
jenkins-bot [Wed, 23 Dec 2015 10:17:41 +0000 (10:17 +0000)]
Merge changes I69557b09,I9bd0b280

* changes:
  Prevent blocked users from changing user rights through the API
  Add dieBlocked to APIBase and make use of it

6 years agoMerge "Import: Importing no longer accepts too big revisions"
jenkins-bot [Wed, 23 Dec 2015 09:40:13 +0000 (09:40 +0000)]
Merge "Import: Importing no longer accepts too big revisions"

6 years agoImport: Importing no longer accepts too big revisions
This, that and the other [Wed, 23 Dec 2015 09:31:37 +0000 (20:31 +1100)]
Import: Importing no longer accepts too big revisions

Make sure the size of imported revisions does not exceed $wgMaxArticleSize.

Bug: T73230
Change-Id: I6addace7d0eae565196bba564fbd1e329b681064

6 years agoMerge "UserCSSPrefsModule: Remove redundant inline text-decoration:none css rules"
jenkins-bot [Wed, 23 Dec 2015 09:28:40 +0000 (09:28 +0000)]
Merge "UserCSSPrefsModule: Remove redundant inline text-decoration:none css rules"

6 years agoAdd more $wgCdnReboundPurgeDelay comments
Aaron Schulz [Wed, 23 Dec 2015 03:06:00 +0000 (19:06 -0800)]
Add more $wgCdnReboundPurgeDelay comments

Change-Id: I038efb5981bbdbb5aa51c1f55b9a13e7cc70da2b

6 years agoPass __METHOD__ to load balancer commit/rollback methods
Aaron Schulz [Wed, 23 Dec 2015 02:30:20 +0000 (18:30 -0800)]
Pass __METHOD__ to load balancer commit/rollback methods

Change-Id: I3fd87908c2a493fae49de6a29efe79f8d433c112

6 years agoMerge "Don't allow atttributes whose namespace starts with `data-`."
jenkins-bot [Wed, 23 Dec 2015 01:38:52 +0000 (01:38 +0000)]
Merge "Don't allow atttributes whose namespace starts with `data-`."

6 years agoMerge "Avoid "Unable to set value to APCBagOStuff" exceptions"
jenkins-bot [Wed, 23 Dec 2015 01:21:10 +0000 (01:21 +0000)]
Merge "Avoid "Unable to set value to APCBagOStuff" exceptions"

6 years agoMerge "diff: Make DifferenceEngine patrol link creation more flexible"
jenkins-bot [Wed, 23 Dec 2015 00:30:30 +0000 (00:30 +0000)]
Merge "diff: Make DifferenceEngine patrol link creation more flexible"

6 years agoMerge "Change talkpagelinktext to lowercase"
jenkins-bot [Wed, 23 Dec 2015 00:22:37 +0000 (00:22 +0000)]
Merge "Change talkpagelinktext to lowercase"

6 years agodiff: Make DifferenceEngine patrol link creation more flexible
Florian [Fri, 4 Dec 2015 17:34:49 +0000 (18:34 +0100)]
diff: Make DifferenceEngine patrol link creation more flexible

* Move the main logic from DifferenceEngine::markPatrolledLink() to
  DifferenceEngine::getMarkPatrolledLinkInfo(). Returning an array of
  information instead of a complete HTML string.

Bug: T101491
Change-Id: Id09ccf60aec9b693d7df648a6dfcde629545f620

6 years agoMerge "Remove IE 6&7 CSS hacks"
jenkins-bot [Tue, 22 Dec 2015 23:38:39 +0000 (23:38 +0000)]
Merge "Remove IE 6&7 CSS hacks"

6 years agoDon't allow atttributes whose namespace starts with `data-`.
C. Scott Ananian [Tue, 22 Dec 2015 23:24:33 +0000 (18:24 -0500)]
Don't allow atttributes whose namespace starts with `data-`.

Change-Id: Ia76c74941b09e3ad131fe2fee31ffec3e540170b

6 years agoUserCSSPrefsModule: Remove redundant inline text-decoration:none css rules
Timo Tijhof [Wed, 8 Jul 2015 18:56:31 +0000 (19:56 +0100)]
UserCSSPrefsModule: Remove redundant inline text-decoration:none css rules

By default user option 'underline' is '2' which means no skin override.

Once a upon a time, none of the popular MediaWiki skins specified whether links should have
underlines, and most browsers default to having an underline on links (when not hovering).

As such, there was an exception added for languages where underlines cause text to be unreadable.

Nowadays however all modern skins explicitly specify the intended design for links.
Neither the default skin (Vector) nor other popular skins I checked have underlines by default.
As such, this rule is redundant.

If a skin comes along that does specify underlines by default, then these rules should be placed
in that skins' stylesheet. Not in the HTML of all pages.

Incidentally, this was the last code branch in ResourceLoaderUserCSSPrefsModule that is true by
default. Which means from now on this <style> tag is automatically omitted from the HTML for
logged-out users and users that haven't changed the 'underline' or 'editfont' preference.

Implement the missing isKnownEmpty() method so that OutputPage does the automatic omission.

To test the new text-decoration rule in mediawiki.skinning:
* Change user preference language to "ar" and observe anchor links in the interface
  not having underlines on-hover.
* Change $wgLanguageCode to "ar" and observe anchor links in the content not having
  underlines on-hover.

* 2011 (043f98a3; r101445) Move overrides from shared.css to ResourceLoaderUserOptionsModule
                           Also remove "!important" from underline css
* 2011 (33293c9b; r96261) Apply "!important" to underline user option css
* 2011 (81446abc; r91432; T31712) Move overrides from MessageXX.php to skins/common/shared.css
* 2006 (43b2fb56; r15823) Move overrides from LanguageXX.php to MessageX.php
* 2004 (f9f3e915) Add override to LanguageAr.php

Bug: T105313
Change-Id: I94dda30fb80b30e9c12a74a8b09065da55681929

6 years agomediawiki.util: Remove outdated comment from unit test
Timo Tijhof [Tue, 22 Dec 2015 22:30:23 +0000 (14:30 -0800)]
mediawiki.util: Remove outdated comment from unit test

'wgArticlePath' is actually in the startup module, but that is irrelevant
since tests should (and do) mock these configs regardless of whether they
have defaults so that they work regardless of the wiki configuration.

Change-Id: I8b9321ed9f578b614f5d89fe8ab0ab6ad9f508f2

6 years agoChange talkpagelinktext to lowercase
Derk-Jan Hartman [Mon, 21 Dec 2015 13:28:05 +0000 (14:28 +0100)]
Change talkpagelinktext to lowercase

The message is used during the string "Some user (Talk | contribs |
block)". There, it's used as a general noun, which shouldn't be

This message has been not capitalized on en.wp since 2009

Bug: T99225
Change-Id: I0c18ada9a6a0224f76e14e52f6da1cbfa81e68dd

6 years agoMerge "Let LBFactory/LoadBalancer transaction methods take __METHOD__"
jenkins-bot [Tue, 22 Dec 2015 21:29:26 +0000 (21:29 +0000)]
Merge "Let LBFactory/LoadBalancer transaction methods take __METHOD__"

6 years agoMerge "mw.widgets.CategorySelector: Don't use 'new' with $.Deferred"
jenkins-bot [Tue, 22 Dec 2015 21:29:11 +0000 (21:29 +0000)]
Merge "mw.widgets.CategorySelector: Don't use 'new' with $.Deferred"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 22 Dec 2015 20:52:24 +0000 (21:52 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I48331e4966e62de65fc08a755a0f98b5ca630093

6 years agoLet LBFactory/LoadBalancer transaction methods take __METHOD__
Aaron Schulz [Tue, 22 Dec 2015 11:05:45 +0000 (03:05 -0800)]
Let LBFactory/LoadBalancer transaction methods take __METHOD__

Also send commitAll() times to statsd like commitMasterChanges().

Change-Id: I261ca89f00e40b35f2ddeef6845b111720e7e43c

6 years agomw.widgets.CategorySelector: Don't use 'new' with $.Deferred
Bartosz Dziewoński [Tue, 22 Dec 2015 19:50:41 +0000 (20:50 +0100)]
mw.widgets.CategorySelector: Don't use 'new' with $.Deferred

Both ways work, but this seems to be the standard one.

Change-Id: Id1cf918781672a4b6f4b8c80b5d0c9f2d179a403

6 years agoTitle: Fix typo in variable name
Bartosz Dziewoński [Tue, 22 Dec 2015 17:06:36 +0000 (18:06 +0100)]
Title: Fix typo in variable name

Change-Id: I8da1c995f2da2e7a43c70aeadd28b93e5f3e511f

6 years agoMerge "Support Mustache partials in Mustache template module"
jenkins-bot [Tue, 22 Dec 2015 19:36:27 +0000 (19:36 +0000)]
Merge "Support Mustache partials in Mustache template module"

6 years agoPrevent blocked users from changing user rights through the API
Andrew H [Mon, 21 Dec 2015 20:17:40 +0000 (20:17 +0000)]
Prevent blocked users from changing user rights through the API

Prevent blocked users only if they do not have full userrights privleges,
which is the same behavior as implemented in Special:UserRights.

Change-Id: I69557b0951c8fb8b4e7d3ba571b0e5d30782ab4c

6 years agoAdd dieBlocked to APIBase and make use of it
Andrew H [Mon, 21 Dec 2015 22:59:16 +0000 (22:59 +0000)]
Add dieBlocked to APIBase and make use of it

Moves a frequently used snippet of code into APIBase to throw a
usage exception with block info.

Change-Id: I9bd0b2804e9e246f6d53031b04af48f111c0814c

6 years agomw.widgets.CategorySelector: Prevent duplicates
Bartosz Dziewoński [Tue, 22 Dec 2015 17:19:00 +0000 (18:19 +0100)]
mw.widgets.CategorySelector: Prevent duplicates

CapsuleMultiSelectWidget should take care of it by itself, but its
logic is foiled by how we canonicalize the data.

Bug: T122219
Change-Id: I2bdc3681dfde3080067ea12e5a036824d154a72f

6 years agoMerge "mediawiki.page.patrol.ajax: Rename file to match module name"
jenkins-bot [Tue, 22 Dec 2015 14:07:40 +0000 (14:07 +0000)]
Merge "mediawiki.page.patrol.ajax: Rename file to match module name"

6 years agoMerge "Make Special:MediaStatistics show a total count of file sizes"
jenkins-bot [Tue, 22 Dec 2015 14:04:34 +0000 (14:04 +0000)]
Merge "Make Special:MediaStatistics show a total count of file sizes"

6 years agoAvoid "Unable to set value to APCBagOStuff" exceptions
Aaron Schulz [Mon, 21 Dec 2015 20:12:06 +0000 (12:12 -0800)]
Avoid "Unable to set value to APCBagOStuff" exceptions

* This can happen due to incr/add races. Use incrWithInit()
  instead to handle such cases.
* Also made BagOStuff:incrWithInit() return the new value like incr().

Change-Id: I0e3b02a4cff7c20544a9db2eaabd3f61e5a470b1

6 years agoMerge "mediawiki.template: Refactor inaccurate documentation"
jenkins-bot [Tue, 22 Dec 2015 04:39:42 +0000 (04:39 +0000)]
Merge "mediawiki.template: Refactor inaccurate documentation"

6 years agomediawiki.page.patrol.ajax: Rename file to match module name
Timo Tijhof [Tue, 22 Dec 2015 03:10:33 +0000 (19:10 -0800)]
mediawiki.page.patrol.ajax: Rename file to match module name

Change-Id: If8b99d336749d26f18246491ca094487b4dea18e

6 years agoMake Special:MediaStatistics show a total count of file sizes
PranavK [Sat, 19 Dec 2015 12:42:06 +0000 (18:12 +0530)]
Make Special:MediaStatistics show a total count of file sizes

Bug: T117606
Change-Id: I4216566df4dd2423d679f0f64fa694fa06e55c0e

6 years agomediawiki.template: Refactor inaccurate documentation
Timo Tijhof [Tue, 22 Dec 2015 01:41:09 +0000 (17:41 -0800)]
mediawiki.template: Refactor inaccurate documentation

* Fix various incorrect type hints. Various functions were documented
  as returning functions when really they return objects with a render()
  method (aka "Compiled template").
* Improve documentation on what compilers and template interfaces are.

Change-Id: Ib66ddd727858331b61684d2add7b6bc3abd020f1

6 years agoSupport Mustache partials in Mustache template module
jdlrobson [Sat, 25 Apr 2015 00:12:46 +0000 (17:12 -0700)]
Support Mustache partials in Mustache template module

* Add template partial support which matches the server-side implementation
  and means that we have full mustache support.


Bug: T97188
Change-Id: Ic752f52669dbffa21c4a514509c3ea1da8ac5d9c

6 years agoMerge "mw.ForeignStructuredUpload: Prevent 'null' author name if dialog opened when...
jenkins-bot [Tue, 22 Dec 2015 01:10:12 +0000 (01:10 +0000)]
Merge "mw.ForeignStructuredUpload: Prevent 'null' author name if dialog opened when not logged in"

6 years agoMerge "mw.Upload.BookletLayout: Require non-whitespace description"
jenkins-bot [Tue, 22 Dec 2015 01:08:46 +0000 (01:08 +0000)]
Merge "mw.Upload.BookletLayout: Require non-whitespace description"

6 years agoMerge "RefreshLinksJob: Restore LinksUpdate::setTriggeringUser() call"
jenkins-bot [Tue, 22 Dec 2015 00:38:55 +0000 (00:38 +0000)]
Merge "RefreshLinksJob: Restore LinksUpdate::setTriggeringUser() call"

6 years agoMerge "Revert "API: Add a unit test to check all modules' i18n""
jenkins-bot [Tue, 22 Dec 2015 00:19:15 +0000 (00:19 +0000)]
Merge "Revert "API: Add a unit test to check all modules' i18n""

6 years agoRevert "API: Add a unit test to check all modules' i18n"
Krinkle [Tue, 22 Dec 2015 00:10:38 +0000 (00:10 +0000)]
Revert "API: Add a unit test to check all modules' i18n"

Reverting for now in the sake of productivity and restoration of
the passing unit test status of extensions' master branches.

Would recommend re-applying when the CI gate extensions are
passing and ideally some notification ahead of time to wikitech-l.

This reverts commit 0d3712dd6091b49ff79056388710ac502bed73a1.

Change-Id: I9142e6161257459cd11db0ca4cdd57793cfee8fa

6 years agoUpdate autoload.php
aude [Mon, 21 Dec 2015 10:32:48 +0000 (12:32 +0200)]
Update autoload.php

with new classes introduced in I9518a52

Change-Id: I971a4a0c4e2cceff67072398960321c1a5dbf549

6 years agoMerge "Add $revision to TitleMoveCompleting for completeness"
jenkins-bot [Mon, 21 Dec 2015 23:01:31 +0000 (23:01 +0000)]
Merge "Add $revision to TitleMoveCompleting for completeness"

6 years agoMerge "SpecialWatchlist: Avoid double space between checkbox and label"
jenkins-bot [Mon, 21 Dec 2015 20:58:17 +0000 (20:58 +0000)]
Merge "SpecialWatchlist: Avoid double space between checkbox and label"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 21 Dec 2015 20:47:46 +0000 (21:47 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Id01f5e152f0eebbe42e5faab9c21450b10148483

6 years agoSpecialWatchlist: Avoid double space between checkbox and label
Fomafix [Mon, 21 Dec 2015 20:32:59 +0000 (20:32 +0000)]
SpecialWatchlist: Avoid double space between checkbox and label

Add a separate message 'wlshowhidecategorization' without parameter.

Change-Id: I02a302f90e5c275559118698e31a46237b4b1cb1

6 years agoMerge "Add a new hook AfterBuildFeedLinks to manipulate feed links"
jenkins-bot [Mon, 21 Dec 2015 19:43:36 +0000 (19:43 +0000)]
Merge "Add a new hook AfterBuildFeedLinks to manipulate feed links"

6 years agoRemove arbitrary newSequentialPerNodeIDs() $count limit
Aaron Schulz [Mon, 21 Dec 2015 19:15:11 +0000 (11:15 -0800)]
Remove arbitrary newSequentialPerNodeIDs() $count limit

The increment is done in one step, so there is no real reason
to limit this (e.g. performance). It simply makes errors that
can break things.

Bug: T122068
Change-Id: I3278b4ddfe862f8043b6788b3e82e90be730f68c

6 years agoMerge "API: Improve description for ApiQueryPrefixSearch"
jenkins-bot [Mon, 21 Dec 2015 19:14:10 +0000 (19:14 +0000)]
Merge "API: Improve description for ApiQueryPrefixSearch"

6 years agomw.ForeignStructuredUpload: Prevent 'null' author name if dialog opened when not...
Bartosz Dziewoński [Mon, 21 Dec 2015 18:22:20 +0000 (19:22 +0100)]
mw.ForeignStructuredUpload: Prevent 'null' author name if dialog opened when not logged in

Bug: T121097
Change-Id: Ifb178161fabe3adf0a76543a1226eb91adfe1b1d

6 years agomw.Upload.BookletLayout: Require non-whitespace description
Bartosz Dziewoński [Mon, 21 Dec 2015 18:09:34 +0000 (19:09 +0100)]
mw.Upload.BookletLayout: Require non-whitespace description

Bug: T121746
Change-Id: I10d331154613dfa5c37ecc021a2ec60893e0b93d

6 years agoMerge "mediawiki.util: Use correct encoding for fragment in getUrl"
jenkins-bot [Mon, 21 Dec 2015 16:37:39 +0000 (16:37 +0000)]
Merge "mediawiki.util: Use correct encoding for fragment in getUrl"

6 years agomediawiki.util: Use correct encoding for fragment in getUrl
Fomafix [Mon, 21 Dec 2015 06:17:11 +0000 (06:17 +0000)]
mediawiki.util: Use correct encoding for fragment in getUrl

Introduce mw.util.escapeId with same encoding as Sanitizer::escapeId.

Add more tests to getUrl:
* empty title
* several characters for encoding test

Bug: T103553
Bug: T103661
Change-Id: I15d8c48b9ea4a144a0938353c5b265cb6b6a159b

6 years agoMerge "mw.Upload.BookletLayout: Use $.Deferred(), not $.Deferred"
jenkins-bot [Mon, 21 Dec 2015 15:43:54 +0000 (15:43 +0000)]
Merge "mw.Upload.BookletLayout: Use $.Deferred(), not $.Deferred"

6 years agoAPI: Improve description for ApiQueryPrefixSearch
Brad Jorsch [Mon, 21 Dec 2015 15:27:46 +0000 (10:27 -0500)]
API: Improve description for ApiQueryPrefixSearch

Make it clear that the purpose of ApiQueryPrefixSearch is ''search'',
not to be an equivalent of Special:PrefixIndex.

Change-Id: I5012d8e99b3250723d875fbb9ed5fbc08e53ca17

6 years agomw.Upload.BookletLayout: Use $.Deferred(), not $.Deferred
Prateek Saxena [Mon, 21 Dec 2015 15:26:10 +0000 (20:56 +0530)]
mw.Upload.BookletLayout: Use $.Deferred(), not $.Deferred

Follows up on I1ac083fd491c7445240b4fd9f7b3badacb2d2d37

Change-Id: I58e9ad669f7b373b45861e4b41f488b167509b34

6 years agoMerge "Import: Properly handle deleted usernames in XML dumps"
jenkins-bot [Mon, 21 Dec 2015 13:00:49 +0000 (13:00 +0000)]
Merge "Import: Properly handle deleted usernames in XML dumps"

6 years agoImport: Properly handle deleted usernames in XML dumps
georggi [Mon, 21 Dec 2015 12:50:20 +0000 (14:50 +0200)]
Import: Properly handle deleted usernames in XML dumps

Fixed username being not shown at all when contributor is deleted
Fixed text not being shown when contributor is deleted

Bug: T121338
Change-Id: I981c326f61735ace1d1fba35428bfc25d127b544

6 years agoMerge "Prevent blocked users from performing revision deletion"
jenkins-bot [Mon, 21 Dec 2015 03:36:31 +0000 (03:36 +0000)]
Merge "Prevent blocked users from performing revision deletion"

6 years agoRemove IE 6&7 CSS hacks
Volker E [Mon, 21 Dec 2015 02:51:30 +0000 (18:51 -0800)]
Remove IE 6&7 CSS hacks

Removing IE 6&7 CSS hacks and specific comments.

Bug: T121996
Change-Id: I5e2f9f85afb01456d9bbfa4a1b63c86f930c00e9

6 years agoPrevent blocked users from performing revision deletion
Andrew H [Sun, 20 Dec 2015 23:49:10 +0000 (23:49 +0000)]
Prevent blocked users from performing revision deletion

Also fixed messege -> message in a comment.

Change-Id: Icee9a5816dae51a23c333ae49f47d14f5e08cb03

6 years agoMerge "Remove ApiQueryBase::getDirectionDescription()"
jenkins-bot [Mon, 21 Dec 2015 02:14:44 +0000 (02:14 +0000)]
Merge "Remove ApiQueryBase::getDirectionDescription()"

6 years agoRemove ApiQueryBase::getDirectionDescription()
Reedy [Sun, 20 Dec 2015 17:03:34 +0000 (17:03 +0000)]
Remove ApiQueryBase::getDirectionDescription()

Deprecated since 1.25

Moved some other API related removal notices

Change-Id: Ibbff6092a10df33f1641f18946765d0032199308

6 years agoMerge "Remove gen from RawAction."
jenkins-bot [Sun, 20 Dec 2015 23:37:39 +0000 (23:37 +0000)]
Merge "Remove gen from RawAction."

6 years agoMerge "Update HISTORY for last round of releases"
jenkins-bot [Sun, 20 Dec 2015 23:29:56 +0000 (23:29 +0000)]
Merge "Update HISTORY for last round of releases"

6 years agoMerge "Add @since tags to FauxRequest::getRequestURL()/setRequestURL()"
jenkins-bot [Sun, 20 Dec 2015 23:28:38 +0000 (23:28 +0000)]
Merge "Add @since tags to FauxRequest::getRequestURL()/setRequestURL()"

6 years agoAdd @since tags to FauxRequest::getRequestURL()/setRequestURL()
Reedy [Sun, 20 Dec 2015 23:04:24 +0000 (23:04 +0000)]
Add @since tags to FauxRequest::getRequestURL()/setRequestURL()

Change-Id: I6c104fe2df258eda15ebf8df089390dcdb80a3ef

6 years agoUpdate HISTORY for last round of releases
Reedy [Sun, 20 Dec 2015 21:38:04 +0000 (21:38 +0000)]
Update HISTORY for last round of releases

Change-Id: I110b9c14aa042449524acf5b866e30f8fece4372

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 20 Dec 2015 21:08:36 +0000 (22:08 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I4e6e48dba1810e5092b6211850d5a7f62b866f78

6 years agoMerge "Support fragments in mw.util.getUrl()"
jenkins-bot [Sun, 20 Dec 2015 19:50:13 +0000 (19:50 +0000)]
Merge "Support fragments in mw.util.getUrl()"

6 years agoSupport fragments in mw.util.getUrl()
Andrew H [Sat, 19 Dec 2015 22:47:31 +0000 (22:47 +0000)]
Support fragments in mw.util.getUrl()

Bug: T103553
Change-Id: I25c5ce2fde468202ce7ba5aa1c8cf0e3576c6057

6 years agoSpecialPageLanguage: Use title input (enable suggestions) and autofocus
Florian [Sat, 19 Dec 2015 23:02:04 +0000 (00:02 +0100)]
SpecialPageLanguage: Use title input (enable suggestions) and autofocus

The title input field requires a valid title, so suggestions make sense
to suggest possible existing pages to the user.

Autofocus the input field, if the title is empty allows the user to type
the title with less clicks.

Bug: T120577
Change-Id: I8a75fdeccbe2be2144fcc15439ffefae1e89c6a9

6 years agoMerge "ApiQueryBase::checkRowCount() was removed"
jenkins-bot [Sun, 20 Dec 2015 15:48:21 +0000 (15:48 +0000)]
Merge "ApiQueryBase::checkRowCount() was removed"

6 years agoMerge "[Special:Preferences] Switch tabs when hash is set to an item in another tab."
jenkins-bot [Sun, 20 Dec 2015 15:48:17 +0000 (15:48 +0000)]
Merge "[Special:Preferences] Switch tabs when hash is set to an item in another tab."

6 years ago[Special:Preferences] Switch tabs when hash is set to an item in another tab.
Scimonster [Sat, 19 Dec 2015 22:23:07 +0000 (00:23 +0200)]
[Special:Preferences] Switch tabs when hash is set to an item in another tab.

If the hash is set to a specific preference item (such as
automatically switch to the tab the item is located on and scroll to it.
Move the code that handled the hash into a separate function for DRY-
Fix a couple comment typos.
Task done as part of GCI2015.

Bug: T54469
Change-Id: I9e0573b37a847ab915b7c74facf65b3d24883064

6 years agoApiQueryBase::checkRowCount() was removed
Reedy [Sun, 20 Dec 2015 14:24:07 +0000 (14:24 +0000)]
ApiQueryBase::checkRowCount() was removed

Deprecated since 1.24

Change-Id: Id3357ccd8b5eb3f5e2fe1c63fc7b72ae38d6ac1a

6 years agoApiQueryBase titleToKey(), keyToTitle() and keyPartToTitle() removed
Reedy [Sun, 20 Dec 2015 14:21:14 +0000 (14:21 +0000)]
ApiQueryBase titleToKey(), keyToTitle() and keyPartToTitle() removed

All deprecated since 1.24.

Change-Id: I8cf91a12d564dc6b2c48ead5f3f382bebb0217bc
Depends-On: Id788b8f1dbf5b4b7079d361eb1357b3ae942d89d

6 years agoRemoved User::editToken() (deprecated since 1.19)
Reedy [Tue, 15 Dec 2015 22:30:53 +0000 (22:30 +0000)]
Removed User::editToken() (deprecated since 1.19)

Change-Id: I734e9637317c0737e96e963bafb10ef966d6d172

6 years agoRemoved Article::loadContent() (deprecated since 1.19)
Reedy [Tue, 15 Dec 2015 22:27:36 +0000 (22:27 +0000)]
Removed Article::loadContent() (deprecated since 1.19)

All usages in extensions are removed

Change-Id: Ie03c384730f59a67a969aed0a866e2bf71247e87

6 years agoMove ApiQueryGeneratorBase to it's own file
aude [Sun, 20 Dec 2015 09:41:34 +0000 (18:41 +0900)]
Move ApiQueryGeneratorBase to it's own file

Change-Id: Ia8e9ab256c8a7a72bb407090f7a4a49484e529e4

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 19 Dec 2015 23:06:50 +0000 (00:06 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1fbcf172c1d2bc65532eb4cc7175d4fce898bf89

6 years agoAdd a maintenance script for finding deprecated interfaces
Ori Livneh [Mon, 14 Dec 2015 20:07:17 +0000 (12:07 -0800)]
Add a maintenance script for finding deprecated interfaces

Add a maintenance script, findDeprecated.php, which iterates through
$IP/include/**.php, looking for functions and methods which have been marked as
deprecated (via a '@deprecated' tag in the doc-block), and then prints a
detailed report indicating the version, file, line and version of each
deprecated interface.

Change-Id: I9518a52b8c51ee972552a94f5367c1faa7e04a3a

6 years agoPrevent blocked users from modifying change tags
Andrew H [Wed, 16 Dec 2015 01:03:45 +0000 (01:03 +0000)]
Prevent blocked users from modifying change tags

Bug: T102063
Change-Id: I030b781175c998dd1553c87042d98ded8eb6bc84

6 years agoFix transaction-duration-limit-exceeded
Amir E. Aharoni [Sat, 19 Dec 2015 21:23:18 +0000 (23:23 +0200)]
Fix transaction-duration-limit-exceeded

* Fix the wording.
* Add PLURAL support.

Bug: T121821
Change-Id: I9cf27534a5b7a055a7c2544f6366dd0e40c5e9a3

6 years agoMerge "Document mw.user.options and mw.user.tokens properties"
jenkins-bot [Sat, 19 Dec 2015 18:07:23 +0000 (18:07 +0000)]
Merge "Document mw.user.options and mw.user.tokens properties"