lhc/web/wiklou.git
9 years agoMerge "Run the ImagePageShowTOC hook before adding the 'metadata' link"
jenkins-bot [Tue, 13 Jan 2015 19:44:35 +0000 (19:44 +0000)]
Merge "Run the ImagePageShowTOC hook before adding the 'metadata' link"

9 years agoMerge "mw.Map: Check presence of value argument in set()"
jenkins-bot [Tue, 13 Jan 2015 19:25:23 +0000 (19:25 +0000)]
Merge "mw.Map: Check presence of value argument in set()"

9 years agoMerge "mediawiki.js: Move mw.format definition to where it's exposed"
jenkins-bot [Tue, 13 Jan 2015 19:25:20 +0000 (19:25 +0000)]
Merge "mediawiki.js: Move mw.format definition to where it's exposed"

9 years agoMerge "jsduck: Update references to renamed resources/ directories"
jenkins-bot [Tue, 13 Jan 2015 19:25:17 +0000 (19:25 +0000)]
Merge "jsduck: Update references to renamed resources/ directories"

9 years agoMerge "Move DeferredStringifier into libs, add tests"
jenkins-bot [Tue, 13 Jan 2015 19:14:46 +0000 (19:14 +0000)]
Merge "Move DeferredStringifier into libs, add tests"

9 years agoMove DeferredStringifier into libs, add tests
Kunal Mehta [Sun, 11 Jan 2015 01:52:37 +0000 (17:52 -0800)]
Move DeferredStringifier into libs, add tests

Change-Id: I384d1a3854e957315584d30ec58c48c02fee6a2c

9 years agoAdd missing @covers tag
Kunal Mehta [Tue, 13 Jan 2015 18:25:41 +0000 (10:25 -0800)]
Add missing @covers tag

Change-Id: I491929e3d77688bf07640db4218ef99d6b888a82

9 years agoMerge "Add User::equals"
jenkins-bot [Tue, 13 Jan 2015 16:11:25 +0000 (16:11 +0000)]
Merge "Add User::equals"

9 years agoMerge "Add plural support for message upload-permitted on Special:Upload"
jenkins-bot [Tue, 13 Jan 2015 15:55:27 +0000 (15:55 +0000)]
Merge "Add plural support for message upload-permitted on Special:Upload"

9 years agoAdd plural support for message upload-permitted on Special:Upload
umherirrender [Mon, 12 Jan 2015 18:41:23 +0000 (19:41 +0100)]
Add plural support for message upload-permitted on Special:Upload

The messages upload-permitted, upload-preferred and upload-prohibited
containing a comma separated list of items. Adding the count of this
list allows use of plural for better i18n.

Change-Id: I3fb09db4788bff6ea89731f77848d78fb33dd493

9 years agoAdd User::equals
Niklas Laxström [Thu, 11 Dec 2014 08:59:28 +0000 (09:59 +0100)]
Add User::equals

Seems stupid omission. Title has one. Why do I need to think how
to determine how to users objects point to the same user. Allows
more expressive code.

Also fixes a bug in multiple places where users "0" and "00" were
considered equal.

Change-Id: I682392e564b332b77ab489f2ad394fa2d28098a5

9 years agomw.Map: Check presence of value argument in set()
Timo Tijhof [Sun, 11 Jan 2015 14:03:34 +0000 (06:03 -0800)]
mw.Map: Check presence of value argument in set()

Add back the `arguments.length > 1` check (accidentally removed
in 24f84b0). Otherwise it inadvertently uses the `value`
parameter, causing it to set undefined as the value.

There was already a test ensuring undefined can be set as value,
but a test to ensure it doesn't default to undefined was missing.

Change-Id: I4c69f0c11f165640a9b387a72c77c48eb6aa9e72

9 years agomediawiki.js: Move mw.format definition to where it's exposed
Timo Tijhof [Sun, 11 Jan 2015 13:21:13 +0000 (05:21 -0800)]
mediawiki.js: Move mw.format definition to where it's exposed

No need for it to be a local and public method at the same time.
The Message#parser can just use the public one.

Change-Id: I57e040cda6da57cda447ea83f5b9b6b28b538158

9 years agojsduck: Update references to renamed resources/ directories
Timo Tijhof [Sun, 11 Jan 2015 13:18:58 +0000 (05:18 -0800)]
jsduck: Update references to renamed resources/ directories

