lhc/web/wiklou.git
8 years agoAdd help link for 8 more special pages
Federico Leva [Wed, 4 Mar 2015 23:58:14 +0000 (00:58 +0100)]
Add help link for 8 more special pages

* Links can now be customised on-wiki via system message:
  e928d5bdd0fbc63a951ca373aaf68bb1e6bf715c
* Most help pages chosen here are good for any MediaWiki install
  and have been imported on MediaWiki.org. Their license has been
  noted in the appropriate template, only future contributions
  will be in public domain (CC-0) unless we reach old authors.
  An update/discussion was opened at the project talk:
  https://www.mediawiki.org/wiki/Project_talk:PD_help
* The 6 pages on MediaWiki.org have been marked for translation;
  import of previous translations is ongoing. 2 pages are left on Meta
  because importing translatable pages with all translation units may
  be overkill.

Bug: T45591
Change-Id: I5dd91a0b7233556f2da06b65205fee72ea65a55f

8 years agoMerge "Allow to customise addHelpLink() target via system message"
jenkins-bot [Fri, 15 May 2015 10:42:51 +0000 (10:42 +0000)]
Merge "Allow to customise addHelpLink() target via system message"

8 years agoMerge "Remove redundant line-height declarations from elements.css"
jenkins-bot [Fri, 15 May 2015 09:23:06 +0000 (09:23 +0000)]
Merge "Remove redundant line-height declarations from elements.css"

8 years agoRemove redundant line-height declarations from elements.css
Erwin Dokter [Wed, 29 Apr 2015 12:12:53 +0000 (12:12 +0000)]
Remove redundant line-height declarations from elements.css

Elements.css declares line-height of 1.5em for certain common
elements, like ol, ul and dd. These are redundant as each skin already
declares the same line-height for the content, and all elements inherit
this line-height from the body.

At the same time, these declaration override the content line-height of
1.6em set in Vector, creating inconsistencies that cannot be 'hacked'
away. Removing these line-height declarations has no impact, other
then making the typography refresh actually work as intended.

Bug: T66653
Change-Id: I5b682a9527294e96f3999773724cbf8fb9631197

8 years agoFix name of Bakthiari language
mjbmr [Mon, 11 May 2015 17:59:29 +0000 (17:59 +0000)]
Fix name of Bakthiari language

Change-Id: I684f4e7c1b1f45bbd0a1a0a6b037a369a4276d86

8 years agoAllow to customise addHelpLink() target via system message
Federico Leva [Sat, 2 May 2015 11:37:19 +0000 (13:37 +0200)]
Allow to customise addHelpLink() target via system message

Method similar to SpecialPage::outputHeader() to avoid registering
tons of system messages and to have -summary and -helppage tidily
listed together in Special:AllMessages by default.

Bug: T45591
Change-Id: Ic849dde00be7379c1909a8486cf20f48c5aea5cf

8 years agoMerge "resourceloader: Implement ResourceLoaderRawFileModule for 'mediawiki.js'"
jenkins-bot [Thu, 14 May 2015 22:28:31 +0000 (22:28 +0000)]
Merge "resourceloader: Implement ResourceLoaderRawFileModule for 'mediawiki.js'"

8 years agoProfilerOutputStats: tweak stat key normalization
Ori Livneh [Thu, 14 May 2015 21:49:51 +0000 (14:49 -0700)]
ProfilerOutputStats: tweak stat key normalization

When we convert a profiler entry to a statsd metric key, we replace
nonalphabetic characters with slashes. When part of the key is a file path with
a leading or trailing slash, this can result in keys that look like:
'MediaWiki._srv_mediawiki_foo_.bar', which is a bit ugly. This patch trims
leading and trailing underscores from each dot-separated key segment.

Change-Id: I71172b956f5a6120a75981a15dedf372d3893b88

8 years agoresourceloader: Implement ResourceLoaderRawFileModule for 'mediawiki.js'
Timo Tijhof [Wed, 13 May 2015 18:23:26 +0000 (19:23 +0100)]
resourceloader: Implement ResourceLoaderRawFileModule for 'mediawiki.js'

