lhc/web/wiklou.git
8 years agoMerge "Split classes in Import.php into separate files"
jenkins-bot [Wed, 30 Dec 2015 00:16:39 +0000 (00:16 +0000)]
Merge "Split classes in Import.php into separate files"

8 years agoMerge "Show user names as subpages of special pages in autocomplete search"
jenkins-bot [Wed, 30 Dec 2015 00:16:20 +0000 (00:16 +0000)]
Merge "Show user names as subpages of special pages in autocomplete search"

8 years agoSync up with Parsoid parserTests.
Subramanya Sastry [Tue, 29 Dec 2015 21:43:31 +0000 (15:43 -0600)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit cc0dfb3271495d764e471d18927b0b3ee8ce1cdb

Change-Id: Iea3694b397c4e4b8ae87b1e61418767e2109f61e

8 years agoShow user names as subpages of special pages in autocomplete search
umherirrender [Thu, 3 Dec 2015 20:08:31 +0000 (21:08 +0100)]
Show user names as subpages of special pages in autocomplete search

The autocomplete search allows special pages to define the list of
subpages to be excepted. Use user names on the following special pages,
because these special pages can be called with a user name as subpage.

Special:Block
Special:Contributions
Special:DeletedContributions
Special:Emailuser
Special:Listfiles
Special:Unblock
Special:Userrights

This makes it easier to navigate to this special pages with a prefilled
user name field.

Hidden user names are always not shown, because the suggestion is cached
between priviliged user and non-priviliged user.

Change-Id: I7db575bf66caaa5136489ed99f1655673b55adaf

8 years agoMerge "Align mediawiki.ui vars with CSS color guidelines"
jenkins-bot [Tue, 29 Dec 2015 00:33:35 +0000 (00:33 +0000)]
Merge "Align mediawiki.ui vars with CSS color guidelines"

8 years agoMerge "Fix SpecialFileDuplicateSearch::prefixSearchSubpages"
jenkins-bot [Mon, 28 Dec 2015 23:44:43 +0000 (23:44 +0000)]
Merge "Fix SpecialFileDuplicateSearch::prefixSearchSubpages"

8 years agoMerge "Set TransactionProfiler expectations in the API"
jenkins-bot [Mon, 28 Dec 2015 23:44:39 +0000 (23:44 +0000)]
Merge "Set TransactionProfiler expectations in the API"

8 years agoSplit classes in Import.php into separate files
Krzysztof Zbudniewek [Mon, 28 Dec 2015 22:27:48 +0000 (23:27 +0100)]
Split classes in Import.php into separate files

Bug: T122532
Change-Id: Ic4463ab8d3a7b2779f43efb92cb790dbc1d88064

8 years agoMerge "Avoid CAS update errors on password reset"
jenkins-bot [Mon, 28 Dec 2015 23:38:36 +0000 (23:38 +0000)]
Merge "Avoid CAS update errors on password reset"

8 years agoSet TransactionProfiler expectations in the API
Aaron Schulz [Wed, 16 Dec 2015 23:46:43 +0000 (15:46 -0800)]
Set TransactionProfiler expectations in the API

This is similar to the main() method for index.php but also
makes use of write mode checks to more granular.

Change-Id: I40fbaef0f5eaefaf2c6d0937d49016a17da532da

8 years agoMerge "Add PLURAL support and "human readable" sizes for mediastatistics messages"
jenkins-bot [Mon, 28 Dec 2015 23:27:16 +0000 (23:27 +0000)]
Merge "Add PLURAL support and "human readable" sizes for mediastatistics messages"

8 years agoAdded IDatabase::doAtomicSection() convenience method
Aaron Schulz [Wed, 23 Dec 2015 02:18:59 +0000 (18:18 -0800)]
Added IDatabase::doAtomicSection() convenience method

This can replace startAtomic/endAtomic pairs.

Bug: T122115
Change-Id: I01c8e4773ec2b42dbe87a5508a10b997be103c11

8 years agoSplit Export.php classes into seperate files
mhutti1 [Mon, 28 Dec 2015 22:23:22 +0000 (23:23 +0100)]
Split Export.php classes into seperate files

Moved classes in Export.php to seperate files in the new directory
includes/export/ and updated autoload.php to these new locations.

Bug: T122531
Change-Id: Idd3bba5a85d65c952f2ff503bea2ca76624c9b7f

8 years agoMerge "Added PHP/OS info to benchmark output"
jenkins-bot [Mon, 28 Dec 2015 22:23:39 +0000 (22:23 +0000)]
Merge "Added PHP/OS info to benchmark output"

8 years agoAdded PHP/OS info to benchmark output
nicoco007 [Mon, 28 Dec 2015 18:42:15 +0000 (13:42 -0500)]
Added PHP/OS info to benchmark output

Added PHP version and architecture and OS version to benchmark output.

Change-Id: I018e6bf8bb60f594ac512ef2113e404dd304786a

8 years agoFix SpecialFileDuplicateSearch::prefixSearchSubpages
umherirrender [Mon, 28 Dec 2015 22:10:12 +0000 (23:10 +0100)]
Fix SpecialFileDuplicateSearch::prefixSearchSubpages

search suggestion without namespaces was not showing any list

Follows I71f77c3001a12d75b901807c20115cead9c64e93

Change-Id: Ib361e3de0cfd595e9f8949b9225ed37c29b8a3ef

8 years agoUse template to render EnhancedChangesList groups
Adam Roses Wight [Mon, 19 Oct 2015 08:33:54 +0000 (01:33 -0700)]
Use template to render EnhancedChangesList groups

Rewrite a chunky HTML string concatenation party as Mustache template
rendering.  This decouples the view from the controller.

Bug: T120921
Change-Id: I3217b80168f89e7b91dbc33a7053865ad3408615

8 years agoMerge "mw.ForeignStructuredUpload.BookletLayout: Use lastModified or EXIF date"
jenkins-bot [Mon, 28 Dec 2015 19:39:37 +0000 (19:39 +0000)]
Merge "mw.ForeignStructuredUpload.BookletLayout: Use lastModified or EXIF date"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 28 Dec 2015 19:35:57 +0000 (20:35 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie3874e36c1a377fad23bb7156fff1d1f5086bf9c

8 years agomw.ForeignStructuredUpload.BookletLayout: Use lastModified or EXIF date
Prateek Saxena [Tue, 20 Oct 2015 04:57:25 +0000 (10:27 +0530)]
mw.ForeignStructuredUpload.BookletLayout: Use lastModified or EXIF date

Use the file's lastModified date, or EXIF DateTimeOriginal (where
available) as the default value of the DateInputWidget instead of
leaving it blank.

A lot of the code here is from mw.UploadWizardUpload.prototype.checkFile.

Bug: T115863
Change-Id: I75adec9718d89a7177050e8b848478d1b0069dd0

8 years agoMerge "Namespace translations for Gilaki (glk)"
jenkins-bot [Mon, 28 Dec 2015 19:00:45 +0000 (19:00 +0000)]
Merge "Namespace translations for Gilaki (glk)"

8 years agoMerge "Support fragments in getUrl() of mw.Title"
jenkins-bot [Mon, 28 Dec 2015 18:07:10 +0000 (18:07 +0000)]
Merge "Support fragments in getUrl() of mw.Title"

8 years agoMerge "Replace \r\n with \n in resources\src\mediawiki\bookletlayout\*.svg"
jenkins-bot [Mon, 28 Dec 2015 11:12:50 +0000 (11:12 +0000)]
Merge "Replace \r\n with \n in resources\src\mediawiki\bookletlayout\*.svg"

8 years agoNamespace translations for Gilaki (glk)
This, that and the other [Mon, 28 Dec 2015 08:51:28 +0000 (19:51 +1100)]
Namespace translations for Gilaki (glk)

Bug: T122127
Change-Id: I8cf45d9ecdece90a0ae6d70f2436699fc14cff20

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 agoSupport fragments in getUrl() of mw.Title
Andrew H [Sun, 27 Dec 2015 04:04:40 +0000 (04:04 +0000)]
Support fragments in getUrl() of mw.Title

Now that mw.util.getUrl() supports fragments, pass it the title
including fragments.

Bug: T103715
Change-Id: I0e3665e74fd4208a7ab0a9b361803aa37f22d61b

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 agoReplace \r\n with \n in resources\src\mediawiki\bookletlayout\*.svg
umherirrender [Sun, 27 Dec 2015 20:56:54 +0000 (21:56 +0100)]
Replace \r\n with \n in resources\src\mediawiki\bookletlayout\*.svg

Unix newline style is used in mediawiki/core, not windows newline style

Follows Ic14da2c6408ab15416dab1ebd1397507d0950b33
Follows I8d8fbf8e58b4ef5d9956731c8b85d5db07b3f5ed
Follows I06c207aa89b85cfa5994fa9be8fa6bc623d739d7

Change-Id: Icb6a3c583072fa4a010d73024ffa0994be30c35c

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 agoAdd PLURAL support and "human readable" sizes for mediastatistics messages
Florian [Tue, 22 Dec 2015 19:17:12 +0000 (20:17 +0100)]
Add PLURAL support and "human readable" sizes for mediastatistics messages

Follow up: I4216566df4dd24

Change-Id: I2793d60c1d6ef74d32a10bb55c31a2f750f6f44b

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 agoAlign mediawiki.ui vars with CSS color guidelines
Volker E [Sat, 26 Dec 2015 04:03:01 +0000 (20:03 -0800)]
Align mediawiki.ui vars with CSS color guidelines

Harmonizing Less variables values to all lowercase and shorthand
notation throughout file

Change-Id: Ib43a9a31eff4e0f2028aa099c5e49912f49ed388

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"