lhc/web/wiklou.git
8 years agoMerge "Namespace translations for Lojban (jbo)"
jenkins-bot [Mon, 28 Dec 2015 08:22:05 +0000 (08:22 +0000)]
Merge "Namespace translations for Lojban (jbo)"

8 years agoAdded a simple smoke test for export
mhutti1 [Fri, 25 Dec 2015 20:14:02 +0000 (21:14 +0100)]
Added a simple smoke test for export

Added ExportTest.php to check that exported xml is valid.

Bug: T116883
Change-Id: I76151a6ab4f88ab1904627ad1d00ed487d0ab606

8 years agoMerge "Use wikimedia/at-ease insteaad of @"
jenkins-bot [Sun, 27 Dec 2015 21:00:26 +0000 (21:00 +0000)]
Merge "Use wikimedia/at-ease insteaad of @"

8 years agoUse wikimedia/at-ease insteaad of @
Florian [Sun, 27 Dec 2015 20:36:18 +0000 (21:36 +0100)]
Use wikimedia/at-ease insteaad of @

Change-Id: Icba412dd5db11b596ad1cf740b8408823297bc86

8 years agoCopy in release notes for last maintenance releases into HISTORY
umherirrender [Sun, 27 Dec 2015 20:43:13 +0000 (21:43 +0100)]
Copy in release notes for last maintenance releases into HISTORY

Copy in release notes for last releases:
1.26.2: Iae3ab6fe60b348abf6f2723b2601bd64fb3261ba
1.25.5: I995da41b703eab7b6435ab6745d8513b53c533f5
1.24.6: I05d2c3e6ed8527ba1933558f9636a3beb2d6bd80
1.23.13: I5080cf9fa699c59ee5d2bb2ae9bbbb09fa262e41

Remove Compatibility and Upgrading section from 1.25, previous releases
does not include this section, too.

Update header structure:
- Added missing header
- Increase h2 to h3 when needed
- Decrease h2 to h1 when needed

Change-Id: I37a1134c539bdcb728816fe9825c56de18878d03

8 years agoSupport phpunit-old.phar
Reedy [Sun, 27 Dec 2015 20:21:51 +0000 (20:21 +0000)]
Support phpunit-old.phar

Bug: T122485
Change-Id: Ic21c6c1ca5afaac0e298cf0259f5dc273dfec128

8 years agoPostgreSQL: Add quotes to timestamp
Jeff Janes [Thu, 17 Dec 2015 05:30:46 +0000 (21:30 -0800)]
PostgreSQL: Add quotes to timestamp

The fix for bug T114806 doesn't quote timestamps it sends
directly to the database (i.e. not in bind variables). Timestamps
in PostgreSQL require quotes.  Add addQuotes call.

