lhc/web/wiklou.git
8 years agoMerge "Enforce MW_NO_SESSION, add MW_NO_SESSION_HANDLER"
jenkins-bot [Mon, 22 Feb 2016 23:49:12 +0000 (23:49 +0000)]
Merge "Enforce MW_NO_SESSION, add MW_NO_SESSION_HANDLER"

8 years agobuild: Update grunt-contrib-jshint from 0.12.0 to 1.0.0
Paladox [Mon, 22 Feb 2016 21:48:33 +0000 (21:48 +0000)]
build: Update grunt-contrib-jshint from 0.12.0 to 1.0.0

Changelog at
https://github.com/gruntjs/grunt-contrib-jshint/blob/v1.0.0/CHANGELOG

This release includes a fix to the checker because sometimes it would
not show where the error was coming from.

Change-Id: Ia2e7d6520b760bdc80f7e24051ec578954aa0706

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 22 Feb 2016 20:24:10 +0000 (21:24 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I2d18d11d274f565e92623563b5f0550a5ed527c1

8 years agoFix function call casing
Reedy [Sat, 20 Feb 2016 20:20:37 +0000 (20:20 +0000)]
Fix function call casing

Change-Id: I20600c865b9f239ac281a1f8c5776ad4dbec4359

8 years agoMerge "Fix session store logging"
jenkins-bot [Mon, 22 Feb 2016 17:28:35 +0000 (17:28 +0000)]
Merge "Fix session store logging"

8 years agoMerge "Use hex2bin() instead of pack()"
jenkins-bot [Mon, 22 Feb 2016 17:18:00 +0000 (17:18 +0000)]
Merge "Use hex2bin() instead of pack()"

8 years agoEnforce MW_NO_SESSION, add MW_NO_SESSION_HANDLER
Brad Jorsch [Thu, 18 Feb 2016 20:56:40 +0000 (15:56 -0500)]
Enforce MW_NO_SESSION, add MW_NO_SESSION_HANDLER

When an entry point specifies MW_NO_SESSION, actually enforce that by
having both SessionManager and PHP's session handling (session_start()
and friends) throw exceptions.

If an entry point needs the old behavior of using PHP's default session
handling (as defined in php.ini), it should define
MW_NO_SESSION_HANDLER instead of or in addition to MW_NO_SESSION.

This also makes PHPSessionHandler be installed in CLI mode, where it
wasn't installed before.

Bug: T127233
Change-Id: I2a3db06ee8e44a044096c57a819b5fd5e51c5c5c

8 years agoFix session store logging
Brad Jorsch [Mon, 22 Feb 2016 14:01:25 +0000 (09:01 -0500)]
Fix session store logging

Two things were wrong here:
1. SessionManager shouldn't override the configured logger of the
   underlying store.
2. CachedBagOStuff shouldn't override the configured logger of the
   backend store on construction.

Change-Id: I24ed5a81d5b238a42934a7890dd8d0a9f9bb3b6f

8 years agoMerge "Remove some unused variables"
jenkins-bot [Mon, 22 Feb 2016 17:03:23 +0000 (17:03 +0000)]
Merge "Remove some unused variables"

8 years agoMerge "mw.Title/NamespaceInputWidget: Use wgNamespaceIds for namespace constants"
jenkins-bot [Mon, 22 Feb 2016 15:51:02 +0000 (15:51 +0000)]
Merge "mw.Title/NamespaceInputWidget: Use wgNamespaceIds for namespace constants"

8 years agoMerge "Tidy: <source> and <track> are empty elements"
Brion VIBBER [Mon, 22 Feb 2016 15:24:23 +0000 (15:24 +0000)]
Merge "Tidy: <source> and <track> are empty elements"

8 years agoFixed Selenium tests by removing skins not installed by default
Željko Filipin [Tue, 16 Feb 2016 11:27:40 +0000 (12:27 +0100)]
Fixed Selenium tests by removing skins not installed by default

Looks like the tests were developed targeting
en.wikipedia.beta.wmflabs.org that has 4 skins by default. The commit
removes checks for all skins but Vector, which is installed by default. (At least in
my MediaWiki-Vagrant installation.)

Bug: T94150
Change-Id: I68f864bd194dbb251acab3d94699f1e701300ab2

8 years agomw.Title/NamespaceInputWidget: Use wgNamespaceIds for namespace constants
Ed Sanders [Thu, 18 Feb 2016 11:32:11 +0000 (11:32 +0000)]
mw.Title/NamespaceInputWidget: Use wgNamespaceIds for namespace constants

