lhc/web/wiklou.git
8 years agoFix resource path check when ResourceBasePath is an empty string
Tim Starling [Mon, 22 Feb 2016 03:51:19 +0000 (14:51 +1100)]
Fix resource path check when ResourceBasePath is an empty string

If you have MediaWiki installed in the root of the domain, then
$wgScriptPath and $wgResourceBasePath is an empty string. In HHVM and
PHP, passing an empty string as the second parameter of strpos() causes
a warning and returns false, which will cause the condition to fail, as
if the path were not within the base path.

So, normalize such paths. Using substr() instead of strpos() for a
"starts with" check would have worked except that RelPath also fails
when given an empty string.

Bug: T127652
Change-Id: If7e94ae638d6834f7cc0f31f67a5fe6a2f74771c

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 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

8 years agoAllow &shy; in messages
Niklas Laxström [Tue, 16 Feb 2016 14:02:03 +0000 (15:02 +0100)]
Allow &shy; in messages

Bug: T127062
Change-Id: I8b89d8fd6f688a2fa60f3bd92e4cea6909ed267f

8 years agobuild: Update mediawiki-codesniffer to 0.6.0, add "composer fix"
Kunal Mehta [Wed, 17 Feb 2016 10:31:52 +0000 (02:31 -0800)]
build: Update mediawiki-codesniffer to 0.6.0, add "composer fix"

* Fix errors spotted by new release
* Introduce "composer fix", which uses phpcbf to automatically fix some
errors spotted by phpcs.
* Drop $PHPCS_ARGS variable that didn't work on Windows, and add -s flag
* Remove rules from phpcs.xml that are now in MW-CS ruleset.

Change-Id: I13e2155695918c918b67497ac65b85a03897095e

8 years agoDon't show patrol links if RCP/NPP are disabled, but file patrol isn't
Kunal Mehta [Tue, 16 Feb 2016 23:28:22 +0000 (15:28 -0800)]
Don't show patrol links if RCP/NPP are disabled, but file patrol isn't

$wgUseFilePatrol only matters for pages in the File namespace, so limit
it to that. Otherwise wikis with RC and NP patrol disabled will have
patrol links show up, but always have the API request fail.

Bug: T125288
Change-Id: Ia91f6ae7ed54627e3e722f41637b1d11626d9806

8 years agoConvert all array() syntax to []
Kunal Mehta [Wed, 17 Feb 2016 09:09:32 +0000 (01:09 -0800)]
Convert all array() syntax to []

Per wikitech-l consensus:
 https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html

Notes:
* Disabled CallTimePassByReference due to false positives (T127163)

Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b

8 years agoMerge "Update OOjs UI to v0.15.4"
jenkins-bot [Wed, 17 Feb 2016 02:26:22 +0000 (02:26 +0000)]
Merge "Update OOjs UI to v0.15.4"

8 years agoMerge "Remove obsolete ignored path from maintenance/checkSyntax.php"
jenkins-bot [Wed, 17 Feb 2016 02:13:45 +0000 (02:13 +0000)]
Merge "Remove obsolete ignored path from maintenance/checkSyntax.php"

8 years agoUpdate OOjs UI to v0.15.4
James D. Forrester [Wed, 17 Feb 2016 02:10:44 +0000 (18:10 -0800)]
Update OOjs UI to v0.15.4

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

Change-Id: I29c8db4c654ecf575113199ace1006d70ce29012

8 years agoMerge "CookieSessionProvider: It's persisted if we have a 'Token' cookie"
jenkins-bot [Tue, 16 Feb 2016 23:55:44 +0000 (23:55 +0000)]
Merge "CookieSessionProvider: It's persisted if we have a 'Token' cookie"

8 years agoRemove obsolete ignored path from maintenance/checkSyntax.php
Ricordisamoa [Tue, 16 Feb 2016 23:45:38 +0000 (00:45 +0100)]
Remove obsolete ignored path from maintenance/checkSyntax.php

includes/NamespaceCompat.php has been deleted in 2010
with commit 38e663d0eda5ba2be6ca8b71050ea020a64ea8cf

Change-Id: I258a6e458c55871279895f2a78e076ea79e91f44

8 years agoMerge "Remove PHP < 5.3 support from maintenance/checkSyntax.php"
jenkins-bot [Tue, 16 Feb 2016 23:40:51 +0000 (23:40 +0000)]
Merge "Remove PHP < 5.3 support from maintenance/checkSyntax.php"