The inline examples in the generated documentation due to a
404 Not Found for the javascript files.

1. Run $ ./maintenance/mwjsduck-gen
2. View http://localhost/w/docs/js/#!/api/mw.Map
3. Try "Live Preview"

Change-Id: Ic44f029c789042d82ec14e35d385f9ccc59959aa

9 years agoDon't auto-select first alphabetical item in import subproject list
This, that and the other [Sat, 30 Aug 2014 05:18:46 +0000 (15:18 +1000)]
Don't auto-select first alphabetical item in import subproject list

Currently when you load Special:Import, the first subproject in
alphabetical order gets selected. Instead, the first subproject in the
list should be selected by default (i.e. no <option> element should be
given the "selected" attribute).

Change-Id: I442a9afadc75f42f63d8c9c32ee2920374ceb26d

9 years agoHandle more cases in convertExtensionToRegistration.php
Kunal Mehta [Sun, 11 Jan 2015 04:17:36 +0000 (20:17 -0800)]
Handle more cases in convertExtensionToRegistration.php

* Handle constructs like $wgResourceModules += array(...)
* Support $wgMessagesDirs['FooBar'] = array(...)
* Handle stripping paths where it is the current directory
* Use FormatJson::ALL_OK when writing the file

Bug: T86311
Change-Id: I9434f6634fd6e460a5c2f6dac95c9065da35a51a

9 years agoregistration: Add ConfigRegistry to the extension.json schema
Kunal Mehta [Sun, 11 Jan 2015 04:12:01 +0000 (20:12 -0800)]
registration: Add ConfigRegistry to the extension.json schema

Change-Id: I6918215e3b5b2dd4c993d8a8767dc3ce998bd5ed

9 years agoexception: Hide suppressed errors in 'error' log, flag in 'error-json'
Timo Tijhof [Tue, 2 Dec 2014 22:41:00 +0000 (22:41 +0000)]
exception: Hide suppressed errors in 'error' log, flag in 'error-json'

Follows-up 399ba2f.

Bug: T75619
Bug: T45086
Change-Id: I1f312660c058a3940bf1e9425f86cfd531121ba3

9 years agoMerge "Tweaked the message for non-MW exceptions"
jenkins-bot [Tue, 13 Jan 2015 00:20:14 +0000 (00:20 +0000)]
Merge "Tweaked the message for non-MW exceptions"

9 years agoMerge "Skip cache hint about 0 seconds on Special:ActiveUsers"
jenkins-bot [Mon, 12 Jan 2015 23:46:10 +0000 (23:46 +0000)]
Merge "Skip cache hint about 0 seconds on Special:ActiveUsers"

9 years agoDon't call $wgOut->disable() from wfHttpError if $wgOut isn't set up yet
Brad Jorsch [Mon, 12 Jan 2015 21:46:18 +0000 (16:46 -0500)]
Don't call $wgOut->disable() from wfHttpError if $wgOut isn't set up yet

For example, if the database cannot be connected to, the language is
something other than 'en', and the l10n cache is LCStoreDB, then the
call to Language::factory() in Setup.php line 604 will do it when it's
trying to get the fallback list.