Avoids duplication of numerical constants.

Fix instance of variable changing meaning (ns = ns.toLowerString()).

Change-Id: I0e21c51d0e1bdf8340d5d7c927cee7619171e14b

8 years agoMerge "Deprecate PrefixSearchBackend"
jenkins-bot [Mon, 22 Feb 2016 10:01:07 +0000 (10:01 +0000)]
Merge "Deprecate PrefixSearchBackend"

8 years agoMerge "Don't URL encode titles when revdeling from Special:Undelete"
jenkins-bot [Mon, 22 Feb 2016 01:12:39 +0000 (01:12 +0000)]
Merge "Don't URL encode titles when revdeling from Special:Undelete"

8 years agoMatch html5 unquoted attribute parsing
Arlo Breault [Wed, 5 Aug 2015 18:40:02 +0000 (11:40 -0700)]
Match html5 unquoted attribute parsing

 * Brings us closer to the html5 attribute parsing algorithm described
   in http://www.w3.org/TR/html5/syntax.html#before-attribute-value-state

 * There's a similar patch for the Parsoid in,
   I2160a23b2a3c914eb369347bbf5d58328440041d

 * The spec says <div class=  style="123">hi</div> should parse as
   <div class="style=\"123\"">hi</div>, which it now does, whereas it
   used to yield <div class="" style="123">hi</div>.

 * Merge with caution. This is going to break pages like,
   frwikisource/La_Mirlitantouille_(Lenotre)?oldid=4669681

Bug: T108134
Change-Id: Ic2fc1b573a55a847e6c05707678b58c1189ecc52

