lhc/web/wiklou.git
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 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

9 years agoAdded ProfilerSectionOnly class
Aaron Schulz [Thu, 8 Jan 2015 10:10:02 +0000 (02:10 -0800)]
Added ProfilerSectionOnly class

Change-Id: I45d1036433a7cca13293de22adf1b63b916393fe

9 years agoMade profileIn/profileOut methods a no-op
Aaron Schulz [Thu, 8 Jan 2015 09:54:51 +0000 (01:54 -0800)]
Made profileIn/profileOut methods a no-op

Change-Id: I781f62be9747bb41af6faad6fbe265414fb77669

9 years agoRemove $wgDebugFunctionEntry, unused
Chad Horohoe [Thu, 8 Jan 2015 05:07:24 +0000 (21:07 -0800)]
Remove $wgDebugFunctionEntry, unused

Change-Id: I5f215ab2275333b329406ca7dda7b12fc0b9b6ec

9 years agoConverted some profiling to scopedProfileIn
Aaron Schulz [Wed, 7 Jan 2015 21:57:56 +0000 (13:57 -0800)]
Converted some profiling to scopedProfileIn

Change-Id: I63eb315155ef03d20a2d228c2be07a24baa0c278

9 years agoImplement extension registration from an extension.json file
Kunal Mehta [Wed, 15 Oct 2014 00:31:15 +0000 (17:31 -0700)]
Implement extension registration from an extension.json file

Introduces wfLoadExtension()/wfLoadSkin() which should be used in
LocalSettings.php rather than require-ing a PHP entry point.

Extensions and skins would add "extension.json" or "skin.json" files
in their root, which contains all the information typically
present in PHP entry point files (classes to autoload, special pages,
API modules, etc.) A full schema can be found at
docs/extension.schema.json, and a script to validate these to the
schema is provided. An additional script is provided to convert
typical PHP entry point files into their JSON equivalents.

The basic flow of loading an extension goes like:
 * Get the ExtensionRegistry singleton instance
 * ExtensionRegistry takes a filename, reads the file or tries
   to get the parsed JSON from APC if possible.
 * The JSON is run through a Processor instance,
   which registers things with the appropriate
   global settings.
 * The output of the processor is cached in APC if possible.
 * The extension/skin is marked as loaded in the
   ExtensionRegistry and a callback function is executed
   if one was specified.

For ideal performance, a batch loading method is also provided:
 * The absolute path name to the JSON file is queued
   in the ExtensionRegistry instance.
 * When loadFromQueue() is called, it constructs a hash
   unique to the members of the current queue, and sees
   if the queue has been cached in APC. If not, it processes
   each file individually, and combines the result of each
   Processor into one giant array, which is cached in APC.
 * The giant array then sets various global settings,
   defines constants, and calls callbacks.

To invalidate the cached processed info, by default the mtime
of each JSON file is checked. However that can be slow if you
have a large number of extensions, so you can set $wgExtensionInfoMTime
to the mtime of one file, and `touch` it whenever you update
your extensions.

Change-Id: I7074b65d07c5c7d4e3f1fb0755d74a0b07ed4596

9 years agoConverted some section profiling to scopedProfileIn
Aaron Schulz [Wed, 7 Jan 2015 22:19:06 +0000 (14:19 -0800)]
Converted some section profiling to scopedProfileIn

Change-Id: If69de34a046f4f33fc57b93beaf264f522ce7386

9 years agoAdd a sort parameter to SearchEngine
Nik Everett [Fri, 24 Jan 2014 08:15:16 +0000 (00:15 -0800)]
Add a sort parameter to SearchEngine

SearchEngine grows a method to list valid sort orders one to set the
sort for the next search, and one to read it.  The default implemenation
only supports 'relevance' and the documenation strongly urges that all
other implemenations leave that as the default.  Other implementations
can support other orders. Cirrus already supports title_asc and title_desc.

Change-Id: Ie946150c6796139201221dfa6f7750c210e97166

9 years agoMerge "Removed ProfilerStandard and ProfilerSimpleTrace"
jenkins-bot [Wed, 7 Jan 2015 21:38:38 +0000 (21:38 +0000)]
Merge "Removed ProfilerStandard and ProfilerSimpleTrace"

9 years agoMerge "API: Improve handling of interwiki redirects when resolving"
jenkins-bot [Wed, 7 Jan 2015 21:05:00 +0000 (21:05 +0000)]
Merge "API: Improve handling of interwiki redirects when resolving"

9 years agoAPI: Improve handling of interwiki redirects when resolving
Brad Jorsch [Mon, 29 Dec 2014 17:50:50 +0000 (12:50 -0500)]
API: Improve handling of interwiki redirects when resolving

When ApiPageSet resolves redirects, it should add the targets of any
interwiki redirects to its list of interwiki titles.

