lhc/web/wiklou.git
9 years agoRemove redundant NS_MAIN from translations
Niklas Laxström [Wed, 1 Apr 2015 08:17:10 +0000 (10:17 +0200)]
Remove redundant NS_MAIN from translations

Change-Id: Ia01549310909281e48260950f97a8f6fa12ae230

9 years agoMerge "Made InfoAction::invalidateCache() use READ_LATEST"
jenkins-bot [Wed, 1 Apr 2015 00:19:04 +0000 (00:19 +0000)]
Merge "Made InfoAction::invalidateCache() use READ_LATEST"

9 years agoMade InfoAction::invalidateCache() use READ_LATEST
Aaron Schulz [Mon, 30 Mar 2015 22:50:39 +0000 (15:50 -0700)]
Made InfoAction::invalidateCache() use READ_LATEST

Change-Id: I794c443b9d65d924366eff9baaf4460ce196a967

9 years agoAdded slave/master fallback logic in Revision
Aaron Schulz [Thu, 26 Mar 2015 00:29:31 +0000 (17:29 -0700)]
Added slave/master fallback logic in Revision

* This is a more specific form of the logic removed in 3c2bc32ae1.
  It does not suffer the problem of causing constant master DB
  queries due to a bad template reference or such.
* It will use the master if writes from the current thread
  are pending or were recently committed. This deals with the
  common problem of code that needs to read things it just wrote,
  such as diffs on rollback or edit hooks.
* This commit reverts 8624e261f by making the hack obsolete.

Bug: T93866
Bug: T94407
Change-Id: Ib9ecb75e1236e767bdc86d124d5e22a03ae0fb5f

9 years agoMerge "mw.track: Add test suite"
jenkins-bot [Tue, 31 Mar 2015 22:38:38 +0000 (22:38 +0000)]
Merge "mw.track: Add test suite"

9 years agomw.track: Add test suite
Timo Tijhof [Fri, 27 Mar 2015 23:54:45 +0000 (23:54 +0000)]
mw.track: Add test suite

Change-Id: I3ad2c0b5b993e3a0c67b420ff1768131e8f3b3b6

9 years agoresourceloader: Simplify getHashMtime() to merely a timestamp
Timo Tijhof [Tue, 31 Mar 2015 18:17:11 +0000 (19:17 +0100)]
resourceloader: Simplify getHashMtime() to merely a timestamp

Similar to what getDefinitionMtime() does already. No need to
repeat the hash. No need for an array that needs serialising and
unserialising internally.

Change the hash key to avoid using old cache values.

Also moved the comment about hashes being included in the key to
this method. getDefinitionMtime() is a later method that performs
the same logic but doesn't need the entire story again.

Follows-up 044713c4d3bdda32.

Change-Id: Idd83de5ac27138a2dbf2ec49d81ea9188bd6ad57

9 years agoMerge "ResourceLoaderImage: Some cleanup, typo fixes and tweaks"
jenkins-bot [Tue, 31 Mar 2015 19:06:41 +0000 (19:06 +0000)]
Merge "ResourceLoaderImage: Some cleanup, typo fixes and tweaks"