8 years agoMerge "Stop using SiteConfiguration::isLocalVHost()"
jenkins-bot [Tue, 16 Feb 2016 23:19:38 +0000 (23:19 +0000)]
Merge "Stop using SiteConfiguration::isLocalVHost()"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 16 Feb 2016 21:41:11 +0000 (22:41 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I845f2abb9f2c602be7a8acb732a25c6c85ac2b36

8 years agoFix not-loaded DbPageLanguage when Title::getPageLanguage() get's called
Florian [Sat, 19 Dec 2015 15:25:45 +0000 (16:25 +0100)]
Fix not-loaded DbPageLanguage when Title::getPageLanguage() get's called

If the Title object isn't the title of the current viewed WikiPage, the page_lang
field of the database isn't requested. This results in the problem, that
Title::getPageLanguage() always returns the default content language, even if
the page language is different (changed with Special:PageLanguage, if
wgPageLanguageUseDB is true). That is problematic for the Translate extension,
which relies on the correct page language.

This change makes sure, that getPageLanguage() always return the correct page
language. If the page language isn't loaded already, Title::getPageLanguage()
now does a database lookup (if $wgPageLanguageUseDB is true) to get the correct
page language. It will use LinkCache for the page_lang field.

Bug: T121666
Change-Id: I0ae5ea39f7a124ed427ca5dfb26c1a116b27a94e

8 years agoMerge "Session: Implement ArrayAccess"
jenkins-bot [Tue, 16 Feb 2016 18:59:52 +0000 (18:59 +0000)]
Merge "Session: Implement ArrayAccess"

8 years agoMerge "Converted ApiQueryPageProps to use PageProps; added multi-property query to...
jenkins-bot [Tue, 16 Feb 2016 18:59:43 +0000 (18:59 +0000)]
Merge "Converted ApiQueryPageProps to use PageProps; added multi-property query to PageProps."

8 years agoConverted ApiQueryPageProps to use PageProps; added multi-property query to PageProps.
Cindy Cicalese [Sun, 14 Feb 2016 21:58:46 +0000 (16:58 -0500)]
Converted ApiQueryPageProps to use PageProps; added multi-property query to PageProps.

Change-Id: Icd4540001e044052ae5759c87c8b83a70ab5c30f

8 years agoSession: Implement ArrayAccess
Brad Jorsch [Wed, 10 Feb 2016 16:43:23 +0000 (11:43 -0500)]
Session: Implement ArrayAccess

Now that we dropped support for PHP 5.3.3, we can do this.

The behavior of $session['foo'] when that key doesn't already exist is a
little unexpected (it implicitly assigns null), but it's the best we can
do.

Change-Id: Ibef878867d46591a8bf542139a1719dfec3b83ab

8 years agoMerge "resourceloader: Implement modern module loading (1/2)"
jenkins-bot [Tue, 16 Feb 2016 17:32:27 +0000 (17:32 +0000)]
Merge "resourceloader: Implement modern module loading (1/2)"

8 years agoCookieSessionProvider: It's persisted if we have a 'Token' cookie
Brad Jorsch [Tue, 16 Feb 2016 17:13:32 +0000 (12:13 -0500)]
CookieSessionProvider: It's persisted if we have a 'Token' cookie

This aspect of the pre-SessionManager Setup.php code had been
overlooked.

This also updates an inaccurate doc comment that I happened to notice.

Bug: T125313
Change-Id: Id49836086be837012b02885ce5384ae6a4ebc105

8 years agoMerge "Allow users to tag file uploads"
jenkins-bot [Tue, 16 Feb 2016 15:17:53 +0000 (15:17 +0000)]
Merge "Allow users to tag file uploads"

8 years agoMerge "TOC: Use padding instead of inline-block for space"
jenkins-bot [Tue, 16 Feb 2016 11:58:10 +0000 (11:58 +0000)]
Merge "TOC: Use padding instead of inline-block for space"

8 years agoMerge "Add 'reason' to UserGroupsChanged hook"
jenkins-bot [Tue, 16 Feb 2016 06:56:14 +0000 (06:56 +0000)]
Merge "Add 'reason' to UserGroupsChanged hook"

8 years agoAllow users to tag file uploads
Bartosz Dziewoński [Thu, 21 Jan 2016 18:20:53 +0000 (19:20 +0100)]
Allow users to tag file uploads

Using either action=upload API or Special:Upload. (No user interface
is provided for the latter, this is meant to be used by on-wiki
scripts/gadgets enhancing the upload process.)

Modelled after how ae3ab9eef0379e3e0a6cd9408f153648297e0853
implemented tagging of regular edits.

Bug: T121876
Change-Id: Ia3e0dbd895b2f8bc66985b24db35f112b6f9a22d

8 years agoMerge "mw.Upload.BookletLayout: Use notice instead of popup for help text"
jenkins-bot [Tue, 16 Feb 2016 02:40:00 +0000 (02:40 +0000)]
Merge "mw.Upload.BookletLayout: Use notice instead of popup for help text"

8 years agoUploadBooklet: Show image thumbnail in both steps
Prateek Saxena [Thu, 11 Feb 2016 12:47:40 +0000 (18:17 +0530)]
UploadBooklet: Show image thumbnail in both steps

Bug: T115860
Change-Id: I0794206dad06fd0652e9b62884e8996e836b73b3

8 years agoMerge "UploadBooklet: Switch on showDropTarget in the SelectFileWidget"
jenkins-bot [Tue, 16 Feb 2016 01:27:48 +0000 (01:27 +0000)]
Merge "UploadBooklet: Switch on showDropTarget in the SelectFileWidget"

8 years agoUploadBooklet: Switch on showDropTarget in the SelectFileWidget
Prateek Saxena [Thu, 11 Feb 2016 05:14:58 +0000 (10:44 +0530)]
UploadBooklet: Switch on showDropTarget in the SelectFileWidget

Bug: T115721
Change-Id: I026cc2d52fb1cb9ff4632d1c977ba23047c6b653

8 years agomediawiki.mixins: Remove `-o-transition`
Volker E [Tue, 16 Feb 2016 00:33:41 +0000 (16:33 -0800)]
mediawiki.mixins: Remove `-o-transition`

Removing `-o-transition` as basic support is still prolonged without
it and it saves some bytes on 99.95%+ clients (no clear usage numbers on
Opera 9.70–11.50 users).

Bug: T127023
Change-Id: Ie2e5b2d851aeaa14f802c3a300b79cd1517e10f8

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

Change-Id: I405dcc02cb6945d940efd6bfaace6e102ad1f0eb

8 years agoMerge "Follow-up I0a3bf8fb: Load oojs-ui-core.styles not the deprecated oojs-ui.styles"
jenkins-bot [Mon, 15 Feb 2016 16:13:18 +0000 (16:13 +0000)]
Merge "Follow-up I0a3bf8fb: Load oojs-ui-core.styles not the deprecated oojs-ui.styles"

8 years agomw.Upload.BookletLayout: Use notice instead of popup for help text
Prateek Saxena [Mon, 8 Feb 2016 01:54:37 +0000 (07:24 +0530)]
mw.Upload.BookletLayout: Use notice instead of popup for help text

Now looks like https://phabricator.wikimedia.org/F3321595
Follows up Iaaac4908c71b416888921a4e45de66fa87ab448d

Bug: T116086
Change-Id: Ie12be072a149dc61d833f194c21305014e330c32

8 years agoMerge "Use global cache keys login/create account rate limitting"
jenkins-bot [Mon, 15 Feb 2016 05:30:44 +0000 (05:30 +0000)]
Merge "Use global cache keys login/create account rate limitting"

8 years agoUse global cache keys login/create account rate limitting
Brian Wolff [Mon, 15 Feb 2016 02:13:48 +0000 (21:13 -0500)]
Use global cache keys login/create account rate limitting

If you are running multiple wikis, you probably want the rate limit
on one wiki to apply to all wikis

Bug: T126685
Change-Id: Id662742c7af1b26811f5b0aa199176cb9a7658d9

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

Change-Id: Ic7986269d1f22ba1260e6c931020852dbe20e216

8 years agoMerge "Add 2 FIXMEs about confusingly named functions"
jenkins-bot [Sun, 14 Feb 2016 16:33:26 +0000 (16:33 +0000)]
Merge "Add 2 FIXMEs about confusingly named functions"

8 years agoDocument that Http::get() and Http::post() can return false
Kunal Mehta [Sun, 14 Feb 2016 08:12:31 +0000 (00:12 -0800)]
Document that Http::get() and Http::post() can return false

Change-Id: I6d48ac011ee221050c7b8a05103d028fe2bed66a

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

Change-Id: If8a45c13a53d80dd04d39926980411a2c9af5bbe

8 years agoTOC: Use padding instead of inline-block for space
Fomafix [Sat, 13 Feb 2016 20:33:01 +0000 (20:33 +0000)]
TOC: Use padding instead of inline-block for space

The padding does not get reduced on table cell size adaption. See T126857.

The padding is also visible for IE7 and lower.
c7894deb used an inline-block because it get ignored by IE7 and lower.
Now the gap between tocnummber and toctext is 0.5em + one space for IE7 and lower.
This is acceptable.

The additional CSS selectors are necessary to get the padding on the correct side.
* On Special:EditWatchlist and
* On content pages with a user interface language with different direction.

Bug: T126857
Change-Id: I61e3835f28cd65152cf7920a17e393dc68b76e41

8 years agoMake maintenance/findHooks.php pass again
Ricordisamoa [Fri, 12 Feb 2016 17:31:49 +0000 (18:31 +0100)]
Make maintenance/findHooks.php pass again

* check 4 new paths

* strip 'NormalizeMessageKey' hook from docs/hooks.txt,
  last call was removed in 1ea4f23b05a1776be395e2390aab8326bd97caa7

Change-Id: Id36ab478b94f74be451cae848d5ef2a318d23040

8 years agoMerge "FormatJson: Remove PHP 5.3 compatibility code"
jenkins-bot [Sat, 13 Feb 2016 10:17:12 +0000 (10:17 +0000)]
Merge "FormatJson: Remove PHP 5.3 compatibility code"

8 years agoresourceloader: Implement modern module loading (1/2)
jdlrobson [Tue, 29 Dec 2015 19:32:46 +0000 (09:32 -1000)]
resourceloader: Implement modern module loading (1/2)

This defines mw.loader.require() and 'module.exports'. These will
be exposed to mw.loader.implement() closures as local 'require'
and 'module' parameters.

Changes:
* This alters nestedAddScript to maintain a single queue to
  ensure scripts from different modules are never downloaded in
  parallel (used in debug mode).

Note:
A further patch will start passing module and require to module definitions.

Bug: T108655
Change-Id: Ia925844cc22f143f531216f2fe3efead08885b5d

8 years agoMerge "Remove references to safe_mode INI setting"
jenkins-bot [Sat, 13 Feb 2016 03:03:26 +0000 (03:03 +0000)]
Merge "Remove references to safe_mode INI setting"

8 years agoRELEASE-NOTES: Remove register_globals "Security reminder"
Kevin Israel [Sat, 13 Feb 2016 00:30:01 +0000 (19:30 -0500)]
RELEASE-NOTES: Remove register_globals "Security reminder"

The feature no longer exists starting in PHP 5.4.0, and MediaWiki
now only supports PHP 5.5.9 or newer.

I did not remove the mention in UPGRADE because that refers to an
very old version of MediaWiki that needs a very old PHP version.

Change-Id: I0788d83943f4d08100177c430269eeb16e6f842e

8 years agoAdd 2 FIXMEs about confusingly named functions
Kaldari [Tue, 9 Feb 2016 01:29:09 +0000 (19:29 -0600)]
Add 2 FIXMEs about confusingly named functions

With the roll-out of the Gadget namespace, these are going to be
especially misleading and likely to cause bugs.

Change-Id: I61f1f56762711fab173bbc54d110a7c48604d464

8 years agoRemove references to safe_mode INI setting
Kevin Israel [Sat, 13 Feb 2016 00:18:26 +0000 (19:18 -0500)]
Remove references to safe_mode INI setting

The feature no longer exists starting in PHP 5.4.0, and MediaWiki
now only supports PHP 5.5.9 or newer.

Change-Id: I3f2d1b564c50f0a28ec1ec0abd7d1b242e26953b

8 years agoFormatJson: Remove PHP 5.3 compatibility code
Kevin Israel [Fri, 12 Feb 2016 23:49:01 +0000 (18:49 -0500)]
FormatJson: Remove PHP 5.3 compatibility code

MediaWiki now only works with PHP versions that are new enough
to have the encoding options required by encode54(). So fold
that into encode() and remove encode53() and prettyPrint().

Change-Id: I6b22daf8fa01ef608efbde9c6aecdbb5ce03e2b9

8 years agoMerge "Add IContextSource as parameter to ChangeTags::formatSummaryRow"
jenkins-bot [Fri, 12 Feb 2016 22:39:02 +0000 (22:39 +0000)]
Merge "Add IContextSource as parameter to ChangeTags::formatSummaryRow"

8 years agoUpgrade mismatched commit() warnings to exceptions
Aaron Schulz [Thu, 24 Dec 2015 01:11:24 +0000 (17:11 -0800)]
Upgrade mismatched commit() warnings to exceptions

I saw no WMF logs for these in the last 7 days.

Change-Id: I725535925ba3fc68cee485767f18937fb8f239bf