Bug: T121743
Change-Id: If8da1a0171f55d59c63f5501c854aa8fa48d5992

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 27 Dec 2015 19:08:37 +0000 (20:08 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic75e75797c5f1fab074043a1eb7daa74d7d0241b

8 years agoRemove various double empty newlines
umherirrender [Sun, 27 Dec 2015 17:48:47 +0000 (18:48 +0100)]
Remove various double empty newlines

The double empty newline is not needed between functions, variable or at
end of file

Change-Id: Ib866a95084c4601ac150a2b402cfa184ebc18afa

8 years agoMerge "Tweak wording for 'passwordreset-emailsentemail', 'passwordreset-emailsentuser...
jenkins-bot [Sun, 27 Dec 2015 06:51:32 +0000 (06:51 +0000)]
Merge "Tweak wording for 'passwordreset-emailsentemail', 'passwordreset-emailsentusername'"

8 years agoMerge "Change multiple documentations in DairkiDiff"
jenkins-bot [Sun, 27 Dec 2015 05:56:54 +0000 (05:56 +0000)]
Merge "Change multiple documentations in DairkiDiff"

8 years agoMerge "Make sure docs encourage __METHOD__ use for begin/commit"
jenkins-bot [Sun, 27 Dec 2015 05:52:24 +0000 (05:52 +0000)]
Merge "Make sure docs encourage __METHOD__ use for begin/commit"

8 years agoMerge "Add --rootpage parameter to importDump.php"
jenkins-bot [Sun, 27 Dec 2015 03:18:57 +0000 (03:18 +0000)]
Merge "Add --rootpage parameter to importDump.php"

8 years agoAdd --rootpage parameter to importDump.php
Andrew H [Sat, 26 Dec 2015 03:49:48 +0000 (03:49 +0000)]
Add --rootpage parameter to importDump.php

The --rootpage parameter will import pages as subpages
of a specified page.

Bug: T72272
Change-Id: Ie026b091275668765ea06e947d45bed64354f2cb

8 years agoMerge "Enable mediawiki.action.view.redirect on mobile"
jenkins-bot [Sat, 26 Dec 2015 21:12:30 +0000 (21:12 +0000)]
Merge "Enable mediawiki.action.view.redirect on mobile"

8 years agoMerge "LivePreview: Update page status indicators"
jenkins-bot [Sat, 26 Dec 2015 20:53:55 +0000 (20:53 +0000)]
Merge "LivePreview: Update page status indicators"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 26 Dec 2015 19:36:41 +0000 (20:36 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I41e3ba49bbb7242b61ea6e75420f802f3dbdec6e

8 years agoEnable mediawiki.action.view.redirect on mobile
Michael Holloway [Sat, 26 Dec 2015 02:40:48 +0000 (21:40 -0500)]
Enable mediawiki.action.view.redirect on mobile

Added mobile target to its entry in Resources.php.  Tested in
Chromium dev tools with various emulated mobile devices and it Just
Works.

Bug: T93262
Change-Id: Idb416b0877ea5a3764936389dfe59d4653ad96d0

8 years agoDisable Preferences save button if settings have not changed
Geoffrey Mon [Fri, 27 Nov 2015 16:53:39 +0000 (11:53 -0500)]
Disable Preferences save button if settings have not changed

Disable the Special:Preferences 'Save' button if no
settings have been changed. This prevents unnecessary saving when
you can't remember if you saved the settings or not.
Uses new check for preference change to prevent disabling the button
if the user makes preferences changes before JS is done loading.

Bug: T89457
Change-Id: I1064c5e76a3c1f856b9b9288baaf39cc102edf8a

8 years agoMerge "Check each Special:Preferences input for changes"
jenkins-bot [Fri, 25 Dec 2015 23:46:55 +0000 (23:46 +0000)]
Merge "Check each Special:Preferences input for changes"

8 years agoLivePreview: Update page status indicators
Fomafix [Tue, 27 Jan 2015 19:26:28 +0000 (19:26 +0000)]
LivePreview: Update page status indicators

Bug: T87557
Change-Id: I0caa7f3d9498943b3b1bc9054e63092042dd9405

8 years agoCheck each Special:Preferences input for changes
Geoffrey Mon [Thu, 26 Nov 2015 21:41:41 +0000 (16:41 -0500)]
Check each Special:Preferences input for changes

When checking for changes in the Special:Preferences form, instead of serializing
original form data (which fails with asynchronous loading of JS, if the user changes
something before JS is done loading), compare the value of each input to the default
value.

Bug: T119732
Change-Id: Ib48a9b334f639e417a0642c6c090ba18afc477ce

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 25 Dec 2015 20:39:00 +0000 (21:39 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8a62187f564e3364733b7d182bd92b393e1e1599

8 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

8 years agoNamespace translations for Lojban (jbo)
This, that and the other [Thu, 24 Dec 2015 06:00:57 +0000 (17:00 +1100)]
Namespace translations for Lojban (jbo)

Bug: T117841
Change-Id: If7ed783f86cf35a562d7d6630217915f57796a8d

8 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'"

8 years agoMake sure docs encourage __METHOD__ use for begin/commit
Aaron Schulz [Thu, 24 Dec 2015 01:23:15 +0000 (17:23 -0800)]
Make sure docs encourage __METHOD__ use for begin/commit

Change-Id: Id9c2d1b30f9dd758b418894b5751556daff20f0e

8 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"

8 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"

8 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

8 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""

8 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

8 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"

8 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

8 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

8 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"

8 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

8 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"

8 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"

8 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"

8 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

8 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"

8 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

8 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"

8 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

8 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"

8 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

8 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

8 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-`."

8 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"

8 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"

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

8 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

8 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"

8 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

8 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.

History:
* 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

8 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

8 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
capitalized.

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

Bug: T99225
Change-Id: I0c18ada9a6a0224f76e14e52f6da1cbfa81e68dd

8 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__"

8 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"

8 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

8 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

8 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

8 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

8 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"

8 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

8 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

8 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

8 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"

8 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"

8 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

8 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"

8 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

8 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

8 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

8 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.

https://mustache.github.io/mustache.5.html#Partials

Bug: T97188
Change-Id: Ic752f52669dbffa21c4a514509c3ea1da8ac5d9c

8 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"

8 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"

8 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"

8 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""

8 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

8 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

8 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"

8 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"

8 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

8 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

8 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"

8 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

8 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"

8 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

8 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

8 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"

8 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

8 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"

8 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

8 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

8 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"

8 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

8 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"

8 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