When adding files to this module, they all imply a global scope.
While most files have their own closure, it is still inconsistent
with normal modules which always have a closure via mw.loader.implement.

Base modules like 'mediawiki' are lacking such a closure, thus making
it hard to share variables within the different files that make up the
module without making it a globally public.

The use case is 13203c0a2180e5, where we could expose the sha1()
library within the scope of this module only.

Change-Id: I93fcd045f47ec6a595b26f739939e1d371832ac9

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 14 May 2015 19:33:30 +0000 (21:33 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id5d8b4b7f7325a8c32f0ea33128dc49d0a180305

8 years agoApiPageSet: Indicate why a title was invalid
Brad Jorsch [Wed, 6 May 2015 19:33:37 +0000 (15:33 -0400)]
ApiPageSet: Indicate why a title was invalid

May as well.

Bug: T98198
Change-Id: Ib17088a9685c48d7db647896ecd59aced7911374

8 years agoMerge "resourceloader: Remove only=messages"
jenkins-bot [Thu, 14 May 2015 18:10:10 +0000 (18:10 +0000)]
Merge "resourceloader: Remove only=messages"

8 years agoMerge "API: Set HTMLForm when validating field in ApiOptions"
jenkins-bot [Thu, 14 May 2015 17:34:18 +0000 (17:34 +0000)]
Merge "API: Set HTMLForm when validating field in ApiOptions"

8 years agoMerge "registration: Improve docs for return value of Processor::getExtractedInfo()"
jenkins-bot [Thu, 14 May 2015 07:00:32 +0000 (07:00 +0000)]
Merge "registration: Improve docs for return value of Processor::getExtractedInfo()"

8 years agoregistration: Improve docs for return value of Processor::getExtractedInfo()
Kunal Mehta [Thu, 14 May 2015 05:28:20 +0000 (22:28 -0700)]
registration: Improve docs for return value of Processor::getExtractedInfo()

Change-Id: I0246e705134ee3545af592c06aaf6b157bc64e5f

8 years agoAdded WANObjectCache::TTL_UNCACHEABLE for uncacheable content
Aaron Schulz [Thu, 14 May 2015 03:28:16 +0000 (20:28 -0700)]
Added WANObjectCache::TTL_UNCACHEABLE for uncacheable content

Change-Id: If7b75654c91cc5762cb49d90f40e1b7ea518ebc8

8 years agoMerge "Allow for dynamic TTLs in getWithSetCallback()"
jenkins-bot [Thu, 14 May 2015 03:23:36 +0000 (03:23 +0000)]
Merge "Allow for dynamic TTLs in getWithSetCallback()"

8 years agoConsistently name the $this callback variable "$that"
Timo Tijhof [Sat, 25 Apr 2015 03:27:13 +0000 (04:27 +0100)]
Consistently name the $this callback variable "$that"

Most are already, but some had differnet names. In PHP 5.4+ this is
redundant as they inherit automatically, but we need these for PHP 5.3
compatibility. Settle on "$that" to make these easier to find.

Change-Id: I0b68b2c550fde9c2da53d844421e34b8df0c42ed

8 years agoMerge "registration: Fix having multiple callbacks for a single hook"
jenkins-bot [Wed, 13 May 2015 21:07:25 +0000 (21:07 +0000)]
Merge "registration: Fix having multiple callbacks for a single hook"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 13 May 2015 20:06:46 +0000 (22:06 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I33c7518add142280467483b7fce6c78ba4cdcdad

8 years agoregistration: Fix having multiple callbacks for a single hook
Kunal Mehta [Wed, 13 May 2015 19:30:21 +0000 (12:30 -0700)]
registration: Fix having multiple callbacks for a single hook

Bug: T98975
Change-Id: I40ff36090d18344fabdb018519209671b7883fa1

8 years agoresourceloader: Remove only=messages
Timo Tijhof [Wed, 13 May 2015 19:17:35 +0000 (20:17 +0100)]
resourceloader: Remove only=messages

This isn't needed.

* Deprecate 'modulemessages' API, return empty result and warning.
* Remove half-implemented only=templates.

Change-Id: Ia6c87d687c6670b3ebf24251572191732651e8f5

8 years agoAdd ActivityUpdateJob to autoloader
Timo Tijhof [Wed, 13 May 2015 18:23:52 +0000 (19:23 +0100)]
Add ActivityUpdateJob to autoloader

Follows-up 836ad263c. Ran generateLocalAutoload.php.

Change-Id: I12f597aa0d8100a60f2c631797a76627acbaa2ec

8 years agoMerge "objectcache: Add WANObjectCache::TTL_NONE constant for readability"
jenkins-bot [Wed, 13 May 2015 17:12:57 +0000 (17:12 +0000)]
Merge "objectcache: Add WANObjectCache::TTL_NONE constant for readability"

8 years agoAdded getDefaultInstance() return type doc
Aaron Schulz [Wed, 13 May 2015 16:55:48 +0000 (09:55 -0700)]
Added getDefaultInstance() return type doc

Change-Id: I9662738efb660f85a5c8e63c37f385d28539de75

8 years agowfBaseConvert(): Avoid PHP warning when converting zero
Kevin Israel [Wed, 13 May 2015 07:36:43 +0000 (03:36 -0400)]
wfBaseConvert(): Avoid PHP warning when converting zero

The warning occurs when gmp_init() tries to convert the empty string
that came from ltrim(). This is causing tests to fail under HHVM 3.6.1.

Follows-up 5957856c46c3.

Bug: T98882
Change-Id: Ica86c91d7897db979e09d7cfc82fb3a20b95d4ce

8 years agoobjectcache: Add WANObjectCache::TTL_NONE constant for readability
Aaron Schulz [Wed, 13 May 2015 05:33:57 +0000 (22:33 -0700)]
objectcache: Add WANObjectCache::TTL_NONE constant for readability

Change-Id: I07592ebb2794a7a8efc0fd1d718c1b5ca3d9b83f

8 years agoMerge "Create global variables related to mediawiki.ui icons"
jenkins-bot [Wed, 13 May 2015 08:42:22 +0000 (08:42 +0000)]
Merge "Create global variables related to mediawiki.ui icons"

8 years agoKSS: Make section headings links
Prateek Saxena [Wed, 13 May 2015 04:44:16 +0000 (10:14 +0530)]
KSS: Make section headings links

Change-Id: I46aec0fcd846aa40b32eee4b24852cc0ae56a35c

8 years agoAllow running code during unstrip
Jackmcbarn [Fri, 19 Dec 2014 07:05:44 +0000 (02:05 -0500)]
Allow running code during unstrip

When adding strip markers, allow closures to be passed in place of text.
The closure is then called during unstrip. Also, add a hook that runs
after unstripGeneral. This is needed for Extension:Cite's I0e136f952.

Change-Id: If83b0623671fd67e5ccc9deaaaab456a6679af8f

8 years agoMerge "Clarify Data types doc applies to API requests"
jenkins-bot [Tue, 12 May 2015 22:03:21 +0000 (22:03 +0000)]
Merge "Clarify Data types doc applies to API requests"

8 years agoMerge "Add ':' to $wgInvalidUsernameCharacters"
jenkins-bot [Tue, 12 May 2015 20:57:53 +0000 (20:57 +0000)]
Merge "Add ':' to $wgInvalidUsernameCharacters"

8 years agoAdd ':' to $wgInvalidUsernameCharacters
Kunal Mehta [Tue, 12 May 2015 00:59:07 +0000 (17:59 -0700)]
Add ':' to $wgInvalidUsernameCharacters

This will prevent the creation of new users with a colon character
in their username. Existing accounts or system users will not be affected.

Colons themselves are not an issue, however they are used as the delimiter
for namespaces and interwikis. In a global account type system where there
are wikis with multiple languages, usernames that begin with a localized
namespace prefix will be invalid on some wikis and not others, which is
problematic. Preventing the usage of colons avoids that issue entirely.

Bug: T98757
Change-Id: I3c823325e209b2c48c1eee1fbc82a130c768cd2c

8 years agoApiQuerySiteInfo: Add invalidusernamechars
Brad Jorsch [Tue, 12 May 2015 20:39:38 +0000 (16:39 -0400)]
ApiQuerySiteInfo: Add invalidusernamechars

Since T98757 is talking about changing this (whether by default or not),
we should probably make it accessible via the API.

Change-Id: I8cd08b214171866208a65181f772de9f2e315cd9

8 years agoAllow for dynamic TTLs in getWithSetCallback()
Aaron Schulz [Mon, 11 May 2015 17:03:55 +0000 (10:03 -0700)]
Allow for dynamic TTLs in getWithSetCallback()

* This gives it better parity with BagOStuff::set()
* Also updated some doc comments

Change-Id: Ib94b97715fae901bac1750656e3dc7501919d6d2

8 years agoMerge "Removed executeReadyPeriodicTasks() method"
jenkins-bot [Tue, 12 May 2015 20:03:02 +0000 (20:03 +0000)]
Merge "Removed executeReadyPeriodicTasks() method"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 12 May 2015 19:48:07 +0000 (21:48 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4516b10051ed6cec36b3628fda764390f49f5bfc

8 years agoCreate global variables related to mediawiki.ui icons
Baha Man [Tue, 12 May 2015 17:19:30 +0000 (13:19 -0400)]
Create global variables related to mediawiki.ui icons

Change-Id: I6f2e64592e8985c9c14f88b0e91df1d0314a27d0

8 years agoAdded explicit profile sections to JobRunner
Aaron Schulz [Sat, 9 May 2015 18:42:14 +0000 (11:42 -0700)]
Added explicit profile sections to JobRunner

Change-Id: Iba60204e1ab7c81686f05b36661080c000b10157

8 years agoUpdate OOjs UI to v0.11.3
James D. Forrester [Tue, 12 May 2015 12:26:13 +0000 (13:26 +0100)]
Update OOjs UI to v0.11.3

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

Change-Id: I3b1ffc8fd346bb6cc8f1029f64e4855afa1db168

8 years agoExtend mediaWiki.confirmCloseWindow to trigger it manually
Florian [Thu, 16 Apr 2015 16:29:02 +0000 (18:29 +0200)]
Extend mediaWiki.confirmCloseWindow to trigger it manually

Some extensions and/or functions doesn't reload the page to destroy a form
that can contain some user input. To use confirmCloseWindow to cover these forms,
too, we need a way to manually trigger this module and show the warning
to the user.

Bug: T94194
Change-Id: I897330bc62b9ef3bfd04f61f5c5d0744c8ec61d3

8 years agoMerge "Send job ACKs to statsd"
jenkins-bot [Tue, 12 May 2015 08:26:49 +0000 (08:26 +0000)]
Merge "Send job ACKs to statsd"

8 years agoMerge "More "check key" doc comments"
jenkins-bot [Tue, 12 May 2015 08:11:07 +0000 (08:11 +0000)]
Merge "More "check key" doc comments"

8 years agoMerge "gitignore: Add /images/cache"
jenkins-bot [Tue, 12 May 2015 07:39:52 +0000 (07:39 +0000)]
Merge "gitignore: Add /images/cache"

8 years agoMerge "Added common metadata caching to the djvu handler"
jenkins-bot [Tue, 12 May 2015 05:59:16 +0000 (05:59 +0000)]
Merge "Added common metadata caching to the djvu handler"

8 years agoMerge "jobrunner: Change logging level for STARTING messages"
jenkins-bot [Tue, 12 May 2015 03:08:25 +0000 (03:08 +0000)]
Merge "jobrunner: Change logging level for STARTING messages"

8 years agoMore "check key" doc comments
Aaron Schulz [Tue, 12 May 2015 02:15:35 +0000 (19:15 -0700)]
More "check key" doc comments

Change-Id: Ide66bc396e811776a58fd6aa7c1af2337ea185bd

8 years agogitignore: Add /images/cache
Timo Tijhof [Tue, 12 May 2015 01:45:17 +0000 (02:45 +0100)]
gitignore: Add /images/cache

This is the default directory for FileCache (as enabled with $wgUseFileCache).
Used by HTMLFileCache (article views) and ResourceFileCache (load.php).

Change-Id: I8c3ccb734268b0902b693c2c19125f7f858898f1

8 years agoresourceloader: Using file cache, prepend warnings after creating response
Timo Tijhof [Tue, 12 May 2015 01:18:31 +0000 (02:18 +0100)]
resourceloader: Using file cache, prepend warnings after creating response

Follows-up a4379d8f9e0 which broke the warning output.

Previously it was appending warnings to a non-existent "$response"
variable and then re-assigning it with the actual response, thus
never outputting this anywhere.

Change-Id: I6c53e7ccb4ae4783d496c06c7174c9d8a1a88b55

8 years agoresourceloader: Use makeComment() in tryRespondFromFileCache() for safety
Timo Tijhof [Tue, 12 May 2015 00:50:28 +0000 (01:50 +0100)]
resourceloader: Use makeComment() in tryRespondFromFileCache() for safety

Other code paths in this class already make use of this method,
but this was still embedding arbitrary strings directly, at the
risk of producting invalid CSS or invalid JavaScript.

Change-Id: Ied6c420536a3dd1ef8f3816a078705136e8475b1

8 years agoSend job ACKs to statsd
Aaron Schulz [Mon, 11 May 2015 23:55:42 +0000 (16:55 -0700)]
Send job ACKs to statsd

Change-Id: Idf6dcd6baf39484ac6fcf14465e13ae12405dd3a

8 years agoMerge "Made triggerOpportunisticLinksUpdate() jobs make use of parser cache"
jenkins-bot [Mon, 11 May 2015 20:40:18 +0000 (20:40 +0000)]
Merge "Made triggerOpportunisticLinksUpdate() jobs make use of parser cache"

8 years agoMerge "Remove conflicting parser function alias"
jenkins-bot [Mon, 11 May 2015 20:40:14 +0000 (20:40 +0000)]
Merge "Remove conflicting parser function alias"

8 years agoClarify Data types doc applies to API requests
S Page [Mon, 11 May 2015 20:36:40 +0000 (13:36 -0700)]
Clarify Data types doc applies to API requests

A minor tweak only to i18n message.

Change-Id: Ia6451f8d5b47879b63823894cb92b7b9e60b2daf

8 years agoMade triggerOpportunisticLinksUpdate() jobs make use of parser cache
Aaron Schulz [Sat, 9 May 2015 05:20:25 +0000 (22:20 -0700)]
Made triggerOpportunisticLinksUpdate() jobs make use of parser cache

* On Wikipedia, for example, these jobs are good percent of
  all refreshLinks jobs; skipping the parse step should avoid
  runner CPU overhead
* Also fixed bad TS_MW/TS_UNIX comparison
* Moved the fudge factor to a constant and raised it a bit

Bug: T98621
Change-Id: Id6d64972739df4b26847e4374f30ddcc7f93b54a

8 years agoRemove conflicting parser function alias
umherirrender [Mon, 11 May 2015 19:19:50 +0000 (21:19 +0200)]
Remove conflicting parser function alias

The alias "speciale" for parser function "special" is conflicting with
the parser function "speciale". The canonical form wins over the local
alias, so the existing alias cannot be used. Therefore removed.

Change-Id: I0fac6315384afb61c49c45b26508d4a3e1cd7b13

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 11 May 2015 19:18:17 +0000 (21:18 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I50d2f517ecb5bc99f5f6f6086273b817d937564e

8 years agoFollow-up for I68b1ae842: Deprecate $wgScriptExtension as well
Ori Livneh [Wed, 22 Apr 2015 19:03:36 +0000 (12:03 -0700)]
Follow-up for I68b1ae842: Deprecate $wgScriptExtension as well

Change-Id: I3690f78bc57030d3f1e3992554ba0ae7eb393273

8 years agoMerge "Start using the Assert helper class for checking parameters."
jenkins-bot [Mon, 11 May 2015 18:15:44 +0000 (18:15 +0000)]
Merge "Start using the Assert helper class for checking parameters."

8 years agoMerge "Update OOjs UI to v0.11.2"
jenkins-bot [Mon, 11 May 2015 18:11:41 +0000 (18:11 +0000)]
Merge "Update OOjs UI to v0.11.2"

8 years agoStart using the Assert helper class for checking parameters.
daniel [Wed, 22 Apr 2015 16:46:29 +0000 (18:46 +0200)]
Start using the Assert helper class for checking parameters.

This introduces https://github.com/wmde/Assert as a dependency,
as discussed in the RFC T91071.

This change uses assertions to check some parameters in some places,
to showcase the main intended use case for assertions in MediaWiki.

Bug: T91071
Change-Id: I93ac39b7c146f10532e37b51d973b59b9c424b2f

8 years agoUpdate OOjs UI to v0.11.2
James D. Forrester [Mon, 11 May 2015 17:30:52 +0000 (18:30 +0100)]
Update OOjs UI to v0.11.2

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

Change-Id: I0188c5b80958d9a6a3d063292df724f507b7287f

8 years agoFixed variable collision in LocalFile::saveToCache()
Aaron Schulz [Mon, 11 May 2015 17:20:20 +0000 (10:20 -0700)]
Fixed variable collision in LocalFile::saveToCache()

Bug: T98754
Change-Id: I656b0c415e1b7ec64ee6c15d9a91ebc427663009

8 years agoMerge "Remove PHP4 "support" from using constant in update.php"
jenkins-bot [Mon, 11 May 2015 16:55:50 +0000 (16:55 +0000)]
Merge "Remove PHP4 "support" from using constant in update.php"

8 years agoMerge "Converted User touched key to using the WAN cache"
jenkins-bot [Mon, 11 May 2015 16:52:48 +0000 (16:52 +0000)]
Merge "Converted User touched key to using the WAN cache"

8 years agoMerge "Include transaction details log entry for trx write time violations"
jenkins-bot [Mon, 11 May 2015 16:42:16 +0000 (16:42 +0000)]
Merge "Include transaction details log entry for trx write time violations"

8 years agoMerge "Avoid cache stampedes in ChangeTag class"
jenkins-bot [Mon, 11 May 2015 16:41:55 +0000 (16:41 +0000)]
Merge "Avoid cache stampedes in ChangeTag class"

8 years agojobrunner: Change logging level for STARTING messages
Bryan Davis [Mon, 11 May 2015 16:36:04 +0000 (10:36 -0600)]
jobrunner: Change logging level for STARTING messages

Mark debug log events describing the start of processing a job as debug
level information rather than informative.

Bug: T87521
Change-Id: I1ce3dabf4a344369fe396c5bb056ed5ed6308c87

8 years agoMerge "Converted LocalFile to using the WAN cache"
jenkins-bot [Mon, 11 May 2015 16:21:20 +0000 (16:21 +0000)]
Merge "Converted LocalFile to using the WAN cache"

8 years agoAdded common metadata caching to the djvu handler
Aaron Schulz [Sun, 10 May 2015 19:27:38 +0000 (12:27 -0700)]
Added common metadata caching to the djvu handler

* This should reduce expensive metadata fetches
  for djvu files with large (~2mb) img_metadata

Bug: T96360
Change-Id: I7273ea083f90948f8c1d8948a64929bfb759ee72

8 years agoRemove PHP4 "support" from using constant in update.php
Reedy [Mon, 11 May 2015 14:34:02 +0000 (15:34 +0100)]
Remove PHP4 "support" from using constant in update.php

Change-Id: I4743d10a3084a7dc4806d73662b19aa6751b0c18

8 years agoMerge "Unbreak --profile=text for CLI scrips"
jenkins-bot [Mon, 11 May 2015 06:19:22 +0000 (06:19 +0000)]
Merge "Unbreak --profile=text for CLI scrips"

8 years agoMerge "WebRequest::getHeader: add optional flag to get back list"
jenkins-bot [Mon, 11 May 2015 02:11:57 +0000 (02:11 +0000)]
Merge "WebRequest::getHeader: add optional flag to get back list"

8 years agoLivePreview: Process jsconfigvars
Derk-Jan Hartman [Sun, 10 May 2015 14:30:14 +0000 (16:30 +0200)]
LivePreview: Process jsconfigvars

Any jsconfigvars added by the new previewed content needs to added to
the context, so that it can be used by the modules.

Bug: T92944
Change-Id: Ib990f00ebe974008cea4dccbaa212ec20c846674

8 years agoAPI: Add output of JS config vars to action=parse
Brad Jorsch [Fri, 23 Jan 2015 23:27:11 +0000 (15:27 -0800)]
API: Add output of JS config vars to action=parse

Modules will sometimes depend on these.

Bug: T67015
Change-Id: Ida3fd5f8808202892001f66c4a534c1725e769a6

8 years agoSet isExpensiveToThumbnail for the djvu handler
Aaron Schulz [Sun, 10 May 2015 19:49:43 +0000 (12:49 -0700)]
Set isExpensiveToThumbnail for the djvu handler

* This makes FileRenderExpensive pool logic apply for large files
  to cut down on DB load from getMetaTree()

Bug: T96360
Change-Id: If892d77077607ffcaba0510355175a1e4d780ae9

8 years agoAvoid cache stampedes in ChangeTag class
Aaron Schulz [Sun, 10 May 2015 18:15:25 +0000 (11:15 -0700)]
Avoid cache stampedes in ChangeTag class

Change-Id: Ieec931c4211323ae7b838c783e45e1a83a7bb6a1

8 years agoBump ReplicatedBagOStuff @since
Aaron Schulz [Sat, 9 May 2015 18:44:29 +0000 (11:44 -0700)]
Bump ReplicatedBagOStuff @since

Removed from 1.25 with I961d642e056f3c8087e1c2155e884a5ca5fcbe51

Change-Id: I1b84a03e35c9fe7ea58ef1b80514af062e3d635a

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 9 May 2015 18:53:00 +0000 (20:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If24737f37cbf0682d7e90f300b16ee30a6316b19

8 years agoresourceloader: Use absolute file path in SpecialCharactersDataModule
Timo Tijhof [Sat, 9 May 2015 04:28:10 +0000 (05:28 +0100)]
resourceloader: Use absolute file path in SpecialCharactersDataModule

Follows-up ec2330f.

When called, it fails fails:
> file_get_contents(resources/src/mediawiki.language/specialcharacters.json):
> failed to open stream: No such file or directory

Needs to be expanded relative to $IP, just like ResourceLoaderFileModule
and others do already.

Not previously caught by unit tests because this method was never
called from any tests.

Change-Id: Id87b3de29a61039d87b630202f1f71f112cbd752

8 years agoUnbreak --profile=text for CLI scrips
Aaron Schulz [Sat, 9 May 2015 01:59:42 +0000 (18:59 -0700)]
Unbreak --profile=text for CLI scrips

* Fixes "Undefined index: threshold" and
  "Invalid argument supplied for foreach()" errors
  so that output actually can show

Change-Id: Ibf8090f265d988c58d1752319336a5146a28f4d0

8 years agoWebRequest::getHeader: add optional flag to get back list
Ori Livneh [Sat, 9 May 2015 00:42:15 +0000 (17:42 -0700)]
WebRequest::getHeader: add optional flag to get back list

* Add a stub FauxRequest::initHeaders method. This allows FauxRequest to
  use WebRequest's getHeader implemention, leading to less code duplication.
* Add an optional $flags parameter to WebRequest::getHeader. When the flag
  WebRequest::GETHEADER_LIST is set, treat the header as a comma-separated
  list of values (per RFC 2616 ยง 4.2) and return an array.
  (Initial use-case: Ibb292d241's treatment of If-None-Match header.)
* Add test.

See <http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html>.

Change-Id: I2760f57adfa7b886c84044a6e9348a47ac307229

8 years agoInclude transaction details log entry for trx write time violations
Aaron Schulz [Fri, 8 May 2015 19:08:15 +0000 (12:08 -0700)]
Include transaction details log entry for trx write time violations

* This makes it possible to see what is being done by matching
  the trx IDs of the (normally) adjacent log entries

Change-Id: I515de99acfe159856930d8e259c00eb744f43213

8 years agoConverted LocalFile to using the WAN cache
Aaron Schulz [Tue, 28 Apr 2015 00:26:58 +0000 (17:26 -0700)]
Converted LocalFile to using the WAN cache

Bug: T93141
Change-Id: Iecb182428ae0d8e7511bc28340b57f6e7042b723

8 years agoMerge "Converted Interwiki using WAN cache"
jenkins-bot [Fri, 8 May 2015 08:29:34 +0000 (08:29 +0000)]
Merge "Converted Interwiki using WAN cache"

8 years agoMerge "Log transaction that spend too much time in write queries"
jenkins-bot [Fri, 8 May 2015 08:15:57 +0000 (08:15 +0000)]
Merge "Log transaction that spend too much time in write queries"

8 years agoLog transaction that spend too much time in write queries
Aaron Schulz [Fri, 8 May 2015 00:12:09 +0000 (17:12 -0700)]
Log transaction that spend too much time in write queries

Change-Id: I9ba184601cfb1667291f7a29677cc5205344d5ad

8 years agoConverted sidebar cache to the WAN cache
Aaron Schulz [Mon, 27 Apr 2015 21:56:52 +0000 (14:56 -0700)]
Converted sidebar cache to the WAN cache

Bug: T93141
Change-Id: Id99f886c48501bbfef85cb0e7c5d2e2810a68581

8 years agoMark mw-tag-marker as bidi-embed
Amir E. Aharoni [Thu, 7 May 2015 21:35:14 +0000 (00:35 +0300)]
Mark mw-tag-marker as bidi-embed

This prevents LTR tag names from being shown in an incorrect order
in RTL wikis.

Change-Id: Id0e351105119a48e3eda62fe642d8ccc3d6ab598

8 years agoMerge "Only configure the transaction profiler if profiling is enabled"
jenkins-bot [Thu, 7 May 2015 20:05:53 +0000 (20:05 +0000)]
Merge "Only configure the transaction profiler if profiling is enabled"

8 years agoMerge "Tweaked TempFSFile::bind() param type docs"
jenkins-bot [Thu, 7 May 2015 19:55:13 +0000 (19:55 +0000)]
Merge "Tweaked TempFSFile::bind() param type docs"

8 years agoMerge "Reduce chunk size in doBatchPush for redis"
jenkins-bot [Thu, 7 May 2015 19:43:02 +0000 (19:43 +0000)]
Merge "Reduce chunk size in doBatchPush for redis"

8 years agoMerge "Added more lockTSE comments to getWithSetCallback()"
jenkins-bot [Thu, 7 May 2015 19:42:40 +0000 (19:42 +0000)]
Merge "Added more lockTSE comments to getWithSetCallback()"

8 years agoMerge "Converted LocalRepo to using the WAN cache"
jenkins-bot [Thu, 7 May 2015 19:39:43 +0000 (19:39 +0000)]
Merge "Converted LocalRepo to using the WAN cache"

8 years agoMerge "Converted ChangeTags to using the WAN cache"
jenkins-bot [Thu, 7 May 2015 19:30:24 +0000 (19:30 +0000)]
Merge "Converted ChangeTags to using the WAN cache"

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Thu, 7 May 2015 18:39:24 +0000 (18:39 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 7 May 2015 18:29:26 +0000 (20:29 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia3e8886d116683e83261c5ddd373787654239b73

8 years agoRemoved unused variable in doFlushCaches()
Aaron Schulz [Thu, 7 May 2015 03:29:51 +0000 (20:29 -0700)]
Removed unused variable in doFlushCaches()

Change-Id: I599fc2e8575cf5e8242bcc15be93e54b74ede435

8 years agoApiHelp: Fix undefined array index reference
Brad Jorsch [Thu, 7 May 2015 16:21:27 +0000 (12:21 -0400)]
ApiHelp: Fix undefined array index reference

Follows up I0219689.

Change-Id: I833d8eab49a7093872a66c3bb0d314f6c7adb98c

8 years agoMerge "ApiQueryAllUsers: Set 'array' type on result arrays"
jenkins-bot [Thu, 7 May 2015 16:07:10 +0000 (16:07 +0000)]
Merge "ApiQueryAllUsers: Set 'array' type on result arrays"