Bug: T86398
Change-Id: Ia0e9ea440dcc4c8ab7bab1f33802aeff487eb3f0

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 12 Jan 2015 21:09:28 +0000 (22:09 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8622b53bb08154439b751c93d0b218f12f892c24

9 years agoMerge "Check $wgCheckFileExtensions on client side on Special:Upload"
jenkins-bot [Mon, 12 Jan 2015 20:02:56 +0000 (20:02 +0000)]
Merge "Check $wgCheckFileExtensions on client side on Special:Upload"

9 years agoCheck $wgCheckFileExtensions on client side on Special:Upload
umherirrender [Mon, 12 Jan 2015 19:27:53 +0000 (20:27 +0100)]
Check $wgCheckFileExtensions on client side on Special:Upload

Setting $wgCheckFileExtensions to false but having
$wgStrictFileExtensions still on true will reject unknown file
extensions on Special:Upload with javascript.

Bug: T25583
Change-Id: I260107bb5c3206044f766d308572ad27378715bb

9 years agoMerge "mediawiki.action.edit.stash: set timeout to 4 seconds"
jenkins-bot [Mon, 12 Jan 2015 19:09:40 +0000 (19:09 +0000)]
Merge "mediawiki.action.edit.stash: set timeout to 4 seconds"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 11 Jan 2015 20:56:59 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I557d9716255fa29881eef5909cfd9bf5c02e352c

9 years agoAdd *.orig to .gitignore
Bartosz Dziewoński [Sun, 11 Jan 2015 20:14:03 +0000 (21:14 +0100)]
Add *.orig to .gitignore

People and tools sometimes accidentally commit these, let's make it
more difficult to do.

Follow-up to abb4271a. NO ONE SAW THIS EMBARASSING MISTAKE.

Change-Id: If5f427586814c304b30e5783a59f33814bfeaa54

9 years agoAdd .*.orig to .gitignore
Bartosz Dziewoński [Sun, 11 Jan 2015 17:04:16 +0000 (18:04 +0100)]
Add .*.orig to .gitignore

People and tools sometimes accidentally commit these, let's make it
more difficult to do.

Change-Id: I05574d46186642940054aaecec055723c7ade8ac

9 years agoEscape unsafe messages in CategoryViewer.php
Scimonster [Sun, 11 Jan 2015 16:11:43 +0000 (16:11 +0000)]
Escape unsafe messages in CategoryViewer.php

Bug: T85864
GCI: http://www.google-melange.com/gci/task/view/google/gci2014/5811264311787520
Change-Id: Ie59fb389b804f031b761f93f2c91a548742326ab

9 years agoMerge "Surround edit notices with appropriate classes"
jenkins-bot [Sun, 11 Jan 2015 13:25:49 +0000 (13:25 +0000)]
Merge "Surround edit notices with appropriate classes"

9 years agoSkip cache hint about 0 seconds on Special:ActiveUsers
umherirrender [Sun, 11 Jan 2015 10:39:20 +0000 (11:39 +0100)]
Skip cache hint about 0 seconds on Special:ActiveUsers

When the data on Special:ActiveUsers are up to date there is no need to
give a hint, seeing data from cache "which can be up to 0 seconds".

Change-Id: I46f80c7cdc083b997794fb9398887e2ef0088684

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sat, 10 Jan 2015 20:44:12 +0000 (20:44 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 10 Jan 2015 20:42:27 +0000 (21:42 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I9d51804ea08f615455be312f093354e40a17e8c0

9 years agomediawiki.page.gallery: Support live preview
Fomafix [Sat, 10 Jan 2015 20:21:37 +0000 (20:21 +0000)]
mediawiki.page.gallery: Support live preview

Change-Id: I1dbcf5e7a9dc145417e0ffee9b1a5220eb34e0bd

9 years agoMerge "Add autocomplete for WhatLinksHere subpages"
jenkins-bot [Sat, 10 Jan 2015 20:04:53 +0000 (20:04 +0000)]
Merge "Add autocomplete for WhatLinksHere subpages"

9 years agoMerge "Fix gallery rearrange on resize with missing images"
jenkins-bot [Sat, 10 Jan 2015 20:01:21 +0000 (20:01 +0000)]
Merge "Fix gallery rearrange on resize with missing images"

9 years agoMerge "Move Test files under same folder structure where class is (/languages/)"
jenkins-bot [Sat, 10 Jan 2015 20:00:34 +0000 (20:00 +0000)]
Merge "Move Test files under same folder structure where class is (/languages/)"

9 years agoMerge "Add version comments to DatabaseUpdater for 1.25"
jenkins-bot [Sat, 10 Jan 2015 19:57:59 +0000 (19:57 +0000)]
Merge "Add version comments to DatabaseUpdater for 1.25"

9 years agoMerge "Remove unused message 'rollback_short'"
jenkins-bot [Sat, 10 Jan 2015 19:57:01 +0000 (19:57 +0000)]
Merge "Remove unused message 'rollback_short'"

9 years agoFix gallery rearrange on resize with missing images
m4tx [Fri, 9 Jan 2015 21:59:51 +0000 (22:59 +0100)]
Fix gallery rearrange on resize with missing images

Follow-ups I286e0a4c8230c11619ca30f8f3b66778de835a33

Bug: T55664
Change-Id: I95cc64de11df3197378f4873d62a76333d55b452

9 years agoMove Test files under same folder structure where class is (/languages/)
umherirrender [Mon, 8 Dec 2014 19:46:23 +0000 (20:46 +0100)]
Move Test files under same folder structure where class is (/languages/)

Change-Id: I25c99272a1c2e318e6c61b4a497bf04886430e9b

9 years agoRemove unused message 'rollback_short'
Bartosz Dziewoński [Sat, 10 Jan 2015 19:06:45 +0000 (20:06 +0100)]
Remove unused message 'rollback_short'

Last seen in ca38c84 (r7511, from 2005).

Change-Id: Ida0b52e05e1ca66595a6f8352c14d825655dabc3

9 years agoMerge "Add data provider to split MediaHandlerTest::testFitBoxWidth"
Addshore [Sat, 10 Jan 2015 17:50:21 +0000 (17:50 +0000)]
Merge "Add data provider to split MediaHandlerTest::testFitBoxWidth"

9 years agoAdd data provider to split MediaHandlerTest::testFitBoxWidth
m4tx [Fri, 2 Jan 2015 18:59:43 +0000 (19:59 +0100)]
Add data provider to split MediaHandlerTest::testFitBoxWidth

Change-Id: Ie1cf501a6a0c8e688aca1a5577a293f526398dd3

9 years agoApiEditPage: Fix Wikipedia-specific wording
Giftpflanze [Sat, 10 Jan 2015 06:24:17 +0000 (07:24 +0100)]
ApiEditPage: Fix Wikipedia-specific wording

Article is specific to Wikipedia. Change to page for universality.

Change-Id: I4a10583d463c90df437ffd0e60e6f100674e49b2

9 years agoLet subclasses specify content model in JsonContent
wctaiwan [Sat, 10 Jan 2015 05:08:02 +0000 (00:08 -0500)]
Let subclasses specify content model in JsonContent

This is needed for extensions that subclass JsonContent.

Follows up Ifed379ba4674a8289b55
Change-Id: I2f4f9cb343c2ab3ee802b584d3c79d0fafadf9e7

9 years agoUpdate OOjs UI to v0.6.2
James D. Forrester [Sat, 10 Jan 2015 01:37:23 +0000 (17:37 -0800)]
Update OOjs UI to v0.6.2

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.6.2/History.md

Change-Id: Ia694c95107e88dd21db358daf503875cb13c5059

9 years agoMerge "maintenance: Have update-oojs-ui.sh update composer.json too"
jenkins-bot [Sat, 10 Jan 2015 01:36:53 +0000 (01:36 +0000)]
Merge "maintenance: Have update-oojs-ui.sh update composer.json too"

9 years agomaintenance: Have update-oojs-ui.sh update composer.json too
James D. Forrester [Wed, 17 Dec 2014 01:32:54 +0000 (17:32 -0800)]
maintenance: Have update-oojs-ui.sh update composer.json too

Change-Id: Ifa37c9dcd136051c5ab8967f7ba1e490a5aa7861

9 years agoUpdated some try-catch statements: MWException -> Exception
Aaron Schulz [Fri, 9 Jan 2015 23:44:47 +0000 (15:44 -0800)]
Updated some try-catch statements: MWException -> Exception

Change-Id: I76601a86e30f4984e3b1a8c8ec5ef5a0f652433a

9 years agoTweaked the message for non-MW exceptions
Aaron Schulz [Fri, 9 Jan 2015 23:00:11 +0000 (15:00 -0800)]
Tweaked the message for non-MW exceptions

Change-Id: I46dae88d66b65aa596743bdbdbdee270d53ae803

9 years agoAdd version comments to DatabaseUpdater for 1.25
umherirrender [Fri, 9 Jan 2015 21:17:52 +0000 (22:17 +0100)]
Add version comments to DatabaseUpdater for 1.25

There are already version comments for the older versions, so also
adding comments for the current version to make it easier finding the
corresponding version when looking at database changes.

As suggested in Ieeb558f9523c11965cbc1941cad4f316c00c85c5

Change-Id: Idf4f52aec4eeb73ec2f830d7d7eaab84c73b6d95

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 9 Jan 2015 20:35:49 +0000 (21:35 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I4c535d73620d8ef7b4935625a2cac6ae283de395

9 years agoMerge "Fix ApiStashEdit wrt custom DataUpdates."
jenkins-bot [Fri, 9 Jan 2015 20:04:40 +0000 (20:04 +0000)]
Merge "Fix ApiStashEdit wrt custom DataUpdates."

9 years agoMerge "Update Moment.js from 2.8.3 to 2.8.4"
jenkins-bot [Fri, 9 Jan 2015 19:56:20 +0000 (19:56 +0000)]
Merge "Update Moment.js from 2.8.3 to 2.8.4"

9 years agoUpdate Moment.js from 2.8.3 to 2.8.4
paladox [Thu, 20 Nov 2014 18:58:28 +0000 (18:58 +0000)]
Update Moment.js from 2.8.3 to 2.8.4

Project site
* http://momentjs.com
* https://github.com/moment/moment/

File source
* https://github.com/moment/moment/tree/2.8.4

Changelog
* https://github.com/moment/moment/blob/2.8.4/CHANGELOG.md

Difference between 2.8.3 and 2.8.4

2.8.4

Features

* #2000 Add LTS localised format that includes seconds
* #1960 added formatToken 'x' for unix offset in milliseconds #1938
* #1965 Support 24:00:00.000 to mean next day, at midnight.
* #2002 Accept 'date' key when creating moment with object
* #2009 Use native toISOString when we can

Bugfixes

* #2004 Fix makeAs to work with zoned moments
* #2001 moment.utc(string) falling back to Date works properly
* #1928 IE11 module == null
* #1952 New implementation of isBefore/isSame/isAfter
* #1992 Fix strict month parsing of abbreviated/full months
* #2003 Detect hours above 12 with h/hh tokens
* #1974 Locale export for meteor server environment
* #1925 Fix duration as getters (years and months convert to whole days)
* #2008 Fix endOf handling of no-arg and ms
* #2010 Update deprecation warning for moment().lang()

Locale improvements

* #2015 remove Uhr from german format
* #1933 improved russian lastWeek translations
* #2013 changed month abbreviations in russian
* #1971 Fix italian calendar time
* #1967 Fix catalan ordinals
* #1898 Bosnian translation of August
* #1771 Update greek seconds string
* #1961 Add a script to prepare moment for npm publish
* #2016 Fix long date format for Czech

Change-Id: I136a08194476ac01af7495c8f8e1e7ea1e140973

9 years agoMerge "Make Linker::formatLinksInComment format links to other wikis"
jenkins-bot [Fri, 9 Jan 2015 19:34:37 +0000 (19:34 +0000)]
Merge "Make Linker::formatLinksInComment format links to other wikis"

9 years agoMerge "Drop ss_total_views and page_counter fields from MediaWiki"
jenkins-bot [Fri, 9 Jan 2015 19:30:26 +0000 (19:30 +0000)]
Merge "Drop ss_total_views and page_counter fields from MediaWiki"

9 years agoMake Linker::formatLinksInComment format links to other wikis
Marius Hoch [Fri, 2 Jan 2015 18:33:04 +0000 (19:33 +0100)]
Make Linker::formatLinksInComment format links to other wikis

Needed for CentralAuth.

Change-Id: Ibdedf087f85046646450367cbf1811db578d8f4b

9 years agoFix ApiStashEdit wrt custom DataUpdates.
daniel [Fri, 9 Jan 2015 19:16:00 +0000 (19:16 +0000)]
Fix ApiStashEdit wrt custom DataUpdates.

My previous patch broke this: ApiStashEdit would stash ParserOutput
with no custom DataUpdates, but calling getSecondaryDataUpdates still
failed after unserialization. This patch should fix that.

Bug: T86305
Change-Id: Ic114e521c5dfd0d3c028ea7d16e93eace758deef

9 years agoMerge "Implement namespace inversion on WhatLinksHere"
jenkins-bot [Fri, 9 Jan 2015 19:16:56 +0000 (19:16 +0000)]
Merge "Implement namespace inversion on WhatLinksHere"

9 years agoDrop ss_total_views and page_counter fields from MediaWiki
Chad Horohoe [Wed, 30 Jul 2014 20:56:20 +0000 (13:56 -0700)]
Drop ss_total_views and page_counter fields from MediaWiki

Follows up removal of code using hitcounters in 90d90dad6

RFC: https://www.mediawiki.org/wiki/Requests_for_comment/Removing_hit_counters_from_MediaWiki_core
Change-Id: Ieeb558f9523c11965cbc1941cad4f316c00c85c5

9 years agoGuard against unset key access in ResourceLoaderImageModule
Bryan Davis [Thu, 8 Jan 2015 23:24:50 +0000 (16:24 -0700)]
Guard against unset key access in ResourceLoaderImageModule

Seen in production error logs:
  Undefined index: icon in ResourceLoaderImageModule.php on line 162
  Undefined index: icon in ResourceLoaderImageModule.php on line 185

Change-Id: I44e16563bda2dcc0be3c9694ed2b09d20b3d7468

9 years agoCheck $wgAjaxEditStash before using cached edits.
daniel [Fri, 9 Jan 2015 14:18:14 +0000 (14:18 +0000)]
Check $wgAjaxEditStash before using cached edits.

Without this, stale data from the cache may still be used
even after $wgAjaxEditStash was disabled.

This is important mainly during testing, when a reliable way
to toggle stashing is needed to investigate issues that may
be related to the stashing mechanism.

Change-Id: Ib9ff68b43763e3857d1a28e34b48439d78c1ed5c

9 years agoMerge "Remove silly debug line"
jenkins-bot [Fri, 9 Jan 2015 17:04:54 +0000 (17:04 +0000)]
Merge "Remove silly debug line"

9 years agoMerge "Don't call localisation functions when initializing pageset"
jenkins-bot [Fri, 9 Jan 2015 17:02:38 +0000 (17:02 +0000)]
Merge "Don't call localisation functions when initializing pageset"

9 years agoRemove silly debug line
Mark Holmquist [Fri, 9 Jan 2015 16:57:24 +0000 (10:57 -0600)]
Remove silly debug line

This is flooding logstash with "thumbnail buckets null" which is neither
helpful nor necessary.

Change-Id: I9ce6d75c53ec5c10e32b056ae3eeee035b189b18

9 years agoMerge "Skip ApiStashEdit if custom DataUpdates are present."
jenkins-bot [Fri, 9 Jan 2015 16:22:25 +0000 (16:22 +0000)]
Merge "Skip ApiStashEdit if custom DataUpdates are present."

9 years agoSkip ApiStashEdit if custom DataUpdates are present.
daniel [Fri, 9 Jan 2015 15:51:15 +0000 (15:51 +0000)]
Skip ApiStashEdit if custom DataUpdates are present.

Bug: T86305
Change-Id: I423ba39a46a08edf2862b8439169ff91338fb6eb

9 years agoRename testBug32548Exponent to testExponentLineBreaking
gladoscc [Thu, 1 Jan 2015 09:58:49 +0000 (20:58 +1100)]
Rename testBug32548Exponent to testExponentLineBreaking

Fix for @todo

Change-Id: I0dcef36fe9cee95ae320b535bac883d5e26ad140

9 years agoUnbreak master by restoring Profiler::profile(In|Out)
Niklas Laxström [Fri, 9 Jan 2015 09:15:30 +0000 (10:15 +0100)]
Unbreak master by restoring Profiler::profile(In|Out)

Keep functions in the abstract class to keep BC with SMW.

To I781f62be9

Change-Id: I81d3912cbffc88ed66c9d6d787db9f1ffe3b2de3

9 years agoMerge "Don't discourage usage of Html::element()"
jenkins-bot [Fri, 9 Jan 2015 07:31:26 +0000 (07:31 +0000)]
Merge "Don't discourage usage of Html::element()"

9 years agoDon't discourage usage of Html::element()
Federico Leva [Fri, 9 Jan 2015 07:02:42 +0000 (08:02 +0100)]
Don't discourage usage of Html::element()

Old advice from 2009 (7aa4a8f9), not quite useful nowadays. The preceding
sentence already says that in absence of attributes the function may not
do much.

Change-Id: I4d276d6f42394fc09662ddfd7e1ffd13fb197bf6

9 years agoMerge "mw.ui: checkbox: Add state change transition"
jenkins-bot [Fri, 9 Jan 2015 01:01:30 +0000 (01:01 +0000)]
Merge "mw.ui: checkbox: Add state change transition"

9 years agoMerge "Export mw.Message's string formatter as mw.format"
jenkins-bot [Thu, 8 Jan 2015 23:37:53 +0000 (23:37 +0000)]
Merge "Export mw.Message's string formatter as mw.format"

9 years agoExport mw.Message's string formatter as mw.format
Ori Livneh [Tue, 6 Jan 2015 18:23:41 +0000 (10:23 -0800)]
Export mw.Message's string formatter as mw.format

For very simple string formatting, make mw.Message's `$N` substring
interpolation functionality available publicly as mw.format.

Change-Id: I87f62ac478aab80994caf79d3c89e1215cf088d4

9 years agoIntroduce Composer merge plugin
Bryan Davis [Tue, 30 Dec 2014 23:42:32 +0000 (16:42 -0700)]
Introduce Composer merge plugin

Require Composer merge plugin to allow easier local Composer dependency
management without composer.json edit conflicts. The configuration
provided will merge Composer configuration directives found in
a `composer.local.json` config file into those specified by MediaWiki's
composer.json file at Composer runtime.

Bug: T67188
Change-Id: I66a19d0154191e536aab37a5e183e4505bf3e9be

9 years agoDon't call localisation functions when initializing pageset
Max Semenik [Fri, 2 Jan 2015 08:47:26 +0000 (00:47 -0800)]
Don't call localisation functions when initializing pageset

Language::commaList() gets called even though in 99% of cases it's not
description that's needed but other parameter information, resulting in
0.6% of overall cluster CPU time being wasted per
https://performance.wikimedia.org/xenon/svgs/daily/2015-01-02.svgz

Change-Id: Ic77e4a03d1bbd1aa5f86dc250d9f903d7eb25618

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 8 Jan 2015 21:18:22 +0000 (22:18 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib7fd6758e921b9b58f23304b8b64518af746ccca

9 years agoDon't say either when providing only one example
Niklas Laxström [Thu, 8 Jan 2015 09:30:05 +0000 (10:30 +0100)]
Don't say either when providing only one example

To I2b0e0ac1a

Change-Id: If47de90c11cf0c6f555fb15261fc5884d2acf59f

9 years agoMerge "Log to DBPerformance log when many LB connections are acquired"
jenkins-bot [Thu, 8 Jan 2015 19:49:53 +0000 (19:49 +0000)]
Merge "Log to DBPerformance log when many LB connections are acquired"

9 years agoMerge "Fix typo references in comments to ResourceLoaderStartUpModule"
jenkins-bot [Thu, 8 Jan 2015 19:47:40 +0000 (19:47 +0000)]
Merge "Fix typo references in comments to ResourceLoaderStartUpModule"

9 years agoMerge "Made profileIn/profileOut methods a no-op"
jenkins-bot [Thu, 8 Jan 2015 19:45:30 +0000 (19:45 +0000)]
Merge "Made profileIn/profileOut methods a no-op"

9 years agoFix phpcs errors in includes/
Ricordisamoa [Thu, 8 Jan 2015 19:11:57 +0000 (20:11 +0100)]
Fix phpcs errors in includes/

Mostly Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines

Change-Id: I678b2f0902f11cd1dfa1611b9da24e7237df9122

9 years agoLog to DBPerformance log when many LB connections are acquired
Aaron Schulz [Sat, 20 Dec 2014 11:58:35 +0000 (03:58 -0800)]
Log to DBPerformance log when many LB connections are acquired

Change-Id: Idcb7233bc418a793b87f4d445807be5eced12d95

9 years agoFix typo references in comments to ResourceLoaderStartUpModule
Adrian Heine [Thu, 8 Jan 2015 08:56:10 +0000 (09:56 +0100)]
Fix typo references in comments to ResourceLoaderStartUpModule

Change-Id: I73436f76d0b42f6f9c0b3277a1b07fb6c2d7eb81

9 years agoMerge "Added ProfilerSectionOnly class"
jenkins-bot [Thu, 8 Jan 2015 17:51:37 +0000 (17:51 +0000)]
Merge "Added ProfilerSectionOnly class"

9 years agoMerge "Switched API to using scopedProfileIn()"
jenkins-bot [Thu, 8 Jan 2015 17:48:33 +0000 (17:48 +0000)]
Merge "Switched API to using scopedProfileIn()"

9 years agoMerge "Removed remaining profile calls"
jenkins-bot [Thu, 8 Jan 2015 17:47:16 +0000 (17:47 +0000)]
Merge "Removed remaining profile calls"

9 years agoMerge "Remove $wgDebugFunctionEntry, unused"
jenkins-bot [Thu, 8 Jan 2015 17:39:47 +0000 (17:39 +0000)]
Merge "Remove $wgDebugFunctionEntry, unused"

9 years agoMerge "Added MapCacheLRU::getAllKeys() method"
jenkins-bot [Thu, 8 Jan 2015 17:23:41 +0000 (17:23 +0000)]
Merge "Added MapCacheLRU::getAllKeys() method"

9 years agoMerge "Add a sort parameter to SearchEngine"
jenkins-bot [Thu, 8 Jan 2015 16:23:49 +0000 (16:23 +0000)]
Merge "Add a sort parameter to SearchEngine"

9 years agoMerge "Always use the canonical extension name when necessary"
jenkins-bot [Thu, 8 Jan 2015 16:01:03 +0000 (16:01 +0000)]
Merge "Always use the canonical extension name when necessary"

9 years agoMerge "Change loading order of Chinese conversion tables"
jenkins-bot [Thu, 8 Jan 2015 15:46:10 +0000 (15:46 +0000)]
Merge "Change loading order of Chinese conversion tables"

9 years agoChange loading order of Chinese conversion tables
Liangent [Thu, 4 Sep 2014 12:19:43 +0000 (12:19 +0000)]
Change loading order of Chinese conversion tables

Apply the conversion variants from specific zones before zh-hans
and zh-hant, to allow fitting specific linguistic habits before
falling back to the generic ones. The actual rules will be added
in a followup patch.

Previously, the zh-cn table was composed by:

(1) Load zh2Hans as zh-hans table
(2) Load zh2CN + zh2Hans as zh-cn table
(3) Load Conversiontable/zh-hans + zh-hans as zh-hans table
(4) Load Conversiontable/zh-cn + zh-cn as zh-cn table
(5) Load zh-hans + zh-cn as the final zh-cn table

The new loading order is:

(1) Load zh2Hans as zh-hans table
(2) Load zh2CN as zh-cn table
(3) Load Conversiontable/zh-hans + zh-hans as zh-hans table
(4) Load Conversiontable/zh-cn + zh-cn as zh-cn table
(5) Load zh-cn + zh-hans as the final zh-cn table

Change-Id: Ie9d08b85d4911618946fa7efd23eb898412449e5

9 years agoCleanup SiteListFileCache test files in tearDown
aude [Fri, 19 Dec 2014 09:20:38 +0000 (10:20 +0100)]
Cleanup SiteListFileCache test files in tearDown

Also use tempnam instead of time().

Bug: T84970
Change-Id: I5eb4379671cde45f70bb03d4634f9f34495a6b29

9 years agoAllow CACHE_NONE as a fallback for ObjectCache::newAccelerator
Brad Jorsch [Thu, 8 Jan 2015 12:33:38 +0000 (07:33 -0500)]
Allow CACHE_NONE as a fallback for ObjectCache::newAccelerator

Test for null specifically rather than falsiness,
because CACHE_NONE is 0.

Bug: T86162
Change-Id: I98b9da42c6a5fd6cdf721cdbd5473a5e959581b8

9 years agomw.ui: Add an example of using the icon class with a button
Prateek Saxena [Thu, 8 Jan 2015 10:19:09 +0000 (15:49 +0530)]
mw.ui: Add an example of using the icon class with a button

Change-Id: I2728aaad60ff68134a18f94ae0b2e258a65ac4b0

9 years agoSwitched API to using scopedProfileIn()
Aaron Schulz [Thu, 8 Jan 2015 10:55:43 +0000 (02:55 -0800)]
Switched API to using scopedProfileIn()

Change-Id: Iaafad236c3e4c85e1b491e76f61322a266123ba6

9 years agoRemoved remaining profile calls
Aaron Schulz [Thu, 8 Jan 2015 10:32:34 +0000 (02:32 -0800)]
Removed remaining profile calls

Change-Id: I31c81c78715048004fc8fca0f27d09c1fa71c118