lhc/web/wiklou.git
8 years agoimages/.htaccess breaks TransformVia404 functionality
scnd [Tue, 27 May 2014 10:21:10 +0000 (14:21 +0400)]
images/.htaccess breaks TransformVia404 functionality

Bug: 65220
Change-Id: Ibdb91f4c676b1c77558ac806c1ccc8313ef5929f

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 26 Jan 2016 22:46:17 +0000 (23:46 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I3897ab528fec09104c0a260310a79b3766c106e6

8 years agoMerge "Make ForeignTitle properties private"
jenkins-bot [Tue, 26 Jan 2016 22:33:52 +0000 (22:33 +0000)]
Merge "Make ForeignTitle properties private"

8 years agoUpdate OOjs UI to v0.15.1
James D. Forrester [Tue, 26 Jan 2016 21:16:54 +0000 (13:16 -0800)]
Update OOjs UI to v0.15.1

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

Change-Id: Ic5069503ebea193e117a9f7f3d520a6f04e0b1cd

8 years agoMerge "Skip IPTCTest::testIPTCParseForcedUTFButInvalid() on pre-PHP5.5.26"
jenkins-bot [Tue, 26 Jan 2016 20:36:46 +0000 (20:36 +0000)]
Merge "Skip IPTCTest::testIPTCParseForcedUTFButInvalid() on pre-PHP5.5.26"

8 years agoMerge "Document how LocalFile::upload() and UploadBase::performUpload() ignore user...
jenkins-bot [Tue, 26 Jan 2016 19:19:55 +0000 (19:19 +0000)]
Merge "Document how LocalFile::upload() and UploadBase::performUpload() ignore user permissions"

8 years agoMerge "LinkBatch::addObj can also work with TitleValue objs"
jenkins-bot [Tue, 26 Jan 2016 19:14:08 +0000 (19:14 +0000)]
Merge "LinkBatch::addObj can also work with TitleValue objs"

8 years agoLinkBatch::addObj can also work with TitleValue objs
addshore [Tue, 26 Jan 2016 19:04:28 +0000 (20:04 +0100)]
LinkBatch::addObj can also work with TitleValue objs

Change-Id: I035d38a5eb8299fcce9cc0efa3952e391b325722

8 years agoMake ForeignTitle properties private
addshore [Tue, 26 Jan 2016 18:36:52 +0000 (19:36 +0100)]
Make ForeignTitle properties private

Change-Id: If9ea22f412a378aa1090ba761c19f77c97da7df0

8 years agoAvoid false "added in both Session and $_SESSION" when value is null
Brad Jorsch [Tue, 26 Jan 2016 18:21:57 +0000 (13:21 -0500)]
Avoid false "added in both Session and $_SESSION" when value is null

Needs to use array_key_exists(), not isset().

Bug: T124371
Change-Id: I794f0ec793fc91ec68393443f839cfc8a154613e

8 years agoSkip IPTCTest::testIPTCParseForcedUTFButInvalid() on pre-PHP5.5.26
Kunal Mehta [Tue, 26 Jan 2016 18:12:17 +0000 (10:12 -0800)]
Skip IPTCTest::testIPTCParseForcedUTFButInvalid() on pre-PHP5.5.26

Bug: T124574
Change-Id: If546c84a9449579cdea5af5b2a6b4b1e7203109e

8 years agoDocument how LocalFile::upload() and UploadBase::performUpload() ignore user permissions
Bartosz Dziewoński [Tue, 26 Jan 2016 17:03:56 +0000 (18:03 +0100)]
Document how LocalFile::upload() and UploadBase::performUpload() ignore user permissions

Follow-up to 61c7852049de45664593437f8b8335809fdbccae.

Change-Id: I6e69b1fa12f336dc4dd12e845cb8bf42abd599b2

8 years agoMerge "TableSorter: Avoid FOUC and preserve styling in VisualEditor"
jenkins-bot [Tue, 26 Jan 2016 13:23:45 +0000 (13:23 +0000)]
Merge "TableSorter: Avoid FOUC and preserve styling in VisualEditor"

8 years agoMerge "TableSorter: Use SVGs with PNG fallbacks instead of GIFs"
jenkins-bot [Tue, 26 Jan 2016 13:09:29 +0000 (13:09 +0000)]
Merge "TableSorter: Use SVGs with PNG fallbacks instead of GIFs"

8 years agoTableSorter: Avoid FOUC and preserve styling in VisualEditor
Ed Sanders [Mon, 25 Jan 2016 17:14:29 +0000 (17:14 +0000)]
TableSorter: Avoid FOUC and preserve styling in VisualEditor

Always make space for the icon and display a placeholder
if JavaScript is loaded, even if we haven't set up table
sorting for a given table yet.

The table will not be sortable in VE mode but for layout
preview we should show some disabled sort icons.

Bug: T95189
Change-Id: Ieb21cf79ae68e388e824923cb6e2d7d552a4afc6

8 years agoMerge "Make mediawiki.special.pageLanguage work again"
jenkins-bot [Tue, 26 Jan 2016 12:18:11 +0000 (12:18 +0000)]
Merge "Make mediawiki.special.pageLanguage work again"

8 years agoMake mediawiki.special.pageLanguage work again
Glaisher [Sat, 23 Jan 2016 17:39:05 +0000 (22:39 +0500)]
Make mediawiki.special.pageLanguage work again

Broken with the switch to OOUI.
This also adds 'id' param to OOUI HTMLRadioField.
Follow-up to b51076a84446d157bed511246450e70d26e0f945.

Change-Id: I69c5fa9830a8b8b7cd6bf3468b5600325d34c070

8 years agoMerge "TitleInputWidget: Allow config to disable validation"
jenkins-bot [Tue, 26 Jan 2016 10:40:10 +0000 (10:40 +0000)]
Merge "TitleInputWidget: Allow config to disable validation"

8 years agoMerge "Fix declension in grammar rules for Latin language"
jenkins-bot [Tue, 26 Jan 2016 10:34:31 +0000 (10:34 +0000)]
Merge "Fix declension in grammar rules for Latin language"

8 years agoMerge "MimeMagic: Set mime-type for .js to application/javascript"
jenkins-bot [Tue, 26 Jan 2016 05:34:12 +0000 (05:34 +0000)]
Merge "MimeMagic: Set mime-type for .js to application/javascript"

8 years agoMerge "mediawiki.searchSuggest: Use formatversion=2 for API requests"
jenkins-bot [Tue, 26 Jan 2016 03:46:19 +0000 (03:46 +0000)]
Merge "mediawiki.searchSuggest: Use formatversion=2 for API requests"

8 years agomediawiki.searchSuggest: Use formatversion=2 for API requests
Fomafix [Mon, 25 Jan 2016 19:15:59 +0000 (19:15 +0000)]
mediawiki.searchSuggest: Use formatversion=2 for API requests

With formatversion=2 the response uses UTF-8 instead of escape sequences
with hex for encoding of non-ASCII characters (e.g. "\u00e4" for "ä").

The other syntax changes of formatversion=2 have no effect here.

Change-Id: Ib01497e8a2340d329482b5131a125b1f92e87116

8 years agoMimeMagic: Set mime-type for .js to application/javascript
Timo Tijhof [Tue, 26 Jan 2016 01:33:24 +0000 (01:33 +0000)]
MimeMagic: Set mime-type for .js to application/javascript

The previous "application/x-javascript" was non-standard. It was used as
unregistered mime type by various vendors after stakeholders agreed it
shouldn't be text/javascript anymore, but "application/javascript" was
still pending approval. That was settled in 2006 with RFC 4329.
http://www.iana.org/assignments/media-types/media-types.xhtml
https://tools.ietf.org/html/rfc4329

It also previously inconsistently returned "application/x-javascript" or
"text/javascript" depending on whether you call MimeMagic with or without
the flag that asks for "improved" mime magic (in the latter mode, it picks
the first one from the mime-info list as override).

This makes MimeMagic match the behaviour of HHVM-static server, NGINX,
and Apache 2.4; with regards to Content-Type for .js files.

Change-Id: Idfe0a80c60c548fe28283c62ee9803bff7bdb2d6

8 years agoTitleInputWidget: Allow config to disable validation
Alex Monk [Tue, 26 Jan 2016 00:45:03 +0000 (00:45 +0000)]
TitleInputWidget: Allow config to disable validation

Or to set it to something else, like 'non-empty'.

Bug: T55613
Change-Id: I5e97604f0fc24176d5e89899bf0505dc442a1a7e

8 years agoLog backtrace for "User::loadFromSession called before the end of Setup.php"
Brad Jorsch [Mon, 25 Jan 2016 18:00:00 +0000 (13:00 -0500)]
Log backtrace for "User::loadFromSession called before the end of Setup.php"

Fixing the bug will be much easier if we know where it's being called
from.

Bug: T124367
Change-Id: I69cd8bc2bb0677819763c59a221f098d564c92cd

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

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 25 Jan 2016 21:04:47 +0000 (22:04 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8d7ca4bb1bd5175b24fefc0dd7f1a785338270b3

8 years agoMerge "Make it possible to tag new file uploads without messy queries"
jenkins-bot [Mon, 25 Jan 2016 21:00:13 +0000 (21:00 +0000)]
Merge "Make it possible to tag new file uploads without messy queries"

8 years agoMerge "Release notes for f51d0d9a819f8f1c181350ced2f015ce97985fcc"
jenkins-bot [Mon, 25 Jan 2016 20:35:37 +0000 (20:35 +0000)]
Merge "Release notes for f51d0d9a819f8f1c181350ced2f015ce97985fcc"

8 years agoMerge "SpecialWatchlist: Display actual number of days for the "all" option"
jenkins-bot [Mon, 25 Jan 2016 20:30:44 +0000 (20:30 +0000)]
Merge "SpecialWatchlist: Display actual number of days for the "all" option"

8 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Mon, 25 Jan 2016 20:30:40 +0000 (20:30 +0000)]
Merge "Sync up with Parsoid parserTests."

8 years agoMerge "Handle static access in TestingAccessWrapper"
jenkins-bot [Mon, 25 Jan 2016 20:26:00 +0000 (20:26 +0000)]
Merge "Handle static access in TestingAccessWrapper"

8 years agoMerge "Avoid races on null revision insertion"
jenkins-bot [Mon, 25 Jan 2016 20:20:10 +0000 (20:20 +0000)]
Merge "Avoid races on null revision insertion"

8 years agoSync up with Parsoid parserTests.
Arlo Breault [Mon, 25 Jan 2016 20:03:07 +0000 (12:03 -0800)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit b04ce02432166128a295c0f00ac1d64c6a469a81

Change-Id: I9f27dc299b87aa265039c0e25084489810c0f7c8

8 years agoMerge "LocalFile: Ensure same timestamp for log entry and image revision"
jenkins-bot [Mon, 25 Jan 2016 20:13:30 +0000 (20:13 +0000)]
Merge "LocalFile: Ensure same timestamp for log entry and image revision"

8 years agoMerge "Use $wgSecureCookie to decide whether to actually mark secure cookies as ...
jenkins-bot [Mon, 25 Jan 2016 20:11:18 +0000 (20:11 +0000)]
Merge "Use $wgSecureCookie to decide whether to actually mark secure cookies as 'secure'"

8 years agoMerge "SpecialWatchlist: Display 'wlnote' message even when showing "all" days"
jenkins-bot [Mon, 25 Jan 2016 20:06:58 +0000 (20:06 +0000)]
Merge "SpecialWatchlist: Display 'wlnote' message even when showing "all" days"

8 years agoUse $wgSecureCookie to decide whether to actually mark secure cookies as 'secure'
Brad Jorsch [Mon, 25 Jan 2016 19:15:40 +0000 (14:15 -0500)]
Use $wgSecureCookie to decide whether to actually mark secure cookies as 'secure'

The pre-SessionManager code did this, and the change in combination with
the API not honoring forceHTTPS led to T124252.

Bug: T124252
Change-Id: Ic6a79fbb30491040facd7c200b1f47d6b99ce637

8 years agoMake it possible to tag new file uploads without messy queries
Bartosz Dziewoński [Thu, 21 Jan 2016 17:14:40 +0000 (18:14 +0100)]
Make it possible to tag new file uploads without messy queries

UploadBase::performUpload() now takes a $tags parameter and passes it
to LocalFile::upload() and LocalFile::recordUpload2(), which
eventually adds the requested tags to the log_id, rev_id and rc_id
that are created for the file upload.

Previously you'd have to query the database for the latest rev_id and
log_id for the page title under which the title is being uploaded, as
performUpload() is unable to return them to you because it's all
deferred in funny ways.

Bug: T121874
Change-Id: I99a8fd67c84219d2715d3d88cc21500614431179

8 years agoCall session_cache_limiter() before starting a session
Bryan Davis [Mon, 25 Jan 2016 17:04:29 +0000 (10:04 -0700)]
Call session_cache_limiter() before starting a session

Call `session_cache_limiter( 'private, must-revalidate' );` before
starting a session to specify the cache control headers that PHP will
automatically emit. The calls are wrapped in MediaWiki\quietCall to
suppress "headers have already been sent" warnings that may come from PHP.

If not called explicitly PHP will default to using
the value of the session.cache_limiter ini setting. Some values of that
setting will cause PHP to add a "Pragma: no-cache" header to the
response. Certain user agents (e.g. Firefox) treat that particular
header as a signal to aggressively flush the response from local cache
to the point that back button navigation will not work.

The value used was present in `wfSetupSession` prior to a73c5b7.

Bug: T124510
Change-Id: I942f8420c39c8cec5781ea8f6cc5619fd15f13cd

8 years agoTableSorter: Use SVGs with PNG fallbacks instead of GIFs
Ed Sanders [Mon, 25 Jan 2016 17:37:08 +0000 (17:37 +0000)]
TableSorter: Use SVGs with PNG fallbacks instead of GIFs

Also removes the never-used sort_none.gif.

Change-Id: Ia16e19985f68b1d188b4391c1156d61c781059cf

8 years agoFix typo in cookie key
Bryan Davis [Mon, 25 Jan 2016 16:02:59 +0000 (09:02 -0700)]
Fix typo in cookie key

Fix typo in cookie key name introduced in I1098d05

Bug: T124641
Change-Id: Ib140aa61ba56844191304c4308052148c728bc64

8 years agoMerge "Improve wording and tense in some "page language" strings"
jenkins-bot [Mon, 25 Jan 2016 15:12:47 +0000 (15:12 +0000)]
Merge "Improve wording and tense in some "page language" strings"

8 years agoRelease notes for f51d0d9a819f8f1c181350ced2f015ce97985fcc
Bartosz Dziewoński [Mon, 25 Jan 2016 12:37:18 +0000 (13:37 +0100)]
Release notes for f51d0d9a819f8f1c181350ced2f015ce97985fcc

Change-Id: I23199a7e8c67e93e4313f80b2c2b2ba074d52b86

8 years agoMerge "Last caption wins in gallery"
jenkins-bot [Mon, 25 Jan 2016 12:11:54 +0000 (12:11 +0000)]
Merge "Last caption wins in gallery"

8 years agoMerge "mw.Upload.BookletLayout: Rewrite some code to use promise chaining"
jenkins-bot [Mon, 25 Jan 2016 12:07:41 +0000 (12:07 +0000)]
Merge "mw.Upload.BookletLayout: Rewrite some code to use promise chaining"

8 years agoMerge "Introduce ParserOutput::getRawText()"
jenkins-bot [Mon, 25 Jan 2016 12:03:10 +0000 (12:03 +0000)]
Merge "Introduce ParserOutput::getRawText()"

8 years agoMerge "Fix incorrect Lojban name"
jenkins-bot [Mon, 25 Jan 2016 11:23:42 +0000 (11:23 +0000)]
Merge "Fix incorrect Lojban name"

8 years agoMerge "Replace deprecated jQuery event aliases"
jenkins-bot [Mon, 25 Jan 2016 10:42:45 +0000 (10:42 +0000)]
Merge "Replace deprecated jQuery event aliases"

8 years agoHandle static access in TestingAccessWrapper
Gergő Tisza [Mon, 25 Jan 2016 04:16:40 +0000 (04:16 +0000)]
Handle static access in TestingAccessWrapper

Change-Id: Ia8ec6ee0a364807e78fc182c4ce99d782b921eda

8 years agoSessionManager: Abstract forceHTTPS cookie setting
Brad Jorsch [Sat, 23 Jan 2016 17:34:27 +0000 (12:34 -0500)]
SessionManager: Abstract forceHTTPS cookie setting

This allows CentralAuthSessionProvider to avoid doing craziness like
this all the time:

  Set-Cookie: forceHTTPS=true; path=/; httponly
  Set-Cookie: forceHTTPS=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; httponly
  Set-Cookie: forceHTTPS=true; path=/; domain=.wikipedia.org; httponly
  Set-Cookie: forceHTTPS=true; path=/; httponly
  Set-Cookie: forceHTTPS=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; httponly
  Set-Cookie: forceHTTPS=true; path=/; domain=.wikipedia.org; httponly

Bug: T124421
Change-Id: I7e02afd032a246df6850208c26d3447798bc0fc2

8 years agoIntroduce ParserOutput::getRawText()
Tim Starling [Mon, 25 Jan 2016 03:44:36 +0000 (14:44 +1100)]
Introduce ParserOutput::getRawText()

Avoid polluting the parser cache with skin-dependent output from
Skin::doEditSectionLink() by introducing getRawText(), which provides
access to the uncooked text. Use this in
WikitextContent::fillParserOutput() which is the primary offender
judging by the debug logs (see referenced bug).

Bug: T124356
Change-Id: Ia9e1e4a6dc3a26f88eeebc64eed023ff20c53d58

8 years agoFix incorrect Lojban name
Justin Du [Mon, 25 Jan 2016 01:57:57 +0000 (19:57 -0600)]
Fix incorrect Lojban name

Bug: T124600
Change-Id: I590e4d1fb60dc194c113f8304ef71d0f8be078a9

8 years agoMove avoidance of setting deleted cookies into WebResponse
Brad Jorsch [Sat, 23 Jan 2016 16:13:11 +0000 (11:13 -0500)]
Move avoidance of setting deleted cookies into WebResponse

There's no reason this should be only in CookieSessionProvider when
we're already handling deduplication in WebResponse.

Further, this fixes the bug in the existing CookieSessionProvider
implementation that a setCookie() followed by a clearCookie() wouldn't
actually clear the cookie.

This reverts commit 1ce684fcef1ee69ca0921c05081cae47f90939e5.

Bug: T124252
Change-Id: I1098d054facacd59f03ebed7c747ec9ff6bf66e7
Depends-On: I61d14bf80fa7c857dec9cffb366dc3f84dbb4faf

8 years agoReplace deprecated jQuery event aliases
Fomafix [Sun, 24 Jan 2016 20:51:05 +0000 (20:51 +0000)]
Replace deprecated jQuery event aliases

In jQuery 3.0 the deprecated event aliases .load, .unload and .error get removed.
They are deprecated since jQuery 1.8:
* https://api.jquery.com/load-event/
* https://api.jquery.com/unload/
* https://api.jquery.com/error/

See major changes of jQuery 3.0 beta:
* https://blog.jquery.com/2016/01/14/jquery-3-0-beta-released/

Change-Id: Ie77b2a12c1c03645b73124c2afe79113f6ea60b5

8 years agoMerge "WikiFilePage: Remove weird useless comments"
jenkins-bot [Sun, 24 Jan 2016 20:46:16 +0000 (20:46 +0000)]
Merge "WikiFilePage: Remove weird useless comments"

8 years agoLocalFile: Ensure same timestamp for log entry and image revision
Bartosz Dziewoński [Sun, 24 Jan 2016 20:31:34 +0000 (21:31 +0100)]
LocalFile: Ensure same timestamp for log entry and image revision

For file patrolling, we rely on the timestamp of image revision
(`image` table) and log entry (`logging` table) being the same, but we
weren't actually making sure it is the same.

Note that the timestamp of page revision can still differ, but that
shouldn't matter and it's a more involved fix.

Change-Id: I8e1b75d744c4a96cb0bb636b153d6e8ea2ee1fcf

8 years agoWikiFilePage: Remove weird useless comments
Bartosz Dziewoński [Sun, 24 Jan 2016 20:27:52 +0000 (21:27 +0100)]
WikiFilePage: Remove weird useless comments

Change-Id: I0902ab6ddbfcec54f3385bdcdd5062503b5f1b95

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 24 Jan 2016 20:00:28 +0000 (21:00 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I45f66a54b9fc616f2593f54437cedecb0ad584c5

8 years agoMerge "Reword config-localsettings-badkey"
jenkins-bot [Sun, 24 Jan 2016 18:44:07 +0000 (18:44 +0000)]
Merge "Reword config-localsettings-badkey"

8 years agoMerge "Document tags-edit-revision-selected and add GENDER support for siteusers"
jenkins-bot [Sun, 24 Jan 2016 18:27:39 +0000 (18:27 +0000)]
Merge "Document tags-edit-revision-selected and add GENDER support for siteusers"

8 years agoMerge "Fix typo"
jenkins-bot [Sun, 24 Jan 2016 18:21:52 +0000 (18:21 +0000)]
Merge "Fix typo"

8 years agoFix typo
Arlo Breault [Sun, 24 Jan 2016 18:14:04 +0000 (10:14 -0800)]
Fix typo

Change-Id: Ifcea7b157dd1c22f45d03627c8bb0d42da548f79

8 years agoSpecialWatchlist: Display actual number of days for the "all" option
Bartosz Dziewoński [Sun, 24 Jan 2016 16:06:22 +0000 (17:06 +0100)]
SpecialWatchlist: Display actual number of days for the "all" option

Bug: T120416
Change-Id: Icff5f9550ea27cde6d1c6ea42bb6ab89bf2b8616

8 years agoSpecialWatchlist: Display 'wlnote' message even when showing "all" days
Bartosz Dziewoński [Sun, 24 Jan 2016 16:02:59 +0000 (17:02 +0100)]
SpecialWatchlist: Display 'wlnote' message even when showing "all" days

Change-Id: Ib22ecd53c7765125cec08a39cecd4d4098d40b9a

8 years agoMerge "Fix another function casing"
jenkins-bot [Sun, 24 Jan 2016 15:22:34 +0000 (15:22 +0000)]
Merge "Fix another function casing"

8 years agoMerge "Clarify documentation of apihelp-query+categorymembers-paramvalue-prop-type"
jenkins-bot [Sun, 24 Jan 2016 14:41:20 +0000 (14:41 +0000)]
Merge "Clarify documentation of apihelp-query+categorymembers-paramvalue-prop-type"

8 years agoClarify documentation of apihelp-query+categorymembers-paramvalue-prop-type
IoannisKydonis [Sat, 23 Jan 2016 23:17:10 +0000 (01:17 +0200)]
Clarify documentation of apihelp-query+categorymembers-paramvalue-prop-type

Thread:
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Apihelp-query%2Bcategorymembers-paramvalue-prop-type/en

Change-Id: I67d9d7256330ed2ea0b16c22be463f855bc65f2d

8 years agoFix another function casing
Reedy [Sun, 24 Jan 2016 13:05:22 +0000 (13:05 +0000)]
Fix another function casing

Change-Id: Ib0905b97898195305bf4678bfd6acbb71ab36fb6

8 years agoMWDebug: Add support for passing objects
PranavK [Sun, 4 Jan 2015 07:20:45 +0000 (12:50 +0530)]
MWDebug: Add support for passing objects

Change-Id: I121acab012676e486e19b3f8b0fae50af3d3a567

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 23 Jan 2016 21:11:37 +0000 (22:11 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I6c038372ab9058b5e59db7c00b5070dad16e8f6c

8 years agoMerge "rebuildrecentchanges.php: Don't create duplicate entries for upload logs"
jenkins-bot [Sat, 23 Jan 2016 19:12:23 +0000 (19:12 +0000)]
Merge "rebuildrecentchanges.php: Don't create duplicate entries for upload logs"

8 years agoMerge "Improve documentation of foreign-structured-upload-form-label-own-work-message...
jenkins-bot [Sat, 23 Jan 2016 15:03:35 +0000 (15:03 +0000)]
Merge "Improve documentation of foreign-structured-upload-form-label-own-work-message-local"

8 years agoImprove documentation of foreign-structured-upload-form-label-own-work-message-local
IoannisKydonis [Fri, 22 Jan 2016 09:43:57 +0000 (11:43 +0200)]
Improve documentation of foreign-structured-upload-form-label-own-work-message-local

Thread:
https://translatewiki.net/wiki/Thread:Translating_talk:MediaWiki/About_MediaWiki:Foreign-structured-upload-form-label-own-work-message-local/ksh

Change-Id: I4736ee55145070889f819c8c9bf07b43bfea648a

8 years agoOnly delete cookies which are actually set
Gergő Tisza [Fri, 22 Jan 2016 22:29:40 +0000 (14:29 -0800)]
Only delete cookies which are actually set

Some API clients seem to be confused by cookie deletion.
Prevent cookie deletion on the first leg of the API login sequence
(for a client with an empty cookie jar) by only emitting deletion
headers for cookies which are set in the current request.

Bug: T124252
Change-Id: I180e094ea32f951e22adab2ec87d16e5de7cef97

8 years agoIgnore auth cookies with value 'deleted'
Gergő Tisza [Fri, 22 Jan 2016 06:14:07 +0000 (22:14 -0800)]
Ignore auth cookies with value 'deleted'

'deleted' is the value PHP sets when it deletes a cookie (via the
Expires/Max-Age headers). Apparently some clients ignore the
expiration date and send 'deleted' back; these clients now cannot
login due to some slight changes in exactly when cookies are
set/deleted during the login process.

To keep those clients from breaking, ignore this special value.

Bug: T124252
Change-Id: Icd0e1bcd8efe0869da981352763d25e4f8075bf2

8 years agoMerge "mediawiki.util: Add JS-handler usage example for addPortletLink()"
jenkins-bot [Fri, 22 Jan 2016 22:10:10 +0000 (22:10 +0000)]
Merge "mediawiki.util: Add JS-handler usage example for addPortletLink()"

8 years agoMerge "SessionManager: Kill getPersistedSessionId()"
jenkins-bot [Fri, 22 Jan 2016 21:40:52 +0000 (21:40 +0000)]
Merge "SessionManager: Kill getPersistedSessionId()"

8 years agomediawiki.util: Add JS-handler usage example for addPortletLink()
Timo Tijhof [Fri, 22 Jan 2016 21:15:38 +0000 (21:15 +0000)]
mediawiki.util: Add JS-handler usage example for addPortletLink()

Makes it clear that the method returns the Element node which
can then be used to attach event handlers.

Change-Id: Id33d3dc24a439cc6fe86f2de5baafa0aa779b2c0

8 years agoMerge "Remove putrid remains of $wgAllowAsyncCopyUploads"
jenkins-bot [Fri, 22 Jan 2016 20:54:14 +0000 (20:54 +0000)]
Merge "Remove putrid remains of $wgAllowAsyncCopyUploads"

8 years agoAdd missing @since to new IdLookup classes
Niklas Laxström [Fri, 22 Jan 2016 08:01:21 +0000 (09:01 +0100)]
Add missing @since to new IdLookup classes

Follow up I49568358ec35fdfd0b9e53e441adabded5c7b80f

Change-Id: I9f2e9a7c9bb5dd8608cfc6678a3557d916f0b09f

8 years agoMerge "mw.Upload.BookletLayout: Don't explode when the API call fails with 'exception'"
jenkins-bot [Fri, 22 Jan 2016 19:54:32 +0000 (19:54 +0000)]
Merge "mw.Upload.BookletLayout: Don't explode when the API call fails with 'exception'"

8 years agoSessionManager: Kill getPersistedSessionId()
Brad Jorsch [Fri, 22 Jan 2016 19:47:33 +0000 (14:47 -0500)]
SessionManager: Kill getPersistedSessionId()

It's not guaranteed that loadSessionFromStore() will succeed after
whatever alterations the SessionProvider might have made later in the
request.

So instead, let's make a new global object that stores the SessionId
of the persistent session that was loaded during Setup.php, if any. Then
we can check that when we need to know whether the session was
persisted.

Bug: T124468
Change-Id: I1e8e616c83b16aadd86b0a0a40826d40f6e8abe4

8 years agomw.Upload.BookletLayout: Rewrite some code to use promise chaining
Bartosz Dziewoński [Thu, 24 Dec 2015 01:39:07 +0000 (02:39 +0100)]
mw.Upload.BookletLayout: Rewrite some code to use promise chaining

Allegedly this makes it clearer.

Follow-up to I0b2f53b91454f22e2001462397087da9e055b701.

Change-Id: Ie3a6c20452d8102d44b4268f92c55bbabfc5cd68

8 years agomw.Upload.BookletLayout: Show an error rather than explode when uploads are disabled
Bartosz Dziewoński [Tue, 8 Dec 2015 18:15:50 +0000 (19:15 +0100)]
mw.Upload.BookletLayout: Show an error rather than explode when uploads are disabled

Also, localise the error messages.

Bug: T119314
Change-Id: I0b2f53b91454f22e2001462397087da9e055b701

8 years agoLast caption wins in gallery
Arlo Breault [Fri, 22 Jan 2016 03:24:03 +0000 (19:24 -0800)]
Last caption wins in gallery

 * Currently, for images:

   [[File:Foobar.jpg|hi|alt=100|ho]]

   caption: ho

   but for galleries:

   <gallery>
   File:Foobar.jpg|hi|alt=100|ho
   </gallery>

   caption: hi|ho

 * This patch brings some consistency to them.

Change-Id: I3b73189b27cc35fade4809477cf18779b953aa3b

8 years agoUser: Fix loading of user_touched
Brad Jorsch [Fri, 22 Jan 2016 17:49:06 +0000 (12:49 -0500)]
User: Fix loading of user_touched

Always load user_touched from the row if present, don't gate it on
user_email being non-null.

Bug: T124414
Change-Id: I68fcbb560ddfa349b83126298534161971a88871

8 years agoMerge "Misc fixes for file patrol"
jenkins-bot [Fri, 22 Jan 2016 17:13:55 +0000 (17:13 +0000)]
Merge "Misc fixes for file patrol"

8 years agoSessionManager: Add SessionBackend::setProviderMetadata()
Brad Jorsch [Fri, 22 Jan 2016 16:09:32 +0000 (11:09 -0500)]
SessionManager: Add SessionBackend::setProviderMetadata()

Providers might need to update their metadata at times other than when
they're creating the SessionInfo.

Bug: T124409
Change-Id: Ia9d113c93726205de85df65bf85faef74c73c949

8 years agoMerge "UploadFromStash: Only remove stashed file on successful uploads"
jenkins-bot [Fri, 22 Jan 2016 01:52:57 +0000 (01:52 +0000)]
Merge "UploadFromStash: Only remove stashed file on successful uploads"

8 years agoRemove putrid remains of $wgAllowAsyncCopyUploads
Bartosz Dziewoński [Thu, 21 Jan 2016 22:45:10 +0000 (23:45 +0100)]
Remove putrid remains of $wgAllowAsyncCopyUploads

None of this works and it's been long begging for a mercy kill.
All it does is waste contributor time on updating deprecations
in the dead code. I imagine we wouldn't reuse much of this
code if we're ever going to reimplement it.

Bug: T119336
Change-Id: Ibd26a4bea621857aac77823017e9be9b7dc52cca

8 years agoUploadFromStash: Only remove stashed file on successful uploads
Bartosz Dziewoński [Thu, 21 Jan 2016 22:56:16 +0000 (23:56 +0100)]
UploadFromStash: Only remove stashed file on successful uploads

Also, makes code shorter!

Change-Id: I144d8a207c753bd9e38ac847a0fc61257f11e54d

8 years agoFix comment; these are the least signifincant bits (LSBs), not MSBs
Matthew Flaschen [Thu, 5 Nov 2015 16:13:17 +0000 (11:13 -0500)]
Fix comment; these are the least signifincant bits (LSBs), not MSBs

Change-Id: I0102e4969d95c6392a48d4a5b2f2bec096a828a5

8 years agoDocument tags-edit-revision-selected and add GENDER support for siteusers
IoannisKydonis [Thu, 21 Jan 2016 22:03:25 +0000 (00:03 +0200)]
Document tags-edit-revision-selected and add GENDER support for siteusers

Threads:
https://translatewiki.net/wiki/Thread:Support/About_a_MediaWiki:Tags-edit-revision-selected/el_parameter
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Siteusers/en

Change-Id: I1cf3cec3d7837c1a2f50435d48a913553b28a13d

8 years agorebuildrecentchanges.php: Don't create duplicate entries for upload logs
Bartosz Dziewoński [Tue, 29 Dec 2015 01:16:10 +0000 (02:16 +0100)]
rebuildrecentchanges.php: Don't create duplicate entries for upload logs

There are a few cases where we generate both a page revision and a log
entry for a single action (upload; in the future, maybe also move,
protect), but only one recent changes entry (matching the log entry).

Bug: T116809
Change-Id: Ib95a6cb57a942a0758091ff2db9d29f3c0048598

8 years agoMerge "Register a couple of test classes in autoloader"
Max Semenik [Thu, 21 Jan 2016 21:45:12 +0000 (21:45 +0000)]
Merge "Register a couple of test classes in autoloader"

8 years agoMerge "SessionManager: Notify AuthPlugin when auto-creating accounts"
jenkins-bot [Thu, 21 Jan 2016 20:48:18 +0000 (20:48 +0000)]
Merge "SessionManager: Notify AuthPlugin when auto-creating accounts"

8 years agoRegister a couple of test classes in autoloader
Max Semenik [Thu, 21 Jan 2016 20:46:26 +0000 (12:46 -0800)]
Register a couple of test classes in autoloader

Bug: T59557
Change-Id: I98e00a321d8fecc4b13bbc84938f849b781209c9

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

Change-Id: I956981e2c3308a17770fe78d532f83dd72427e78

8 years agoSessionManager: Notify AuthPlugin when auto-creating accounts
Brad Jorsch [Thu, 21 Jan 2016 20:20:44 +0000 (15:20 -0500)]
SessionManager: Notify AuthPlugin when auto-creating accounts

Bug: T74791
Change-Id: Iabb44d58a922051ca2d70a052d6c53734a4f8936