8 years agoMerge "Compress PNGs with zopflipng"
jenkins-bot [Sun, 21 Feb 2016 21:11:19 +0000 (21:11 +0000)]
Merge "Compress PNGs with zopflipng"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 21 Feb 2016 20:57:15 +0000 (21:57 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I9d1b78ddb3fa02956e4b01c137691cf6f290b958

8 years agoDon't URL encode titles when revdeling from Special:Undelete
Luke Faraone [Sun, 21 Feb 2016 03:39:41 +0000 (03:39 +0000)]
Don't URL encode titles when revdeling from Special:Undelete

URL encoding is here handled by getFullURL so calling wfUrlencode resulted in
double-encoding.

Bug: T127091
Change-Id: Ibc32afb80bd220b87d2c4a816398cc10345e7ac4

8 years agoCompress PNGs with zopflipng
Ori Livneh [Sun, 21 Feb 2016 04:45:57 +0000 (04:45 +0000)]
Compress PNGs with zopflipng

Zopfli is the most efficient DEFLATE compression algorithm, trading run-time
performance for file sizes that are typically 3-8% smaller than those produced
by zlib with the maximum compression setting. Its output is Deflate-compatible,
so no specialized decoder is needed.

This change was created by running zopflipng against all the PNG files in this
repository. The exact invocation was:

  git ls-files --exclude-per-directory=.gitignore -- '*.png' \|
    parallel zopflipng -m -y {} {} \;

Files which zopflipng was not able to compress more efficiently were left unmodified.

Bug: T127608
Change-Id: Ia9c70cf35da489985af39df1f8b58469eb4813fd

8 years agoTidy: <source> and <track> are empty elements
Derk-Jan Hartman [Mon, 4 Jan 2016 14:10:58 +0000 (06:10 -0800)]
Tidy: <source> and <track> are empty elements

Seems these got accidently added as inline items, even though they
should be and are output as empty elements. This should correct that.

Bug: T122787
Change-Id: I6e75529c9d349050479c1b7ad758320d1e948e78

8 years agoMerge "Add --wait option for runJobs.php"
jenkins-bot [Sun, 21 Feb 2016 17:07:15 +0000 (17:07 +0000)]
Merge "Add --wait option for runJobs.php"

8 years agoMerge "Document memory-limit as a possible exit reason"
jenkins-bot [Sun, 21 Feb 2016 17:07:11 +0000 (17:07 +0000)]
Merge "Document memory-limit as a possible exit reason"

8 years agoAdd --wait option for runJobs.php
Niklas Laxström [Sat, 20 Feb 2016 20:22:58 +0000 (21:22 +0100)]
Add --wait option for runJobs.php

It is now very easy to implement a simple low delay job runner:

while true; do php runJobs.php --wait; sleep 1; done;

Change-Id: I50cf00aed4b15d90384a2cc12bddd64d96d5a1ad

8 years agoMerge "CatMembChange use timestamp from revision where possible"
jenkins-bot [Sun, 21 Feb 2016 06:31:18 +0000 (06:31 +0000)]
Merge "CatMembChange use timestamp from revision where possible"

8 years agoMerge "resourceloader: Add content hash to static debug urls"
jenkins-bot [Sun, 21 Feb 2016 02:40:28 +0000 (02:40 +0000)]
Merge "resourceloader: Add content hash to static debug urls"

8 years agoresourceloader: Add content hash to static debug urls
Timo Tijhof [Fri, 12 Feb 2016 23:33:45 +0000 (00:33 +0100)]
resourceloader: Add content hash to static debug urls

This way, they automatically bypass any stale client or server cache.

Remove an old wfExpandUrl() call that would interfere with
transformResourcePath()'s ability to recognise the path.

Expanding the url there wasn't needed anyway. Whether it's on a separate host
(eg. bits.wikimedia.org), or path-absolute, either way works as-is.

Bug: T90983
Change-Id: I64eb3291adcfc3733ef96690399c09c06e19b3aa

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sat, 20 Feb 2016 21:04:00 +0000 (21:04 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agomediawiki.api.options: Use formatversion=2 for API requests
Fomafix [Thu, 11 Feb 2016 10:37:05 +0000 (10:37 +0000)]
mediawiki.api.options: Use formatversion=2 for API requests

The format of the JSON response does not change.
But the request is different so the test also have to be updated.

Change-Id: I391a221f81fd92731c331363a8202c21d6b933b5

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 20 Feb 2016 20:46:29 +0000 (21:46 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I80bb2ffabf103ac061320924ff1bee7f6c13769c

8 years agoDocument memory-limit as a possible exit reason
Niklas Laxström [Sat, 20 Feb 2016 20:22:29 +0000 (21:22 +0100)]
Document memory-limit as a possible exit reason

Change-Id: I96748cd8397969447bd2315f0e6b6e7989ddfc4f

8 years agoRemove some unused variables
Reedy [Sat, 20 Feb 2016 20:22:56 +0000 (20:22 +0000)]
Remove some unused variables

Change-Id: Ia3a290555f06c564c063591710380367a04cb1cc

8 years agoUse hex2bin() instead of pack()
Kevin Israel [Sat, 20 Feb 2016 01:43:21 +0000 (20:43 -0500)]
Use hex2bin() instead of pack()

This function was added in PHP 5.4.0 and can be used now that MediaWiki
only works with PHP 5.5.9 or higher.

Also fixed a bug in ApiQueryCategoryMembers::validateHexSortkey() that
allowed a single line feed at the end of the string to pass.

Change-Id: I5b577e7dcc5fb6a06ab550429aae657dbcc79083

8 years agoDeprecate PrefixSearchBackend
Stanislav Malyshev [Fri, 19 Feb 2016 23:30:23 +0000 (15:30 -0800)]
Deprecate PrefixSearchBackend

Change-Id: I9a8d3113f0428294db847638365fb0233c93d9ac

8 years agoMerge "mw.widgets.CalendarWidget: Lazy-initialize calendar buttons too"
jenkins-bot [Fri, 19 Feb 2016 23:21:28 +0000 (23:21 +0000)]
Merge "mw.widgets.CalendarWidget: Lazy-initialize calendar buttons too"

8 years agoMerge "mw.widgets.DateInputWidget, CalendarWidget: Lazy-initialize calendar when...
jenkins-bot [Fri, 19 Feb 2016 23:19:27 +0000 (23:19 +0000)]
Merge "mw.widgets.DateInputWidget, CalendarWidget: Lazy-initialize calendar when first shown"

8 years agoMerge "mw.widgets.DateInputWidget: Don't construct moment() objects when not needed"
jenkins-bot [Fri, 19 Feb 2016 23:06:01 +0000 (23:06 +0000)]
Merge "mw.widgets.DateInputWidget: Don't construct moment() objects when not needed"

8 years agomw.widgets.CalendarWidget: Lazy-initialize calendar buttons too
Bartosz Dziewoński [Fri, 19 Feb 2016 21:51:43 +0000 (22:51 +0100)]
mw.widgets.CalendarWidget: Lazy-initialize calendar buttons too

Bug: T126788
Change-Id: I9b0e67ea5b9854745928e3c63e73d701c6a83daf

8 years agomw.widgets.DateInputWidget, CalendarWidget: Lazy-initialize calendar when first shown
Bartosz Dziewoński [Fri, 19 Feb 2016 21:44:22 +0000 (22:44 +0100)]
mw.widgets.DateInputWidget, CalendarWidget: Lazy-initialize calendar when first shown

Bug: T126788
Change-Id: I469cd7dd77108435459b0f1feba953febd82e91b

8 years agomw.widgets.DateInputWidget: Don't construct moment() objects when not needed
Bartosz Dziewoński [Fri, 19 Feb 2016 20:51:44 +0000 (21:51 +0100)]
mw.widgets.DateInputWidget: Don't construct moment() objects when not needed

Fixed a typo too.

Bug: T126788
Change-Id: I3b2dac752a43945e5525a8ea9349a4b46a7549b2

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 19 Feb 2016 20:49:58 +0000 (21:49 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I72d9974730d1ae1dfbd1b02968a9e1dfab71b525

8 years agoFollow-up 6281b0a: LookupElement is still not in core
James D. Forrester [Fri, 19 Feb 2016 19:53:26 +0000 (11:53 -0800)]
Follow-up 6281b0a: LookupElement is still not in core

Change-Id: Ie5300ae042d31a64d2b5d40bcf289f4474d3f898

8 years agoAlign mixin whitespace to CSS/Less coding guidelines
Volker E [Wed, 10 Feb 2016 00:55:30 +0000 (16:55 -0800)]
Align mixin whitespace to CSS/Less coding guidelines

Aligning mixin whitespace to CSS/Less coding guidelines. Also fix some minor
inconsistencies and add browser support comments.

Change-Id: I50841e6062e59513def49719dc7a04956002de0e

8 years agoMerge "Resources: Narrow down dependencies on 'oojs-ui' to the smaller modules"
jenkins-bot [Fri, 19 Feb 2016 19:19:34 +0000 (19:19 +0000)]
Merge "Resources: Narrow down dependencies on 'oojs-ui' to the smaller modules"

8 years agoResources: Narrow down dependencies on 'oojs-ui' to the smaller modules
Bartosz Dziewoński [Wed, 3 Feb 2016 19:25:28 +0000 (20:25 +0100)]
Resources: Narrow down dependencies on 'oojs-ui' to the smaller modules

I wasn't reading through them very carefully, so it's possible
that some of the 'oojs-ui-widgets' could be narrowed down further
to just 'oojs-ui-core', but this is good enough for me. At least
we're no longer loading toolbars everywhere.

Change-Id: I58799e22f9c0a2f78c1b4a02c4b7af576157883a

8 years agoParsertests: Fix the video parsertests to run using phpunit
Derk-Jan Hartman [Fri, 12 Feb 2016 15:31:58 +0000 (16:31 +0100)]
Parsertests: Fix the video parsertests to run using phpunit

Bug: T126723
Change-Id: Ib3777413e1f86ddca9e460b41a8e3ef0eb8fb7cc

8 years agoUpdate comments about language codes
Fomafix [Fri, 19 Feb 2016 07:31:51 +0000 (07:31 +0000)]
Update comments about language codes

* RFC 3066 is obsoleted by RFC 4646.
* RFC 4646 is obsoleted by RFC 5646.
* All are also known as BCP 47.
* Language codes must treated as case insensitive.
* There exist conventions for the capitalization of some of the subtags.
* Write a space between BCP and 47 in comments.
* http://www.adobe.com/devnet/xmp/pdfs/XMPSpecificationPart1.pdf is not available.
* https://wwwimages2.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMP%20SDK%20Release%20cc-2014-12/XMPSpecificationPart1.pdf
  is the new position.

Change-Id: I91e305fd5754cf4dedf8fd7460f7d3375f792c89

8 years agoEditPage: Style anonymous editor warning as a warningbox for consistency
jdlrobson [Fri, 19 Feb 2016 00:28:36 +0000 (16:28 -0800)]
EditPage: Style anonymous editor warning as a warningbox for consistency

Most projects override this anyway, but for default installs, let's
be consistent with other warning messages so it's clearer what is
going on.

Bug: T127403
Change-Id: I22c51a46a249247abccda709d74356e8e31a19a8

8 years agoMerge "rc_old/new_len null for CategoryMembership RC change"
jenkins-bot [Thu, 18 Feb 2016 23:45:50 +0000 (23:45 +0000)]
Merge "rc_old/new_len null for CategoryMembership RC change"

8 years agoMimeMagic: Recognise .htc as text/x-component
Timo Tijhof [Tue, 16 Feb 2016 17:44:19 +0000 (17:44 +0000)]
MimeMagic: Recognise .htc as text/x-component

Matches behaviour of nginx:
https://github.com/wikimedia/operations-debs-nginx/blob/be600c8b/debian/conf/mime.types#L15
>  text/x-component                      htc;

Without this, wmfstatic fails to serve "csshover.min.htc".

Bug: T99096
Change-Id: I90c546ff5204ddd9ffa99fdaebee78c7856c32ed

8 years agoMerge "Timing: Fix flaky TimingTest test"
jenkins-bot [Thu, 18 Feb 2016 21:18:23 +0000 (21:18 +0000)]
Merge "Timing: Fix flaky TimingTest test"

8 years agoTiming: Fix flaky TimingTest test
Timo Tijhof [Thu, 18 Feb 2016 21:06:04 +0000 (21:06 +0000)]
Timing: Fix flaky TimingTest test

> 1) TimingTest::testMark
> Failed asserting that 1455828402.4503 is greater than 1455828402.4503.

Use usleep(100), similar to the other tests already there.

Change-Id: Ic45c99b7e928df397809d872ab8e41ada6ecf1e7

8 years agoMerge "Minor code clean up in SpecialBooksources"
jenkins-bot [Thu, 18 Feb 2016 21:04:06 +0000 (21:04 +0000)]
Merge "Minor code clean up in SpecialBooksources"

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Thu, 18 Feb 2016 20:57:11 +0000 (20:57 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoMerge "Stop doing $that = $this in includes/specials"
jenkins-bot [Thu, 18 Feb 2016 20:57:06 +0000 (20:57 +0000)]
Merge "Stop doing $that = $this in includes/specials"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 18 Feb 2016 20:52:46 +0000 (21:52 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I3dece5b748fbe9b4c57cbf823c60f8464ccf8de3

8 years agoDon't send RC_CATEGORIZE events to the IRC feed
Kunal Mehta [Thu, 18 Feb 2016 20:02:31 +0000 (12:02 -0800)]
Don't send RC_CATEGORIZE events to the IRC feed

Bug: T127360
Change-Id: I21e4c0edf25fc0b7f16ef3029de879d3b7a2923d

8 years agoMerge "feedback: Update Phabricator URL broken by upgrade"
jenkins-bot [Thu, 18 Feb 2016 19:36:04 +0000 (19:36 +0000)]
Merge "feedback: Update Phabricator URL broken by upgrade"

8 years agoMerge "Changed 'expiry' to American English 'expiration' in en.json"
jenkins-bot [Thu, 18 Feb 2016 19:34:26 +0000 (19:34 +0000)]
Merge "Changed 'expiry' to American English 'expiration' in en.json"

8 years agoMerge "SessionManager: Autocreate should use READ_LATEST when necessary"
jenkins-bot [Thu, 18 Feb 2016 19:23:28 +0000 (19:23 +0000)]
Merge "SessionManager: Autocreate should use READ_LATEST when necessary"

8 years agofeedback: Update Phabricator URL broken by upgrade
James D. Forrester [Thu, 18 Feb 2016 19:23:04 +0000 (11:23 -0800)]
feedback: Update Phabricator URL broken by upgrade

Change-Id: I4e52476b386cc0c196cdb7ca8d1ed98a4d4889da

8 years agoChanged 'expiry' to American English 'expiration' in en.json
Krzysztof Zbudniewek [Thu, 7 Jan 2016 17:32:58 +0000 (18:32 +0100)]
Changed 'expiry' to American English 'expiration' in en.json

Added British 'expiry' strings to en-gb.json.

https://translatewiki.net/wiki/Thread:Support/British_English_in_Mediawiki_messages

Change-Id: I3913449fc697770122ce01c1733f15ee3a7976de

8 years agoMerge "registration: Avoid double slashes in localBasePath"
jenkins-bot [Thu, 18 Feb 2016 18:48:07 +0000 (18:48 +0000)]
Merge "registration: Avoid double slashes in localBasePath"

8 years agoMerge "ApiQueryWatchlist: wlshow=unread should filter revisions, not pages"
jenkins-bot [Thu, 18 Feb 2016 18:40:19 +0000 (18:40 +0000)]
Merge "ApiQueryWatchlist: wlshow=unread should filter revisions, not pages"

8 years agoregistration: Avoid double slashes in localBasePath
Timo Tijhof [Tue, 16 Feb 2016 20:39:34 +0000 (20:39 +0000)]
registration: Avoid double slashes in localBasePath

Noticed it in APC usage for ResourceLoader that various keys from
FileContentsHasher contain double slashes. All from extensions that
use the `"localBasePath": ""` trick in extension.json (e.g. Citoid).

Change-Id: I5bac1e2e05e063aa7ff251ce7ffaa965a3451db9

8 years agoMerge "Allow auto suggestion for subpages of Special:BotPasswords"
jenkins-bot [Thu, 18 Feb 2016 18:17:36 +0000 (18:17 +0000)]
Merge "Allow auto suggestion for subpages of Special:BotPasswords"

8 years agoTitle.php: Support DB language in getPageViewLanguage()
Fomafix [Wed, 17 Feb 2016 05:27:49 +0000 (05:27 +0000)]
Title.php: Support DB language in getPageViewLanguage()

If a page language in database is set then use the current preferred variant
of this language.

Bug: T117667
Change-Id: Idfe1165346ae0068a4b73de441dc9dfa107b8e8b

8 years agoAllow auto suggestion for subpages of Special:BotPasswords
umherirrender [Sat, 6 Feb 2016 21:21:18 +0000 (22:21 +0100)]
Allow auto suggestion for subpages of Special:BotPasswords

The autocomplete search allows special pages to define the list of
subpages to be excepted. Fill up the function to show auto suggestion
for subpages of Special:BotPasswords

Change-Id: I8e4037f058ac2f65b12c4bcad81b4847c408bcce

8 years agoMinor code clean up in SpecialBooksources
Timo Tijhof [Mon, 8 Jun 2015 14:15:18 +0000 (15:15 +0100)]
Minor code clean up in SpecialBooksources

Change-Id: Ife378fe87c237123c299ded9a79286abeb8fa34b

8 years agoMerge "Do not unauthenticate if autocreation fails due to a race"
jenkins-bot [Thu, 18 Feb 2016 16:51:52 +0000 (16:51 +0000)]
Merge "Do not unauthenticate if autocreation fails due to a race"

8 years agoSessionManager: Autocreate should use READ_LATEST when necessary
Brad Jorsch [Thu, 18 Feb 2016 16:13:00 +0000 (11:13 -0500)]
SessionManager: Autocreate should use READ_LATEST when necessary

If we failed to fetch the user ID using the default flags but succeeded
with READ_LATEST, we should also be passing READ_LATEST to
$user->loadFromId().

Change-Id: If8fc332810c2703773a153760ad076c398a84e4e

8 years agorc_old/new_len null for CategoryMembership RC change
addshore [Wed, 10 Feb 2016 09:38:41 +0000 (09:38 +0000)]
rc_old/new_len null for CategoryMembership RC change

This will mean that EnhancedChangesList does not
do odd things.
Log changes also have this set to null

This also adds a tiny bit of cleanup for the past which
could be removed in a month or 2.
This will fix all current RC entries as well as new ones.
Once no old RC entires for CategoryMembership changes exist
we can kill the type check.

Bug: T126428
Change-Id: Ib19819373af70e10b0c750ffdb06156764b7fa3d

8 years agoMerge "database: Add extra sanity check to selectFieldValues()"
jenkins-bot [Thu, 18 Feb 2016 14:46:29 +0000 (14:46 +0000)]
Merge "database: Add extra sanity check to selectFieldValues()"

8 years agodatabase: Add extra sanity check to selectFieldValues()
Aaron Schulz [Tue, 16 Feb 2016 21:42:34 +0000 (13:42 -0800)]
database: Add extra sanity check to selectFieldValues()

Change-Id: Ia2788ea84bd099550655930188365984e5274678

8 years agoMerge "Avoid master queries in Title::getLinksFrom()"
jenkins-bot [Thu, 18 Feb 2016 14:31:18 +0000 (14:31 +0000)]
Merge "Avoid master queries in Title::getLinksFrom()"

8 years agoMake destination URL of a page save configurable
Ebrahim Byagowi [Wed, 27 Jan 2016 23:31:31 +0000 (23:31 +0000)]
Make destination URL of a page save configurable

With this, if a gadget put a hidden input named "wpExtraQueryRedirect",
can guide MediaWiki to keep that extra query parameter even after the
save of the page.

Bug: T124986
Change-Id: Ie45d6d80e83298e4c349f1e2dedd4eaa66b7697a

8 years agoCatMembChange use timestamp from revision where possible
addshore [Thu, 18 Feb 2016 10:45:04 +0000 (10:45 +0000)]
CatMembChange use timestamp from revision where possible

This should mean that where possible the timestamp for
the category membership change will be equal to that of
the time of the revision that caused the change.

The IDs still may have space between them.

Bug: T126048
Change-Id: Ia270451ccb02f2fca979ccb1fcefa5bdb4a96722

8 years agoMerge "CSSMin: Make isRemoteUrl and isLocalUrl really private, now that we can in...
jenkins-bot [Thu, 18 Feb 2016 08:21:35 +0000 (08:21 +0000)]
Merge "CSSMin: Make isRemoteUrl and isLocalUrl really private, now that we can in PHP 5.5"

8 years agoDo not unauthenticate if autocreation fails due to a race
Gergő Tisza [Thu, 18 Feb 2016 02:10:31 +0000 (02:10 +0000)]
Do not unauthenticate if autocreation fails due to a race

Bug: T70012
Change-Id: I523ee94744ac943ede78af59ab381b65ae26e672

8 years agoAvoid parsing HTML when creating <input> nodes
Bartosz Dziewoński [Thu, 18 Feb 2016 02:07:08 +0000 (03:07 +0100)]
Avoid parsing HTML when creating <input> nodes

We used to create them like $( '<input type="checkbox" />' ), which
actually does HTML parsing under the hood, because on IE 8 and lower
trying to change the 'type' of an <input> node throws an exception.
But we dropped support for IE 8 recently and no longer need to do that.

Upstream change for OOjs UI is I166f5ab0dce5ab47dc6a1f4e2e5ad012635911ed.

Find:         \$\( '<input type="(\w+)" ?/?>' \)
Replace with: $( '<input>' ).attr( 'type', '\1' )

Change-Id: Ie86f8917e8ce100de22006516daa542ad178aab6

8 years agoMerge "Changed linking of articles to Linker::link in ChangeList"
jenkins-bot [Thu, 18 Feb 2016 00:12:40 +0000 (00:12 +0000)]
Merge "Changed linking of articles to Linker::link in ChangeList"

8 years agoChanged linking of articles to Linker::link in ChangeList
WMDE-Fisch [Wed, 17 Feb 2016 17:11:26 +0000 (18:11 +0100)]
Changed linking of articles to Linker::link in ChangeList

When non-existent categories appear in the changelist
they wont get marked reddue to the use of
Linker::linkKnown.

Bug: T126854
Change-Id: I3dc9746c0fe55e81ffd2df1c04ade6950efcc020

8 years agoRemove superflous `background-size` property & make use of mixing
Volker E [Wed, 30 Dec 2015 01:32:12 +0000 (02:32 +0100)]
Remove superflous `background-size` property & make use of mixing

Removing superflous `background-size` property, which is overwritten
few lines below and make use of correspondent mixin in `:checked`
state.

Change-Id: I4f24c84c2f93bd85f495ff74ae21fbc210c18f57

8 years agoStop doing $that = $this in includes/specials
Ricordisamoa [Thu, 11 Feb 2016 08:37:23 +0000 (09:37 +0100)]
Stop doing $that = $this in includes/specials

Closures support $this as of PHP 5.4

Change-Id: I452761a6189f50f93158f6de063d31c029bc2ed3

8 years agoMerge "Fix unmatched @codingStandardsIgnore in parser folder"
jenkins-bot [Wed, 17 Feb 2016 21:54:20 +0000 (21:54 +0000)]
Merge "Fix unmatched @codingStandardsIgnore in parser folder"

8 years agoMerge "ExportTest: Simplify code that failed on 5.3 because of reserved word 'namespace'"
jenkins-bot [Wed, 17 Feb 2016 21:40:59 +0000 (21:40 +0000)]
Merge "ExportTest: Simplify code that failed on 5.3 because of reserved word 'namespace'"

8 years agoMerge "Use short array for generator output"
jenkins-bot [Wed, 17 Feb 2016 21:38:50 +0000 (21:38 +0000)]
Merge "Use short array for generator output"

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 17 Feb 2016 21:25:26 +0000 (21:25 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 17 Feb 2016 21:24:10 +0000 (22:24 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic6d74b8085cf4b940f82bcf03a49b207e319c965

8 years agoExportTest: Simplify code that failed on 5.3 because of reserved word 'namespace'
Bartosz Dziewoński [Wed, 17 Feb 2016 19:39:46 +0000 (20:39 +0100)]
ExportTest: Simplify code that failed on 5.3 because of reserved word 'namespace'

Reserved words, like 'namespace', are perfectly fine now to use as object
keys, but it seems they used to not be in PHP 5.3, necessitating workarounds.

Change-Id: Iecb79fda19803461dfb3800b8af4d31e971551b8

8 years agoMerge "Remove comments about isset( $string['foo'] ) being true on PHP 5.3"
jenkins-bot [Wed, 17 Feb 2016 21:23:26 +0000 (21:23 +0000)]
Merge "Remove comments about isset( $string['foo'] ) being true on PHP 5.3"

8 years agoUse short array for generator output
umherirrender [Wed, 17 Feb 2016 21:08:07 +0000 (22:08 +0100)]
Use short array for generator output

The AutoloadGenerator and LocalSettingsGenerator should generate short
array syntax

Change-Id: I5772640556fd6274db0d522341a98c0acfe5794d

8 years agoFix unmatched @codingStandardsIgnore in parser folder
umherirrender [Wed, 17 Feb 2016 19:57:37 +0000 (20:57 +0100)]
Fix unmatched @codingStandardsIgnore in parser folder

Fix outstanding phpcs errors

Change-Id: I7b857be88354f2ffa27d76406253ec9e9710b91d

8 years agoRemove comments about isset( $string['foo'] ) being true on PHP 5.3
Bartosz Dziewoński [Wed, 17 Feb 2016 19:27:39 +0000 (20:27 +0100)]
Remove comments about isset( $string['foo'] ) being true on PHP 5.3

...but don't remove the code. Calling isset( $bar['foo'] ) without checking
that $bar is an array seems not very nice to me.

Change-Id: I822c925b6f36bf34902f8075e54f71fe4f6d2566

8 years agoLinkFilterTests: Uncomment test cases that should pass on PHP 5.5
Bartosz Dziewoński [Wed, 17 Feb 2016 19:30:22 +0000 (20:30 +0100)]
LinkFilterTests: Uncomment test cases that should pass on PHP 5.5

Change-Id: If62f964c3a8e0eaaab6e7193d426cc4ddaa47ade

8 years agoMerge "Don't show patrol links if RCP/NPP are disabled, but file patrol isn't"
jenkins-bot [Wed, 17 Feb 2016 16:31:47 +0000 (16:31 +0000)]
Merge "Don't show patrol links if RCP/NPP are disabled, but file patrol isn't"

8 years agoMerge "build: Update mediawiki-codesniffer to 0.6.0, add "composer fix""
jenkins-bot [Wed, 17 Feb 2016 15:54:36 +0000 (15:54 +0000)]
Merge "build: Update mediawiki-codesniffer to 0.6.0, add "composer fix""

8 years agoApiQueryWatchlist: wlshow=unread should filter revisions, not pages
Brad Jorsch [Thu, 4 Feb 2016 14:42:57 +0000 (09:42 -0500)]
ApiQueryWatchlist: wlshow=unread should filter revisions, not pages

It's currently showing all relevant revisions from pages with at least
one unread revision, where it would be more sensible for it to show just
the unread revisions. Something similar applies to wlshow=!unread.

Bug: T125729
Change-Id: I552901efb98081af9a1a677f4403a2a1a73bd94f

8 years agoCSSMin: Make isRemoteUrl and isLocalUrl really private, now that we can in PHP 5.5
Bartosz Dziewoński [Wed, 10 Feb 2016 18:37:07 +0000 (19:37 +0100)]
CSSMin: Make isRemoteUrl and isLocalUrl really private, now that we can in PHP 5.5

Well, protected, because we want to have unit tests for them, apparently.

Change-Id: I734b88599e5860aa59a07a89cc5389eb73b48813

8 years agoBrowser test: fix log in Selenium tests
Željko Filipin [Tue, 16 Feb 2016 11:53:06 +0000 (12:53 +0100)]
Browser test: fix log in Selenium tests

LoginPage is removed from mediawiki_selenium Ruby gem. This repository
is the only repository that needs it, so the file is copied here.

Also, user used to be logged in via the API, not really testing if log
in via the web site works. It is fixed now.

Bug: T127042
Change-Id: Iff85d66a9a6d3343c212fe648c589539e889a313