9 years agoMerge "ResourceLoaderImage: Throw exception if files don't exist"
jenkins-bot [Tue, 31 Mar 2015 19:06:39 +0000 (19:06 +0000)]
Merge "ResourceLoaderImage: Throw exception if files don't exist"

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Tue, 31 Mar 2015 18:55:19 +0000 (18:55 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoMerge "Fix capitaliation of UtfNormal namespace"
jenkins-bot [Tue, 31 Mar 2015 18:52:30 +0000 (18:52 +0000)]
Merge "Fix capitaliation of UtfNormal namespace"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 31 Mar 2015 18:51:49 +0000 (20:51 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I96ad4039d7c301dd444197040a6de86b6221ccea

9 years agoMerge "Add SpecialLog::getLogTypesOnUser()"
jenkins-bot [Tue, 31 Mar 2015 18:51:41 +0000 (18:51 +0000)]
Merge "Add SpecialLog::getLogTypesOnUser()"

9 years agoMerge "resourceloader: De-duplicate $files in ResourceLoaderFileModule::getModifiedTi...
jenkins-bot [Tue, 31 Mar 2015 18:42:12 +0000 (18:42 +0000)]
Merge "resourceloader: De-duplicate $files in ResourceLoaderFileModule::getModifiedTime()"

9 years agoFix capitaliation of UtfNormal namespace
Kunal Mehta [Tue, 31 Mar 2015 18:41:43 +0000 (11:41 -0700)]
Fix capitaliation of UtfNormal namespace

Change-Id: I18f68da0e36ef148a8235516f2ed72b4b3190208

9 years agoresourceloader: De-duplicate $files in ResourceLoaderFileModule::getModifiedTime()
Timo Tijhof [Tue, 31 Mar 2015 18:01:15 +0000 (19:01 +0100)]
resourceloader: De-duplicate $files in ResourceLoaderFileModule::getModifiedTime()

lessc::allParsedFiles() always includes the main file we already
know about. As such needlessly causing it to be queried multiple
times.

Change-Id: Icd2c11d93d6491664fcf58a18bfe6e2932689774

9 years agoprofiler: Consolidate duplicate branches in ProfilerOutputText
Timo Tijhof [Tue, 31 Mar 2015 18:23:58 +0000 (19:23 +0100)]
profiler: Consolidate duplicate branches in ProfilerOutputText

Follows-up 3ca6ab103166c.

Change-Id: I342c68990301a303425c83847406dcf3b308bd27

9 years agoMerge "Made text profiling actually work with load.php"
jenkins-bot [Tue, 31 Mar 2015 18:08:19 +0000 (18:08 +0000)]
Merge "Made text profiling actually work with load.php"

9 years agoMerge "Fixed {{REVISION(TIMESTAMP|USER|SIZE)}} on new revisions"
jenkins-bot [Tue, 31 Mar 2015 18:00:30 +0000 (18:00 +0000)]
Merge "Fixed {{REVISION(TIMESTAMP|USER|SIZE)}} on new revisions"

9 years agoMade text profiling actually work with load.php
Aaron Schulz [Tue, 31 Mar 2015 07:44:08 +0000 (00:44 -0700)]
Made text profiling actually work with load.php

Change-Id: I8d28ad8669e8c2f5d7025fe67fb75d0551975e07

9 years agoRely less on file stat cache in FileDependency
Aaron Schulz [Tue, 31 Mar 2015 08:15:57 +0000 (01:15 -0700)]
Rely less on file stat cache in FileDependency

Change-Id: Ica16ddb7db00a56a16332c4dbb9a04e7b40a1844

9 years agoresourceloader: Cut down on file stat time in safeFilemtime()
Aaron Schulz [Tue, 31 Mar 2015 07:59:40 +0000 (00:59 -0700)]
resourceloader: Cut down on file stat time in safeFilemtime()

* If stat cache is not enabled, this used to do two queries.

Change-Id: Icfed675b27f952ec13b9d0af3e345b1486ea7c8f

9 years agoMerge "Use HTMLForm for Special:FileDuplicateSearch"
jenkins-bot [Tue, 31 Mar 2015 06:47:02 +0000 (06:47 +0000)]
Merge "Use HTMLForm for Special:FileDuplicateSearch"

9 years agoexception: Log fatal errors to a new 'fatal' log group
Kunal Mehta [Sun, 29 Mar 2015 09:14:08 +0000 (02:14 -0700)]
exception: Log fatal errors to a new 'fatal' log group

'error' is currently disabled in Wikimedia production, but we still need
to log stack traces for fatals.

Bug: T89169
Change-Id: Id0255651f228037152b87022f5eb696c1050b9ec

9 years agoFixed {{REVISION(TIMESTAMP|USER|SIZE)}} on new revisions
Aaron Schulz [Tue, 31 Mar 2015 04:00:13 +0000 (21:00 -0700)]
Fixed {{REVISION(TIMESTAMP|USER|SIZE)}} on new revisions

* This makes use of the injected new revision object used elsewhere
  in Parser to solve this problem.

Bug: T94407
Change-Id: I7881583cf7cb2bc799c89ffaa2a344a2d4ca3a4e

9 years agoMerge "registration: Have wfLoadExtension() (and similar) use the queue"
jenkins-bot [Tue, 31 Mar 2015 00:55:05 +0000 (00:55 +0000)]
Merge "registration: Have wfLoadExtension() (and similar) use the queue"

9 years agoMerge "registration: Use array_merge() rather than array plus when merging"
jenkins-bot [Tue, 31 Mar 2015 00:53:17 +0000 (00:53 +0000)]
Merge "registration: Use array_merge() rather than array plus when merging"

9 years agoMerge "Adding mobile target to mediawiki.template.mustache"
jenkins-bot [Tue, 31 Mar 2015 00:51:20 +0000 (00:51 +0000)]
Merge "Adding mobile target to mediawiki.template.mustache"

9 years agoMerge "Use wikimedia/utfnormal library, add backwards-compatability layer"
jenkins-bot [Tue, 31 Mar 2015 00:51:16 +0000 (00:51 +0000)]
Merge "Use wikimedia/utfnormal library, add backwards-compatability layer"

9 years agoMerge "Category view modified to use column width"
jenkins-bot [Tue, 31 Mar 2015 00:51:08 +0000 (00:51 +0000)]
Merge "Category view modified to use column width"

9 years agoregistration: Have wfLoadExtension() (and similar) use the queue
Kunal Mehta [Mon, 30 Mar 2015 21:35:45 +0000 (14:35 -0700)]
registration: Have wfLoadExtension() (and similar) use the queue

Right now wfLoadExtension() and related functions explicitly load
extensions immediately, bypassing the queue. This was done to be
extremely backwards-compatible with the old require_once style of
loading which does the same.

However, for a future configuration database to work, we need to be able
to reliably load extensions after configuration (LocalSettings.php) is
loaded, which is currently at the top of Setup.php. Rather than doing
this later, we should do this now to make sure the registration system
will be able to handle it.

In Wikimedia production, excentions are currently being loaded with
direct calls to:
  ExtensionRegistry::getInstance()->queue(...);
so we know that this should work, but that is not a nice API for sysadmins
and developers to be entering into LocalSettings.php.

If for some reason an extension really needs to be loaded immediately,
they can still call:
  ExtensionRegistry::getInstance()->loadFromQueue();
But that should be the exception, not the norm.

Change-Id: I72672e5c9541ede02d09f548c39ef6c8df0ec78a

9 years agoregistration: Use array_merge() rather than array plus when merging
Roan Kattouw [Tue, 31 Mar 2015 00:39:36 +0000 (17:39 -0700)]
registration: Use array_merge() rather than array plus when merging

Because plus doesn't deal with numerical keys well. We do need old values
to win, because LocalSettings.php runs before extension.json files.

Change-Id: I56318fe586776940f7e28ca038dad49d24f24f2e

9 years agoAdding mobile target to mediawiki.template.mustache
kaldari [Tue, 31 Mar 2015 00:10:49 +0000 (17:10 -0700)]
Adding mobile target to mediawiki.template.mustache

Otherwise we can't use the mustache compiler from MobileFrontend.

Change-Id: I36ac5478493af32673f2849c122efc24336b7f51

9 years agoMerge "EditPage: Remove remnants of pre-1.16 live preview"
jenkins-bot [Mon, 30 Mar 2015 20:42:21 +0000 (20:42 +0000)]
Merge "EditPage: Remove remnants of pre-1.16 live preview"

9 years agoMerge "Let extensions add entries to Special:DeletedContributions"
jenkins-bot [Mon, 30 Mar 2015 20:26:00 +0000 (20:26 +0000)]
Merge "Let extensions add entries to Special:DeletedContributions"

9 years agoAdd SpecialLog::getLogTypesOnUser()
Kunal Mehta [Mon, 30 Mar 2015 20:20:05 +0000 (13:20 -0700)]
Add SpecialLog::getLogTypesOnUser()

So extensions like Renameuser can get the list without having to re-implement
the core list and hook.

Bug: T78575
Change-Id: I47a814ff1ba0b50c8ff891fe7f69d18bd46661a6

9 years agoAdd null check in WikiImporter
This, that and the other [Sun, 29 Mar 2015 09:30:15 +0000 (20:30 +1100)]
Add null check in WikiImporter

This is my code, and it caused fatals in production whenever anyone tried
to import anything :(

This should get rid of the fatals, but obviously this won't fix the
underlying issue of WikiPage::getContent() sometimes returning null. See
the task for more info on that issue.

Bug: T94325
Change-Id: I68ce2288d7d209733bceffe42e1876c7afcd73d3

9 years agoEditPage: Remove remnants of pre-1.16 live preview
Kevin Israel [Sun, 1 Mar 2015 12:28:36 +0000 (07:28 -0500)]
EditPage: Remove remnants of pre-1.16 live preview

Change-Id: I6cd0c56f7e934ce43f9bd101bfb5d4ca3d7bdbad

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 30 Mar 2015 19:11:00 +0000 (21:11 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ifae391b6bf64c3661b1fbf67446de2a15cd2685d

9 years agoCategory view modified to use column width
Sumit Asthana [Thu, 5 Mar 2015 10:08:26 +0000 (15:38 +0530)]
Category view modified to use column width

Category view used css media queries to set column count to 3 beyond 768px and
reduces the count to 1 below it. This behaviour has been changed by setting the
column width to 25em and allowing the column number to adjust automatically.
As a result, media queries have been removed.
See https://css-tricks.com/almanac/properties/c/column-width/
Follow up on https://gerrit.wikimedia.org/r/#/c/187952/

Bug: T55130
Change-Id: I20b68dea8f64b2d07866f4aa20ef83941c879697

9 years agoMerge "Fix ORDER BY in fixUserRegistration.php"
jenkins-bot [Mon, 30 Mar 2015 18:46:22 +0000 (18:46 +0000)]
Merge "Fix ORDER BY in fixUserRegistration.php"

9 years agoMerge "Removed unused parameter from User::checkNewtalk"
jenkins-bot [Mon, 30 Mar 2015 18:31:55 +0000 (18:31 +0000)]
Merge "Removed unused parameter from User::checkNewtalk"

9 years agoMerge "Made User::getFormerGroups load properly"
jenkins-bot [Mon, 30 Mar 2015 18:31:51 +0000 (18:31 +0000)]
Merge "Made User::getFormerGroups load properly"

9 years agoRemoved unused parameter from User::checkNewtalk
Aaron Schulz [Mon, 30 Mar 2015 18:15:01 +0000 (11:15 -0700)]
Removed unused parameter from User::checkNewtalk

Change-Id: I112fc32d9985664ab5edea842f52f62554c082ea

9 years agoMade User::getFormerGroups load properly
Aaron Schulz [Mon, 30 Mar 2015 18:13:46 +0000 (11:13 -0700)]
Made User::getFormerGroups load properly

Change-Id: I5c752f9446ef78f08c457e9758ebf9e0b79a0c37

9 years agoMerge "resourceloader: Throw InvalidArgumentException for invalid constructor arguments"
jenkins-bot [Mon, 30 Mar 2015 18:13:37 +0000 (18:13 +0000)]
Merge "resourceloader: Throw InvalidArgumentException for invalid constructor arguments"

9 years agoMerge "ResourceLoaderImage: Add basic tests"
jenkins-bot [Mon, 30 Mar 2015 18:09:59 +0000 (18:09 +0000)]
Merge "ResourceLoaderImage: Add basic tests"

9 years agoResourceLoaderImage: Some cleanup, typo fixes and tweaks
Bartosz Dziewoński [Mon, 30 Mar 2015 17:09:24 +0000 (19:09 +0200)]
ResourceLoaderImage: Some cleanup, typo fixes and tweaks

Change-Id: If46a15d09c3792758735dedb5e7f89984797a892

9 years agoResourceLoaderImage: Throw exception if files don't exist
Bartosz Dziewoński [Mon, 30 Mar 2015 17:08:55 +0000 (19:08 +0200)]
ResourceLoaderImage: Throw exception if files don't exist

Change-Id: I67eb795f7fc4d35d15feb0717b1b781cbc45f78a

9 years agoresourceloader: Throw InvalidArgumentException for invalid constructor arguments
Bartosz Dziewoński [Mon, 30 Mar 2015 16:51:10 +0000 (18:51 +0200)]
resourceloader: Throw InvalidArgumentException for invalid constructor arguments

(But not for exceptions about missing files.)

Per Legoktm's comments on 8edbfb5feb708f80d63f118f9b00eb341278f68a.

Change-Id: I725f846476d2d97d3d820bc22674f7b5aab812bb

9 years agoResourceLoaderImage: Add basic tests
Bartosz Dziewoński [Sun, 29 Mar 2015 17:53:47 +0000 (19:53 +0200)]
ResourceLoaderImage: Add basic tests

Also remove some wrappers from ResourceLoaderImageModule tests that
are no longer necessary, since the files they were mocking now exist.

Bug: T86334
Change-Id: If02e58716ce8e6c8327c8939c6c6425bd48bb560

9 years agoMade User::validateCache account for mQuickTouched
Aaron Schulz [Mon, 30 Mar 2015 16:36:49 +0000 (09:36 -0700)]
Made User::validateCache account for mQuickTouched

Change-Id: I3b733a0221462350f3a24d54ffe814357f379512

9 years agoMerge "Made user preferences load from the master by default"
jenkins-bot [Mon, 30 Mar 2015 15:30:49 +0000 (15:30 +0000)]
Merge "Made user preferences load from the master by default"

9 years agoMerge "Update namespaces for Luri (lrc) from translatewiki.net"
jenkins-bot [Mon, 30 Mar 2015 13:42:35 +0000 (13:42 +0000)]
Merge "Update namespaces for Luri (lrc) from translatewiki.net"

9 years agoUpdate namespaces for Luri (lrc) from translatewiki.net
mjbmr [Mon, 30 Mar 2015 00:27:07 +0000 (00:27 +0000)]
Update namespaces for Luri (lrc) from translatewiki.net

Change-Id: Icec87b9d08e7dce35e361f6250b28106aa4811f7

9 years agoAdd list-style-type:persian for bgn, lrc, mzn and sdh
mjbmr [Sun, 29 Mar 2015 23:46:00 +0000 (23:46 +0000)]
Add list-style-type:persian for bgn, lrc, mzn and sdh

Change-Id: I9310a3b4a50c0b8ea6551d9f45e7a2e276a8a389

9 years agoMerge "Parser tests for page status indicators"
jenkins-bot [Sun, 29 Mar 2015 22:48:03 +0000 (22:48 +0000)]
Merge "Parser tests for page status indicators"

9 years agoParser tests for page status indicators
Bartosz Dziewoński [Sun, 2 Nov 2014 20:08:43 +0000 (21:08 +0100)]
Parser tests for page status indicators

https://www.mediawiki.org/wiki/Help:Page_status_indicators

Change-Id: Ic461fe889a3f8ef9f332019f72cfb732c0ec1eca

9 years agoFix ORDER BY in fixUserRegistration.php
Kevin Israel [Sun, 29 Mar 2015 18:07:46 +0000 (14:07 -0400)]
Fix ORDER BY in fixUserRegistration.php

Non-boolean options for select() must be provided as key-value pairs. If
provided as numbered elements, they will not end up in the generated query.

Follows-up ea406e42cd41.

Change-Id: I0364618b6a805c353cdc19a60f157df33519d87a

9 years agoResourceLoaderImageModule: Rename 'image' in descriptors to 'file'
Bartosz Dziewoński [Sat, 28 Mar 2015 00:44:47 +0000 (01:44 +0100)]
ResourceLoaderImageModule: Rename 'image' in descriptors to 'file'

Like in OOjs UI. Less confusing. No one is using this yet.

Bug: T93669
Change-Id: Ib1c9af96b46ba660b3697d272129e071da1fdf18

9 years agoResourceLoaderImageModule: Remove 'type' stuff
Bartosz Dziewoński [Fri, 27 Mar 2015 17:27:47 +0000 (18:27 +0100)]
ResourceLoaderImageModule: Remove 'type' stuff

Provides no value and makes the definitions uglier. Also, the
implementation sucks.

This is a breaking change, but ResourceLoaderImageModule was not in
any public release yet.

Submitted patches to fix two usages in extensions:
* Gather: I371209afe7b48e7c215ea9912826d4eb2cacf4e5
* MobileFrontend: I1963f5fe759c3a031220157d3a6f0f3b42bc5426

Bug: T94073
Change-Id: I36cfdb09bb203b8d9958e6016447e446dd6ff78b

9 years agoResourceLoaderImageModule: Implement CSS selector templates
Bartosz Dziewoński [Mon, 23 Mar 2015 21:04:54 +0000 (22:04 +0100)]
ResourceLoaderImageModule: Implement CSS selector templates

Instead of a 'prefix', a 'selector' can be specified, with a string
containing a simple template to use for CSS selector. For example:

    'selector' => '.mw-ui-icon-{name}'

'prefix' continues to work as before.

When using variants, one might want to provide separate
'selectorWithoutVariant' and 'selectorWithVariant' options.

Available variables are {prefix}, {type}, {name}, and {variant}.

Bug: T78215
Change-Id: I99ccaf25e8d24fed5afd0c4b770d2f389789ce4b

9 years agoResourceLoaderImageModule: Add basic tests
Bartosz Dziewoński [Fri, 27 Mar 2015 17:08:11 +0000 (18:08 +0100)]
ResourceLoaderImageModule: Add basic tests

Bug: T86334
Change-Id: Ie98bf5dec2d4d4c309ed5075b3191da3017f5ad4

9 years agoResourceLoaderImageModule: Improve PHP 5.3 compatibility
Bartosz Dziewoński [Sun, 29 Mar 2015 16:29:41 +0000 (18:29 +0200)]
ResourceLoaderImageModule: Improve PHP 5.3 compatibility

In PHP 5.3.x and older, the isset() check in code example below will
yield true. In PHP 5.4 and later, and HHVM, it will correctly yield
false. http://3v4l.org/8p3hm

  $options = 'foo';
  isset( $options['bar'] );

Let's not depend on this behavior here.

Change-Id: I67e83af8afe85b3ddfb5db0009759b8ac5bb7d67

9 years agoUse HTMLForm for Special:FileDuplicateSearch
Florianschmidtwelzow [Fri, 31 Oct 2014 12:05:32 +0000 (13:05 +0100)]
Use HTMLForm for Special:FileDuplicateSearch

* Prepare the usage of MediaWiki UI.
* Add new HTMLForm output mode "inline" (very close to "raw")

Bug: 71436
Change-Id: I12240aaf624dff5219b344648b20373594b5ec46

9 years agomediawiki.action.edit.preview: Disable if there is no #wpTextbox1
Fomafix [Sun, 29 Mar 2015 13:57:37 +0000 (13:57 +0000)]
mediawiki.action.edit.preview: Disable if there is no #wpTextbox1

ProofreadPage has custom editforms for Index pages, which are not
supported by the API. These editforms have no #wpTextbox1, so disable
live preview in that case.

Make this check on click avoid T94089.

Bug: T78709
Change-Id: I628d3b226a4294f2878fc4175080a975fd86e507

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 29 Mar 2015 11:58:01 +0000 (13:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I8b8619a0715efcec1117bf8d086ff9496be48ac2

9 years agoMerge "Add release-notes for message escaping"
jenkins-bot [Sun, 29 Mar 2015 03:25:13 +0000 (03:25 +0000)]
Merge "Add release-notes for message escaping"

9 years agoSimplify TitleTest::testWgWhitelistReadRegexp()
Kunal Mehta [Sat, 28 Mar 2015 05:22:51 +0000 (22:22 -0700)]
Simplify TitleTest::testWgWhitelistReadRegexp()

* Use setMwGlobals instead of doing it manually
* Give user no rights to avoid a database query

Change-Id: I3ab20972314e39bb81bc97c89fce7a4c0d331fe6

9 years agoRemove unused 'section-symbol' message
Bartosz Dziewoński [Sat, 28 Mar 2015 02:35:05 +0000 (03:35 +0100)]
Remove unused 'section-symbol' message

Change-Id: I3aed335d5dc57f0a6d87828bace0dc55c89c6d68

9 years agobuild: Update grunt-banana-checker to v0.2.1
James D. Forrester [Fri, 27 Mar 2015 23:48:58 +0000 (16:48 -0700)]
build: Update grunt-banana-checker to v0.2.1

Change-Id: I7b60b856d8cf21640c382647c6570e32091b5cde

9 years agoMerge "Fix dependency of ResourceLoaderSpecialCharacterDataModule"
jenkins-bot [Fri, 27 Mar 2015 23:12:09 +0000 (23:12 +0000)]
Merge "Fix dependency of ResourceLoaderSpecialCharacterDataModule"

9 years agoMerge "Change default of $wgResourceLoaderMaxQueryLength to 2000"
jenkins-bot [Fri, 27 Mar 2015 22:45:56 +0000 (22:45 +0000)]
Merge "Change default of $wgResourceLoaderMaxQueryLength to 2000"

9 years agoChange default of $wgResourceLoaderMaxQueryLength to 2000
Jan Zerebecki [Thu, 26 Feb 2015 16:51:13 +0000 (17:51 +0100)]
Change default of $wgResourceLoaderMaxQueryLength to 2000

The lowest commonly supported length is a bit over 2000.  That is the limit of
Internet Explorer.  For discussion of the IE limit see
http://blogs.msdn.com/b/ieinternals/archive/2014/08/13/url-length-limits-in-internet-explorer.aspx .
Some servers only support 4k.

Having it unlimited does not work when running qunit jenkins test jobs of the
Wikibase extension or when running its qunit tests in vagrant, because it hits
the nginx limit.

This also adds a mw.track call for when the request split happens.

Bug: T90453
Change-Id: Ic416def846f361425c46f7bd1022ed85fa8ac85e

9 years agoSplit out internal parseAndStash from the edit stashing API
Aaron Schulz [Thu, 26 Mar 2015 21:19:39 +0000 (14:19 -0700)]
Split out internal parseAndStash from the edit stashing API

Bug: T90040
Change-Id: Ifa49fb9955dafff0c82ae635a5e1b3fb16d5e783

9 years agoFix dependency of ResourceLoaderSpecialCharacterDataModule
Alex Monk [Fri, 27 Mar 2015 22:10:14 +0000 (22:10 +0000)]
Fix dependency of ResourceLoaderSpecialCharacterDataModule

I think this is probably what's causing the test failure in I3fafc561 on PS7

Follows-up If9c5cdbe

Change-Id: I8fafd734db49fdfaf088c68098c41920a2e6011b

9 years agoMerge "Changed user login logic to use less expensive touch() method"
jenkins-bot [Fri, 27 Mar 2015 22:08:02 +0000 (22:08 +0000)]
Merge "Changed user login logic to use less expensive touch() method"

9 years agoReport uncaught errors via mw.track
Gergő Tisza [Thu, 29 Jan 2015 01:21:01 +0000 (01:21 +0000)]
Report uncaught errors via mw.track

Adds a global error handler that sends errors to mw.track as
an errorLogging.windowOnerror event.

Bug: T88874
Change-Id: Ic091c9f93c59bda47bda2cfd609c64cd1d014b39

9 years agoRemove MWLoggerMonologSamplingHandler
Bryan Davis [Sun, 22 Mar 2015 22:54:06 +0000 (16:54 -0600)]
Remove MWLoggerMonologSamplingHandler

The Monolog\Handler\SamlingHandler class available since Monolog v1.12.0
is an upstreamed equivalent of MWLoggerMonologSamplingHandler.

Requires: I8790da95fd658234e35b2d846af35993ebcd80e9
Change-Id: I3841cbab95382a66098d90f5570fa0bf3521578a

9 years agoMerge "Correct typo in MediaWiki:Apihelp-paraminfo-param-formatmodules"
jenkins-bot [Fri, 27 Mar 2015 18:45:48 +0000 (18:45 +0000)]
Merge "Correct typo in MediaWiki:Apihelp-paraminfo-param-formatmodules"

9 years agoMerge "Move WikiEditor's special character data and messages into core for use in...
jenkins-bot [Fri, 27 Mar 2015 18:40:36 +0000 (18:40 +0000)]
Merge "Move WikiEditor's special character data and messages into core for use in other extensions"

9 years agoAdd release-notes for message escaping
umherirrender [Sat, 28 Feb 2015 09:38:08 +0000 (10:38 +0100)]
Add release-notes for message escaping

Some of this messages where used with raw html on wmf wikis, that makes
it possible that this message also will be used with raw html on third
party wikis, therefore give a hint in the release notes.

This includes release notes for:
Id55295a0406659242bbc12a59af7e23fb742237c: editsection
Ic4fcb40de844ac51c88fb51d752a4c286313ecf9: redirectto
I1e90962c3c94c8b72aadfc4c0d041d52e2cde3f1: version-poweredby-others
I7a5dfc8ecd2f84da0dce3e1357af462a3c0da23f: thisisdeleted, viewdeleted
Ifb58bd3823aa633135a701ae3e2ae9c955b422c0: protect-summary-cascade
Id16d8c8dff73fdacad6c9a4ff7f2919945b7e893: editlink, viewsourcelink
Ibcc1b49946bc91e12756eb3866448159493c61f4: lastmodifiedat,
laggedslavemode
Ifd696ecd93c76e56cb21b3f2645367beeeeb5ba0: retrievedfrom

Bug: T85864
Change-Id: I1b144242ccb8780120f1a8ad9e3b6fde0da760f5

9 years agoAvoid using DB_MASTER in makeLikeArray
Aaron Schulz [Fri, 27 Mar 2015 17:47:58 +0000 (10:47 -0700)]
Avoid using DB_MASTER in makeLikeArray

Bug: T92357
Change-Id: Ifd134f8572a247d6d977fdb36fb2814bc51e7fbe

9 years agoReplace Html::... with self::... in the Html class
Thiemo Mättig [Thu, 26 Mar 2015 09:17:07 +0000 (10:17 +0100)]
Replace Html::... with self::... in the Html class

How cool is that, I can call a patch "SelfHTML". ;-)

Change-Id: I17d36bc45a349c92715b88004aaae046d4f7be1c

9 years agoMove WikiEditor's special character data and messages into core for use in other...
Alex Monk [Fri, 13 Mar 2015 00:24:09 +0000 (00:24 +0000)]
Move WikiEditor's special character data and messages into core for use in other extensions

Using a ResourceLoader module to send the data to the client

For I3fafc561

Message changes:
wikieditor-toolbar-characters-page-.* -> special-characters-group-
wikieditor-toolbar-characters-(endash|emdash|minus) -> special-characters-title-

Bug: T91608
Change-Id: If9c5cdbe077e8796e1ebae99f759331251b5c4b1

9 years agoMerge "Add mobile target for mediawiki.confirmCloseWindow"
jenkins-bot [Fri, 27 Mar 2015 17:28:38 +0000 (17:28 +0000)]
Merge "Add mobile target for mediawiki.confirmCloseWindow"

9 years agoMerge "Update MWLoggerLegacyLogger phpdoc"
jenkins-bot [Fri, 27 Mar 2015 17:06:36 +0000 (17:06 +0000)]
Merge "Update MWLoggerLegacyLogger phpdoc"

9 years agoMerge "Allow MWLoggerMonologHandler to take prefix from channel"
jenkins-bot [Fri, 27 Mar 2015 17:06:01 +0000 (17:06 +0000)]
Merge "Allow MWLoggerMonologHandler to take prefix from channel"

9 years agoAdd mobile target for mediawiki.confirmCloseWindow
Florian [Fri, 27 Mar 2015 16:56:50 +0000 (17:56 +0100)]
Add mobile target for mediawiki.confirmCloseWindow

Bug: T88949
Change-Id: I1e06668cbd149c23f7b961f7603be07262a021a9

9 years agoMerge "Made ProfilerStub return null instead of a dummy ScopedCallback"
jenkins-bot [Fri, 27 Mar 2015 16:44:22 +0000 (16:44 +0000)]
Merge "Made ProfilerStub return null instead of a dummy ScopedCallback"

9 years agoMerge "Removed view event from $wgAutopromoteOnce"
jenkins-bot [Fri, 27 Mar 2015 16:38:02 +0000 (16:38 +0000)]
Merge "Removed view event from $wgAutopromoteOnce"

9 years agoMerge "Set parameter default to array() in WebResponse::setcookie()"
jenkins-bot [Fri, 27 Mar 2015 16:33:18 +0000 (16:33 +0000)]
Merge "Set parameter default to array() in WebResponse::setcookie()"

9 years agoCorrect typo in MediaWiki:Apihelp-paraminfo-param-formatmodules
Purodha [Fri, 27 Mar 2015 00:42:33 +0000 (00:42 +0000)]
Correct typo in MediaWiki:Apihelp-paraminfo-param-formatmodules

Change-Id: I961b4a6cd7b8f9ea99fb93a2a624d45fe99501a7

9 years agoMerge "Fix TestingAccessWrapper::__call"
Ejegg [Fri, 27 Mar 2015 15:58:26 +0000 (15:58 +0000)]
Merge "Fix TestingAccessWrapper::__call"

9 years agoMerge "ApiParse: Fix parse of new section title"
jenkins-bot [Fri, 27 Mar 2015 15:54:36 +0000 (15:54 +0000)]
Merge "ApiParse: Fix parse of new section title"

9 years agoSet parameter default to array() in WebResponse::setcookie()
Thiemo Mättig [Fri, 27 Mar 2015 08:58:58 +0000 (09:58 +0100)]
Set parameter default to array() in WebResponse::setcookie()

This is a direct follow-up for the question raised in Ifab16c2.
Null is not a meaningful value in this case. As far as I can see the
only reason it was added was to make the parameter optional. Optional
array parameters are better marked with "= array()".

Change-Id: I86965d390fdb718de7fb81a9f4c48b2261c16aa9

9 years agoMerge "Remove unneeded variable assignment in Usercreate.php"
jenkins-bot [Fri, 27 Mar 2015 08:37:28 +0000 (08:37 +0000)]
Merge "Remove unneeded variable assignment in Usercreate.php"

9 years agoMade User actually use the mQuickTouched process cache
Aaron Schulz [Fri, 27 Mar 2015 05:51:13 +0000 (22:51 -0700)]
Made User actually use the mQuickTouched process cache

Change-Id: I158eae2dac16b5fdacd095fff7fb031b42804a1e

9 years agoMade user preferences load from the master by default
Aaron Schulz [Wed, 25 Mar 2015 00:30:26 +0000 (17:30 -0700)]
Made user preferences load from the master by default

* Warn when saving slave-loaded data in saveSettings()
* Respect the loading $flags for preferences/groups
* Fixed use of flags in addToDatabase()
* Made loadFromCache() protected to make this mess easier
  to reason about (no callers found)
* Added some doc comments

Bug: T92232
Change-Id: Ic1dd66063cc2f98fc03861df1c523981f846a0be

9 years agoDon't require database access for ContentHandlerTest
Kunal Mehta [Fri, 27 Mar 2015 00:00:42 +0000 (17:00 -0700)]
Don't require database access for ContentHandlerTest

We can just mark all the titles as non-existent in the LinkCache

Change-Id: Ifd6fdfd0f8318dac8af7f7509705cf30d44c8a4e