Also, when outputting the list of redirects it may as well include a
'tointerwiki' property to match the 'tofragment' property it already
outputs.

Bug: T85417
Change-Id: Icf1346f52c8efa099b502433de1b18c4caad09df

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 7 Jan 2015 20:43:06 +0000 (21:43 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia1d8ae53646ddaf0185f3bf946c06679e9cab72d

9 years agoMerge "PostgreSQL: Fix Special:ActiveUsers GROUP BY query"
jenkins-bot [Wed, 7 Jan 2015 20:33:40 +0000 (20:33 +0000)]
Merge "PostgreSQL: Fix Special:ActiveUsers GROUP BY query"

9 years agoRemoved ProfilerStandard and ProfilerSimpleTrace
Aaron Schulz [Wed, 7 Jan 2015 19:31:34 +0000 (11:31 -0800)]
Removed ProfilerStandard and ProfilerSimpleTrace

Change-Id: I2b0e0ac1a277e66b15095e766ed5df834b1ae5f9

9 years agoMerge "Remove obvious function-level profiling"
jenkins-bot [Wed, 7 Jan 2015 19:27:45 +0000 (19:27 +0000)]
Merge "Remove obvious function-level profiling"

9 years agoCookie: Fix @throws comment
Kunal Mehta [Wed, 7 Jan 2015 02:13:01 +0000 (18:13 -0800)]
Cookie: Fix @throws comment

Change-Id: I3f63a58b74ab4dd46010c8a61da98c1cae419195

9 years agoImplement namespace inversion on WhatLinksHere
PiRSquared17 [Wed, 19 Nov 2014 00:01:11 +0000 (00:01 +0000)]
Implement namespace inversion on WhatLinksHere

This is basically the same as Ie3f72d97e2ba did for SpecialNewPages.

Bug: T18848
Change-Id: Id6cbdaca50c81129352962996dc5360f64026ed1

9 years agoRemove obvious function-level profiling
Chad Horohoe [Wed, 17 Dec 2014 17:41:27 +0000 (09:41 -0800)]
Remove obvious function-level profiling

Xhprof generates this data now. Custom profiling of various
sub-function units are kept.

Calls to profiler represented about 3% of page execution
time on Special:BlankPage (1.5% in/out); after this change
it's down to about 0.98% of page execution time.

Change-Id: Id9a1dc9d8f80bbd52e42226b724a1e1213d07af7

9 years agoMarked replaceMultiple() as deprecated
Evan McIntire [Sun, 28 Dec 2014 01:40:47 +0000 (20:40 -0500)]
Marked replaceMultiple() as deprecated

MagicWord::replaceMultiple() is completely unused in both core and
all extensions on gerrit, so it is being marked as deprecated.

Change-Id: I6289a36351a2cbc47a0cad237cc985e5c3136773

9 years agoAdd type hinting for WikiPage::onArticleEdit, etc
gladoscc [Thu, 1 Jan 2015 10:49:05 +0000 (21:49 +1100)]
Add type hinting for WikiPage::onArticleEdit, etc

Type hinting will catch false & null as specified in the todo.

Change-Id: I64fade3a7aa5e15323dc63a13d84d969d0b942b3

9 years agoMerge "jquery-ui: Remove dark color from links inside dialogs"
jenkins-bot [Wed, 7 Jan 2015 18:41:21 +0000 (18:41 +0000)]
Merge "jquery-ui: Remove dark color from links inside dialogs"

9 years agojquery-ui: Remove dark color from links inside dialogs
Bartosz Dziewoński [Wed, 7 Jan 2015 18:31:05 +0000 (19:31 +0100)]
jquery-ui: Remove dark color from links inside dialogs

Bug: T85857
Change-Id: I29aafd41ce142b05c1bd9aafb096f38273ca747e

9 years agoCleanUpTest: Consolidate individual "@todo Document" comments into one
Kunal Mehta [Wed, 7 Jan 2015 18:22:48 +0000 (10:22 -0800)]
CleanUpTest: Consolidate individual "@todo Document" comments into one

This avoids PHPUnit marking nearly every test as risky.

Change-Id: I7cb5fc3eca2e9496a61d223dcae7576e7ddb4cad

9 years agoMerge "Update QUnit from v1.14.0 to v1.16.0"
jenkins-bot [Wed, 7 Jan 2015 15:29:22 +0000 (15:29 +0000)]
Merge "Update QUnit from v1.14.0 to v1.16.0"

9 years agoUpdate QUnit from v1.14.0 to v1.16.0
Adrian Heine [Wed, 7 Jan 2015 10:00:59 +0000 (11:00 +0100)]
Update QUnit from v1.14.0 to v1.16.0

- Release notes
  https://github.com/jquery/qunit/blob/1.16.0/History.md

- Source of imported files
  https://code.jquery.com/qunit/qunit-1.16.0.js
  https://code.jquery.com/qunit/qunit-1.16.0.css

- Unit tests still pass.
  Tested on [[Special:JavaScriptTest/qunit]] with $wgEnableJavaScriptTest = true

Bug: T85994
Change-Id: Ic2d5e91d4f1e16a87618b18c3a83d31aaa0ab91c

9 years agoMerge "Remove the 'top' definition from .mw-ui-icon-element:before"
jenkins-bot [Wed, 7 Jan 2015 14:20:57 +0000 (14:20 +0000)]
Merge "Remove the 'top' definition from .mw-ui-icon-element:before"

9 years agoRemove the 'top' definition from .mw-ui-icon-element:before
Prateek Saxena [Wed, 7 Jan 2015 00:50:05 +0000 (06:20 +0530)]
Remove the 'top' definition from .mw-ui-icon-element:before

This was making the icon stick to the top of the button it was
inside. We couldn't find an example of the issue that the earlier
patch was trying to fix (on #wikimedia-mobile).

Bug: T85778
Change-Id: Ifea204ee9b86b01f61f3c48372619dadce64da9b
Reverts: Iadd741f02155a9b5ddeb6cd8ff64fa13ae5506d7

9 years agoMerge "Escape unescaped messages in Special:Preferences"
jenkins-bot [Wed, 7 Jan 2015 08:57:04 +0000 (08:57 +0000)]
Merge "Escape unescaped messages in Special:Preferences"

9 years agoCleanup ParsoidVirtualRESTService
Kunal Mehta [Wed, 7 Jan 2015 02:11:25 +0000 (18:11 -0800)]
Cleanup ParsoidVirtualRESTService

* Remove unused global
* Throw \Exception instead of \MWException since this is in includes/libs/

Change-Id: I2e51d7e25a755b79d14d1814951449f6ce14c68e

9 years agoMerge "Make a VirtualRESTService class for Parsoid"
jenkins-bot [Wed, 7 Jan 2015 01:29:44 +0000 (01:29 +0000)]
Merge "Make a VirtualRESTService class for Parsoid"

9 years agoMake a VirtualRESTService class for Parsoid
Alex Monk [Wed, 24 Dec 2014 00:18:40 +0000 (00:18 +0000)]
Make a VirtualRESTService class for Parsoid

So that code to deal with Parsoid can be shared across different extensions.

Relies on I1d57ff24

Bug: T1218
Change-Id: Id658d925b722b885fd425c27f7c4fd2cd02ad0b4

9 years agoEscape unescaped messages in Special:Preferences
gladoscc [Tue, 6 Jan 2015 07:44:10 +0000 (18:44 +1100)]
Escape unescaped messages in Special:Preferences

Bug: T85864
Change-Id: Ie516549bce72a0052570ab38bde4c03e2bc1b69b

9 years agomw.ui: checkbox: Add state change transition
Prateek Saxena [Tue, 6 Jan 2015 23:46:28 +0000 (05:16 +0530)]
mw.ui: checkbox: Add state change transition

Bug: T78372
Change-Id: If7141e8be250bfb14cbee7bfc6e56730de317312

9 years agoTrigger onResponses on non-replacement request too in VirtualRESTServiceClient
Aaron Schulz [Fri, 19 Dec 2014 19:46:10 +0000 (11:46 -0800)]
Trigger onResponses on non-replacement request too in VirtualRESTServiceClient

Change-Id: I1e550812f3c021c2e2f4246345df2f9dd47d15b8

9 years agoPostgreSQL: Fix Special:ActiveUsers GROUP BY query
Jeff Janes [Fri, 18 Jul 2014 20:21:53 +0000 (13:21 -0700)]
PostgreSQL: Fix Special:ActiveUsers GROUP BY query

For GROUP BY queries, PostgreSQL require all columns in the
unaggregated part of the select list to also be in the
GROUP BY list.

To fix this, add user_name and user_id to the GROUP BY list along side
qcc_title.

This addition cannot change the query results, because user_name and
user_id are functionally dependent on qcc_title: user_name because
of the WHERE clause for this query, and user_id due to the 1 to 1
relationship between user_name and user_id enforced by their unique
and not null constraints on the underlying table.

This has been tested on PostgreSQL and MySQL.

Bug: 68087
Change-Id: I3aed715b40ff6e2290220122acbda0f0e74b5b36

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 6 Jan 2015 21:06:32 +0000 (22:06 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8a6dcdacfbe59bd9b34c314c957ce05a15c0e7a5

9 years agoMerge "Revert "Keep backend param to search API as long as there's a backend""
Chad [Tue, 6 Jan 2015 18:50:28 +0000 (18:50 +0000)]
Merge "Revert "Keep backend param to search API as long as there's a backend""

9 years agoRevert "Keep backend param to search API as long as there's a backend"
Chad [Tue, 6 Jan 2015 18:50:14 +0000 (18:50 +0000)]
Revert "Keep backend param to search API as long as there's a backend"

Actually on second thought, having the parameter disappear is
a better option than keeping it around with only one possible
value.

This reverts commit 7a79b017a03c78ddc0b8bf8762346957bef71936.

Change-Id: Ia67fa1425e0aa1ee95e0a1733f89d29f94f1eeee

9 years agoAlways use the canonical extension name when necessary
Ricordisamoa [Tue, 6 Jan 2015 16:26:00 +0000 (17:26 +0100)]
Always use the canonical extension name when necessary

Items in $wgExtensionCredits can expose a 'namemsg' attribute,
but it should only be used for localized strings.
SpecialVersion->execute() correctly uses 'name', while commit
326f3f450ce56420090e3bb30eb9a9cccfe1816e inadvertently made
getCreditsForExtension() use 'namemsg'.

Same as ace5db002378ca8b3ff63a66ba5ab35267754b9f for license files.

Change-Id: Ifbcecc906f41eced48493c48d4f2a85eed232551

9 years agoMerge "Remove double escaping of group member name on Special:ListUsers"
jenkins-bot [Tue, 6 Jan 2015 17:45:29 +0000 (17:45 +0000)]
Merge "Remove double escaping of group member name on Special:ListUsers"

9 years agoMerge "grunt: Add Karma task for automated QUnit testing in browsers"
jenkins-bot [Tue, 6 Jan 2015 16:36:12 +0000 (16:36 +0000)]
Merge "grunt: Add Karma task for automated QUnit testing in browsers"

9 years agoRemove double escaping of group member name on Special:ListUsers
umherirrender [Mon, 29 Dec 2014 21:10:38 +0000 (22:10 +0100)]
Remove double escaping of group member name on Special:ListUsers

Similar to T31340 the group name gets double escaped

Bug: T85864
Change-Id: I9202fc12c2d72baf1f61cb69624b37411b0edacc

9 years agoMerge "Always use the canonical extension name to link the license file"
jenkins-bot [Tue, 6 Jan 2015 15:54:31 +0000 (15:54 +0000)]
Merge "Always use the canonical extension name to link the license file"

9 years agoUse also $wgAutoloadClasses in tests for module names
umherirrender [Fri, 19 Dec 2014 16:25:05 +0000 (17:25 +0100)]
Use also $wgAutoloadClasses in tests for module names

Extensions using $wgAutoloadClasses where this test will fail

Follow-Up: If1125cd5fa4ed836fe15fc79480d78ebd899be4e
Change-Id: Ic2024605d7d59890c527cc0580a49da73f8516c8

9 years agoMerge "API: Avoid unstubbing User for language pref when not needed"
jenkins-bot [Mon, 5 Jan 2015 23:05:00 +0000 (23:05 +0000)]
Merge "API: Avoid unstubbing User for language pref when not needed"

9 years agoMerge "Proper namespace handling for WikiImporter"
jenkins-bot [Mon, 5 Jan 2015 22:40:15 +0000 (22:40 +0000)]
Merge "Proper namespace handling for WikiImporter"

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

Change-Id: I360f162ccf794d3709c0d64d617d6ffbdf85b23f

9 years agoMerge "Add applicable protection types to the prop=info API"
jenkins-bot [Mon, 5 Jan 2015 21:15:25 +0000 (21:15 +0000)]
Merge "Add applicable protection types to the prop=info API"

9 years agoAdd applicable protection types to the prop=info API
Ricordisamoa [Fri, 26 Dec 2014 22:13:50 +0000 (23:13 +0100)]
Add applicable protection types to the prop=info API

Disabled by default, enabled with inprop=protections,
returned as 'restrictiontypes', also for non-existing titles.

Change-Id: I98604b60626b84bd8cb601a4149b80db1b6787b7

9 years agoMerge "Remove silly reference ampersands from database functions in maint"
jenkins-bot [Mon, 5 Jan 2015 20:55:22 +0000 (20:55 +0000)]
Merge "Remove silly reference ampersands from database functions in maint"

9 years agoexception: Implement error-json log
Timo Tijhof [Tue, 2 Dec 2014 22:39:08 +0000 (22:39 +0000)]
exception: Implement error-json log

Follows-up 399ba2f.

Bug: T75619
Bug: T45086
Change-Id: Ia7ba355d5925a6268ffa321ffc13cc6906b487f8

9 years agoMerge "Add batch lookup for user groups and titles on Special:ActiveUsers"
jenkins-bot [Mon, 5 Jan 2015 19:46:21 +0000 (19:46 +0000)]
Merge "Add batch lookup for user groups and titles on Special:ActiveUsers"