lhc/web/wiklou.git
9 years agoShorten long lines in Html.php to make phpcs pass
Amir E. Aharoni [Tue, 3 Mar 2015 18:27:51 +0000 (20:27 +0200)]
Shorten long lines in Html.php to make phpcs pass

Change-Id: I5060b510105aa08f1cb4804e2c33d8e1b00ef390

9 years agoShorten long lines and use consistent tabs in DefaultSettings.php
Amir E. Aharoni [Tue, 3 Mar 2015 18:27:27 +0000 (20:27 +0200)]
Shorten long lines and use consistent tabs in DefaultSettings.php

To make phpcs pass.

Change-Id: Iff20470d1db409ed91577058204d0254c461ba76

9 years agoResources.php: Simplify dependencies to single modules
Fomafix [Tue, 3 Mar 2015 15:53:49 +0000 (15:53 +0000)]
Resources.php: Simplify dependencies to single modules

Change-Id: Icaa81662243259f166a28e3b6bb5b8ac6fea4bb3

9 years agoShorten long lines in Language.php to make phpcs pass
Amir E. Aharoni [Tue, 3 Mar 2015 08:55:08 +0000 (10:55 +0200)]
Shorten long lines in Language.php to make phpcs pass

Change-Id: Ied04ebc64cd5a6e54bd0c3de5845342ec89d4d1c

9 years agoMerge "resourceloader: Clean up UserModule to be more like UserGroupsModule"
jenkins-bot [Tue, 3 Mar 2015 17:11:59 +0000 (17:11 +0000)]
Merge "resourceloader: Clean up UserModule to be more like UserGroupsModule"

9 years agoMerge "Text color for quiet buttons should not be lightened"
jenkins-bot [Tue, 3 Mar 2015 17:02:13 +0000 (17:02 +0000)]
Merge "Text color for quiet buttons should not be lightened"

9 years agoresourceloader: Clean up UserModule to be more like UserGroupsModule
Timo Tijhof [Sun, 1 Mar 2015 15:25:39 +0000 (16:25 +0100)]
resourceloader: Clean up UserModule to be more like UserGroupsModule

Change-Id: Ic988c36c034b2862e6404bb6b6b7fe24d171fef1

9 years agoMerge "API: Handle invalid titles in action=feedwatchlist"
jenkins-bot [Tue, 3 Mar 2015 16:59:15 +0000 (16:59 +0000)]
Merge "API: Handle invalid titles in action=feedwatchlist"

9 years agoRevert "Made insertMessageBlob use (start|end)Atomic in case DBO_TRX is off"
Krinkle [Tue, 3 Mar 2015 15:59:45 +0000 (15:59 +0000)]
Revert "Made insertMessageBlob use (start|end)Atomic in case DBO_TRX is off"

Per T91399.

This reverts commit 80a3a30d6a90b21f68cca4dfe5b3623cb9e5e7fc.

Change-Id: I2aacfbac2ab25a4662d6bee544e3f953770dc925

9 years agoAPI: Handle invalid titles in action=feedwatchlist
Brad Jorsch [Tue, 3 Mar 2015 15:10:20 +0000 (10:10 -0500)]
API: Handle invalid titles in action=feedwatchlist

When new interwiki prefixes or the like get added, it can cause existing
watchlist entries to become invalid. Let's handle this more gracefully than
"Fatal error: Call to a member function getFullURL() on a non-object".

Bug: T44274
Change-Id: I9476fa7a86aaae810b8c0c2da08a9317451a0bdf

9 years agoMerge "mediawiki.user: Simplify extension of mw.user"
jenkins-bot [Tue, 3 Mar 2015 10:07:26 +0000 (10:07 +0000)]
Merge "mediawiki.user: Simplify extension of mw.user"

9 years agoAdd explicit array cast in Language::getGenderNsText
umherirrender [Sat, 21 Feb 2015 09:58:01 +0000 (10:58 +0100)]
Add explicit array cast in Language::getGenderNsText

Similiar to r102414

Bug: T43194
Change-Id: I868b31b3862539d4782912d5b6e5d3ce5d9b4f60

9 years agoMerge "Add hook EnhancedChangesList::getLogText"
jenkins-bot [Tue, 3 Mar 2015 04:15:19 +0000 (04:15 +0000)]
Merge "Add hook EnhancedChangesList::getLogText"

9 years agoMade insertMessageBlob use (start|end)Atomic in case DBO_TRX is off
Aaron Schulz [Thu, 26 Feb 2015 21:13:36 +0000 (13:13 -0800)]
Made insertMessageBlob use (start|end)Atomic in case DBO_TRX is off

Change-Id: I6b730e8b4a6cb2d4a82a0cf471c7625ccfd08a0e

9 years agoMerge "Populate User::$idCacheByName in User::loadFromRow() if possible"
jenkins-bot [Tue, 3 Mar 2015 03:03:30 +0000 (03:03 +0000)]
Merge "Populate User::$idCacheByName in User::loadFromRow() if possible"

9 years agoMerge "Make sure hash_hmac() always works even if no secret key"
jenkins-bot [Tue, 3 Mar 2015 02:54:00 +0000 (02:54 +0000)]
Merge "Make sure hash_hmac() always works even if no secret key"

9 years agoAdd hook EnhancedChangesList::getLogText
Matthias Mullie [Thu, 26 Feb 2015 13:10:22 +0000 (14:10 +0100)]
Add hook EnhancedChangesList::getLogText

Enhanced RC generates these "(3 changes | history)" links for
every block of grouped recentchanges. That changes-link links
to a diff page.

For Flow, that is all wrong: we have different ids (not integers),
on a different page (&curid=&oldid=&diff= means nothing). Even
the concept of a "diff" page seems wrong here for us - a new post
is not part of some document that can be diffed.
In short: we'll want to generate a different link, and we'll need
a hook to let us change them.

Meanwhile also split the code that generates those links into a
separate method.

Bug: T72513
Change-Id: Ib32fb9552b80f9581d89b3b47da6e5d32e3d84a3

9 years agoMake "name" a required value of extension.json in the schema
Kunal Mehta [Tue, 3 Mar 2015 00:37:38 +0000 (16:37 -0800)]
Make "name" a required value of extension.json in the schema

The code considers it to be required, so indicate that in the schema as well.

Change-Id: I9c1a279d5675eb10210a3dba5a15fe169619d719

9 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Tue, 3 Mar 2015 00:20:48 +0000 (00:20 +0000)]
Merge "Sync up with Parsoid parserTests."

9 years agoText color for quiet buttons should not be lightened
kaldari [Mon, 2 Mar 2015 23:20:22 +0000 (15:20 -0800)]
Text color for quiet buttons should not be lightened

This is part of the effort to synchronize button styles between
MediaWiki UI and OOjs UI. According to the designers, the text
colors for quiet buttons should be the raw non-quiet equivalent
button background colors (not lightened).

Bug: T88449
Change-Id: Ib6ff7167a62c03d0b0427a7161d396e11e173046

9 years agoSync up with Parsoid parserTests.
C. Scott Ananian [Mon, 2 Mar 2015 22:53:01 +0000 (17:53 -0500)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 7608aeabdc1e47ce3dbfffd3ded85eecad647260

Change-Id: I4cb8f04b9d7988e5138c8f040fadeb0b7a9348f9

9 years agoPopulate User::$idCacheByName in User::loadFromRow() if possible
Kunal Mehta [Mon, 2 Mar 2015 22:52:25 +0000 (14:52 -0800)]
Populate User::$idCacheByName in User::loadFromRow() if possible

Change-Id: I4c7dab517ca6b7adcdec0c945e21d6be0b7b7d66

9 years agoClarified RequestContext doc comment
Aaron Schulz [Thu, 26 Feb 2015 21:27:05 +0000 (13:27 -0800)]
Clarified RequestContext doc comment

Change-Id: Ibb2a30634b192f4bc77e0b6b1afebc65b2ed3ec9

9 years agoMerge "Explicitly mark HTMLCacheUpdateJob jobs that are recursive for clarity"
jenkins-bot [Mon, 2 Mar 2015 21:16:21 +0000 (21:16 +0000)]
Merge "Explicitly mark HTMLCacheUpdateJob jobs that are recursive for clarity"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 2 Mar 2015 20:46:49 +0000 (21:46 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib5e92f58763d20ad7f75b3631ebd1db2b1a79ffe

9 years agoMerge "Hide section anchor links from screen readers using aria-hidden"
Brion VIBBER [Mon, 2 Mar 2015 20:27:30 +0000 (20:27 +0000)]
Merge "Hide section anchor links from screen readers using aria-hidden"

9 years agoMerge "Made SqlBagOStuff avoid tripping TransactionProfiler"
Chad [Mon, 2 Mar 2015 20:21:41 +0000 (20:21 +0000)]
Merge "Made SqlBagOStuff avoid tripping TransactionProfiler"

9 years agoMerge "$timeout was optional in Http::get()"
jenkins-bot [Mon, 2 Mar 2015 20:04:34 +0000 (20:04 +0000)]
Merge "$timeout was optional in Http::get()"

9 years agoMerge "Moved JobQueueFederated partition exceptions to their own log"
jenkins-bot [Mon, 2 Mar 2015 19:45:24 +0000 (19:45 +0000)]
Merge "Moved JobQueueFederated partition exceptions to their own log"

9 years ago$timeout was optional in Http::get()
Gilles Dubuc [Mon, 2 Mar 2015 19:25:29 +0000 (20:25 +0100)]
$timeout was optional in Http::get()

Change-Id: I6cd2918412395d1d5f811f0d47bb080f22b598ec

9 years agoMoved JobQueueFederated partition exceptions to their own log
Aaron Schulz [Mon, 2 Mar 2015 19:15:40 +0000 (11:15 -0800)]
Moved JobQueueFederated partition exceptions to their own log

Change-Id: If495e9b1a631b587cb3b8d83974837eef1d2d4c6

9 years agoMerge "Remove $timeout parameter from Http::get()"
jenkins-bot [Mon, 2 Mar 2015 18:53:37 +0000 (18:53 +0000)]
Merge "Remove $timeout parameter from Http::get()"

9 years agoMerge "installer: Remove unused references to wgResourceLoaderMaxQueryLength"
jenkins-bot [Mon, 2 Mar 2015 18:33:05 +0000 (18:33 +0000)]
Merge "installer: Remove unused references to wgResourceLoaderMaxQueryLength"

9 years agoRemove $timeout parameter from Http::get()
Chad Horohoe [Fri, 27 Feb 2015 16:48:21 +0000 (08:48 -0800)]
Remove $timeout parameter from Http::get()

It is inconsistent with request() and post() and there's a couple
of mistaken usages in core and extensions that think they have the
same signature.

Change-Id: I834278639a3648edec7bcb57db7bb61f456d2a92

9 years agoAPI: paraminfo html strings shouldn't include unnecessary <p>s
Brad Jorsch [Thu, 5 Feb 2015 17:11:14 +0000 (12:11 -0500)]
API: paraminfo html strings shouldn't include unnecessary <p>s

If the output is a single paragraph, there's not really a need for
explicit <p> tags around it.

Bug: T84995
Change-Id: I4406121fe0ec099c4a4ade849ef495edad90c2ad

9 years agoHide section anchor links from screen readers using aria-hidden
Bartosz Dziewoński [Mon, 2 Mar 2015 09:16:29 +0000 (10:16 +0100)]
Hide section anchor links from screen readers using aria-hidden

Hide from screen readers, as it is inside a heading (the programs use
headings to navigate, so the symbol is being read during navigation).
Pending T13555 being fixed.

See <https://phabricator.wikimedia.org/T18691#1076371> and
<https://phabricator.wikimedia.org/T18691#1076857> for reasoning.

Bug: T18691
Change-Id: I736cb7f52d5ce37eb7e8d3a3648ffd0bd40f2c83

9 years agoAllow a lonely "-" as positional argument
daniel [Wed, 18 Feb 2015 17:55:27 +0000 (18:55 +0100)]
Allow a lonely "-" as positional argument

Change-Id: I658988c8f955103d6bc4bd1047819a37de0d505d

9 years agoMerge "resourceloader: Let $wgUseSiteCss protect MediaWiki:Print.css as well"
jenkins-bot [Sun, 1 Mar 2015 23:49:03 +0000 (23:49 +0000)]
Merge "resourceloader: Let $wgUseSiteCss protect MediaWiki:Print.css as well"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 1 Mar 2015 20:38:12 +0000 (21:38 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iee49f1dd94d5cc94647b7b47277aee2625db56e1

9 years agoresourceloader: Let $wgUseSiteCss protect MediaWiki:Print.css as well
Timo Tijhof [Sun, 1 Mar 2015 15:21:12 +0000 (16:21 +0100)]
resourceloader: Let $wgUseSiteCss protect MediaWiki:Print.css as well

Follows-up 12a9f0564d1af13.

Change-Id: Id67f98e9d624191d69def262763dbba33050606f

9 years agoAdd composer lint, phpcs, and test commands
Kunal Mehta [Tue, 6 Jan 2015 18:47:25 +0000 (10:47 -0800)]
Add composer lint, phpcs, and test commands

lint uses jakub-onderka/php-parallel-lint to check the syntax of the provided
PHP files or directories.

phpcs uses the MediaWiki codesniffer standard to check the provided files or
directories.

test runs both lint and phpcs together. phpunit is not included at this time
because our phpunit tests require a database to be set up and are very very
slow.

Example usage:
  composer lint .  # Lint all files
  composer phpcs includes/FooBar.php  # Check code style of one file
  composer test extensions/FooBar  # Lint and check an extension

Change-Id: I3c7ac7a02668776de6400ac268f37e7e6b35a3c6

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 28 Feb 2015 20:43:26 +0000 (21:43 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Id79fa4748516563b5c8429e08e7edce047b97963

9 years agoMerge "refreshLinks.php: Tweak exit condition in deleteLinksFromNonexistent()"
jenkins-bot [Sat, 28 Feb 2015 19:58:03 +0000 (19:58 +0000)]
Merge "refreshLinks.php: Tweak exit condition in deleteLinksFromNonexistent()"

9 years agoinstaller: Remove unused references to wgResourceLoaderMaxQueryLength
Timo Tijhof [Sat, 28 Feb 2015 17:25:33 +0000 (18:25 +0100)]
installer: Remove unused references to wgResourceLoaderMaxQueryLength

* Added in 40e18e45343.
* Removed in 648bed9f839 (r87494).

The latter left the Installer::values array still populating this
variable eventhough it was no longer used in the generators output.

The example in overrides.php is also outdated as modifying this
variable there would have no effect.

Change-Id: I0c86e94a004c034702c5fcd83257c0f4c3d15a57

9 years agoMerge "LivePreview: Wrap content preview with mw-content-*"
jenkins-bot [Sat, 28 Feb 2015 14:47:53 +0000 (14:47 +0000)]
Merge "LivePreview: Wrap content preview with mw-content-*"

9 years agoAvoid access to array key that does not exist
physikerwelt [Fri, 27 Feb 2015 21:53:56 +0000 (16:53 -0500)]
Avoid access to array key that does not exist

Accessing an array element that is not set
causes a PHP notice. This change first, checks if the
array key is present.

Bug: T91127
Change-Id: I468a95851e6acdb8186a06b0a2ac73499cc4611f

9 years agoMerge "Escape messages 'word-separator' and 'parentheses' in InfoAction"
jenkins-bot [Sat, 28 Feb 2015 11:28:54 +0000 (11:28 +0000)]
Merge "Escape messages 'word-separator' and 'parentheses' in InfoAction"

9 years agorefreshLinks.php: Tweak exit condition in deleteLinksFromNonexistent()
Kevin Israel [Sat, 28 Feb 2015 09:54:48 +0000 (04:54 -0500)]
refreshLinks.php: Tweak exit condition in deleteLinksFromNonexistent()

Instead of exiting the do...while loop only once a query returns zero
rows, exit whenever fewer rows than the batch size are returned. This
could save quite a bit of time when the highest nonexistent page_id
found is a relatively low one.

Follows-up 40e300b8273d.

Bug: T44180
Change-Id: I14d2d48c2405fcc0bd05a3181ba6293caef5298c

9 years agoMerge "Gracefully handle redirects in SpecialMyLanguage"
jenkins-bot [Sat, 28 Feb 2015 01:06:30 +0000 (01:06 +0000)]
Merge "Gracefully handle redirects in SpecialMyLanguage"

9 years agoMake sure hash_hmac() always works even if no secret key
kaldari [Fri, 27 Feb 2015 22:40:29 +0000 (14:40 -0800)]
Make sure hash_hmac() always works even if no secret key

Otherwise a fatal error is possible.

Change-Id: Icda96bac3e75f424be068cdad30ad618b503a8e1

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 27 Feb 2015 20:33:56 +0000 (21:33 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I853bf0e029de0348e1ecdcd5cfa624cb12a68947

9 years agoMerge "Made ConfigException extend Exception"
jenkins-bot [Fri, 27 Feb 2015 20:03:25 +0000 (20:03 +0000)]
Merge "Made ConfigException extend Exception"

9 years agoMade ConfigException extend Exception
Aaron Schulz [Fri, 27 Feb 2015 19:24:15 +0000 (11:24 -0800)]
Made ConfigException extend Exception

Change-Id: Ic63c9cbfcb653a2fb39445a3b6ec4b88d8084d7a

9 years agobuild: Work around jshint failure for global JSON object
Roan Kattouw [Fri, 27 Feb 2015 19:04:52 +0000 (11:04 -0800)]
build: Work around jshint failure for global JSON object

jshint is now failing with errors about how it doesn't
recognize the global 'JSON' object, even though we have
browser:true set. This worked in 2.6.0 but broke in 2.6.1.

Other people have reported similar but different problems with
jshint: https://github.com/jshint/jshint/issues/2213 .
It looks like 2.6.1 is a seriously broken release, but we
can't work around it in package.json because grunt-contrib-jshint
depends on 2.6.*, assuming that point releases are backwards
compatible. Which they should be.

Change-Id: I85bcf1c97f2f8c82e139ebf2f1b6c4248b72f45e

9 years agoUpdate OOjs UI to v0.8.2
James D. Forrester [Fri, 27 Feb 2015 18:09:37 +0000 (13:09 -0500)]
Update OOjs UI to v0.8.2

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

Change-Id: Ie6722b1aae1970d628a82c491c8d525768d01925

9 years agoMade SqlBagOStuff avoid tripping TransactionProfiler
Aaron Schulz [Thu, 26 Feb 2015 23:41:50 +0000 (15:41 -0800)]
Made SqlBagOStuff avoid tripping TransactionProfiler

* Set a custom profiler with no expectations to avoid tripping
  the "0 write" expection. This avoids useless log entries.

Change-Id: Iac849a729eb36b1a8affb0dbc8b8c195fab4b03a

9 years agoMerge "installer: Use HTTPS links for licenses"
jenkins-bot [Fri, 27 Feb 2015 17:42:50 +0000 (17:42 +0000)]
Merge "installer: Use HTTPS links for licenses"

9 years agoMerge "refreshLinks.php: Get IDs in batches in deleteLinksFromNonexistent()"
Aaron Schulz [Fri, 27 Feb 2015 17:37:20 +0000 (17:37 +0000)]
Merge "refreshLinks.php: Get IDs in batches in deleteLinksFromNonexistent()"

9 years agoMerge "Fix fatal "Call to setExpectation() on non-object" in MediaWiki::main()"
jenkins-bot [Fri, 27 Feb 2015 16:43:32 +0000 (16:43 +0000)]
Merge "Fix fatal "Call to setExpectation() on non-object" in MediaWiki::main()"

9 years agoMerge "Fix testGetCanonicalName PHPUnit test:"
jenkins-bot [Fri, 27 Feb 2015 16:18:13 +0000 (16:18 +0000)]
Merge "Fix testGetCanonicalName PHPUnit test:"

9 years agorefreshLinks.php: Get IDs in batches in deleteLinksFromNonexistent()
Kevin Israel [Tue, 24 Feb 2015 02:16:23 +0000 (21:16 -0500)]
refreshLinks.php: Get IDs in batches in deleteLinksFromNonexistent()

... instead of making an unbuffered query, which is discouraged in the
doc comment for DatabaseBase::bufferResults().

Also used NOT IN for the antijoin instead of LEFT JOIN...IS NULL; when
combined with DISTINCT, the latter causes MySQL to use a temporary
table rather than an appropriate index, according to EXPLAIN. (Using
GROUP BY instead of DISTINCT also avoids this problem. I don't know why.)

Bug: T44180
Change-Id: Idca85fac7dd7879f9fbef2712b6aa83343099e02

9 years agoMerge "New convenience method ApiBase::lacksSameOriginSecurity()"
jenkins-bot [Fri, 27 Feb 2015 15:14:52 +0000 (15:14 +0000)]
Merge "New convenience method ApiBase::lacksSameOriginSecurity()"

9 years agoNew convenience method ApiBase::lacksSameOriginSecurity()
Ricordisamoa [Wed, 17 Dec 2014 11:09:04 +0000 (11:09 +0000)]
New convenience method ApiBase::lacksSameOriginSecurity()

For consistent handling of API requests with the 'callback' argument.

Change-Id: Ic6e3483f5e8819498c693650a11728efc1bafcc0

9 years agoFix fatal "Call to setExpectation() on non-object" in MediaWiki::main()
Timo Tijhof [Fri, 27 Feb 2015 14:02:24 +0000 (14:02 +0000)]
Fix fatal "Call to setExpectation() on non-object" in MediaWiki::main()

Follows-up b403a757726e2762888e0d0ee50d.

Caught by the qunit tests via Special:RunJobs. The test is still
work-in-progress (T50002) but it's already paying off :)

Change-Id: Idb37ecb97ff77950a981bfe10a46f27e532e1abb

9 years agoMerge "Introduce HashSiteStore, mainly for use in tests"
jenkins-bot [Fri, 27 Feb 2015 11:51:53 +0000 (11:51 +0000)]
Merge "Introduce HashSiteStore, mainly for use in tests"

9 years agoIntroduce HashSiteStore, mainly for use in tests
aude [Thu, 26 Feb 2015 14:53:08 +0000 (15:53 +0100)]
Introduce HashSiteStore, mainly for use in tests

HashSiteStore comes from Wikibase (see I783bd95), where it was
called MockSiteStore.

This enables some phpunit tests, related to Site objects, to no longer
depend on a database, memcached or other external storage. This makes
tests faster and more simple.

Bug: T90874
Change-Id: I048d37bd2aaa5f17c9fe16b2855df8bf9fe7bc8c

9 years agoFix testGetCanonicalName PHPUnit test:
Matthew Flaschen [Fri, 27 Feb 2015 05:35:08 +0000 (00:35 -0500)]
Fix testGetCanonicalName PHPUnit test:

* assertEquals takes expected, prior to actual
  https://phpunit.de/manual/3.7/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.assertions.assertEquals
* ' trailing space ' test was failing with wgCapitalLinks false.  Since the test is not about that,
  I changed it to ' Trailing space '.  The alternative would be to force wgCapitalLinks to true
  with setMwGlobals or skip the test if it's true.

Change-Id: I677273045bdabb6248ffe2c2f003a3673b3fa51c

9 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Fri, 27 Feb 2015 05:37:29 +0000 (05:37 +0000)]
Merge "Sync up with Parsoid parserTests."

9 years agoSync up with Parsoid parserTests.
Arlo Breault [Fri, 27 Feb 2015 04:37:33 +0000 (20:37 -0800)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 47ddba73a5f6078ac265f091d9c9e841c0fdead6

Change-Id: I07bd6edd2d62291f75bea79ab7825e390ccb314e

9 years agoGracefully handle redirects in SpecialMyLanguage
Erik Bernhardson [Fri, 27 Feb 2015 00:19:27 +0000 (16:19 -0800)]
Gracefully handle redirects in SpecialMyLanguage

Currently if you have a link that goes through SpecialMyLanguage
and that page is redirected you will no longer get it in your
language. This adjusts to follow redirects before resolving language.

Bug: T58036
Change-Id: I88fcfeb86d81a33a8eccc6119693c2ecb857afb2

9 years agoMade "maxAffected" query expectation actually apply
Aaron Schulz [Thu, 26 Feb 2015 23:45:29 +0000 (15:45 -0800)]
Made "maxAffected" query expectation actually apply

Change-Id: Ib7796fe0975b50b96c5e1d53384079735eea881d

9 years agoMerge "Made insertMessageBlob only catch DBError for sanity"
jenkins-bot [Thu, 26 Feb 2015 21:46:35 +0000 (21:46 +0000)]
Merge "Made insertMessageBlob only catch DBError for sanity"

9 years agoMade insertMessageBlob only catch DBError for sanity
Aaron Schulz [Thu, 26 Feb 2015 20:40:20 +0000 (12:40 -0800)]
Made insertMessageBlob only catch DBError for sanity

Change-Id: I1614e7fde052e7b6f9d86d86af6eed1ba52dc430

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 26 Feb 2015 20:11:54 +0000 (21:11 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I49e15ff89e58153a9ce674de36127c9ed52e1ad9

9 years agoEscape messages 'word-separator' and 'parentheses' in InfoAction
umherirrender [Fri, 30 Jan 2015 17:08:10 +0000 (18:08 +0100)]
Escape messages 'word-separator' and 'parentheses' in InfoAction

This change will not break the usage of the messages, because there are
usually used escaped in mediawiki/core.

Change-Id: I049134e2fbfadab04ac228090d17fd18c5baca3d

9 years agoMerge "Escape extra input messages on Special:UserLogin/signup"
jenkins-bot [Thu, 26 Feb 2015 20:07:27 +0000 (20:07 +0000)]
Merge "Escape extra input messages on Special:UserLogin/signup"

9 years agoPostgreSQL: Fix timestamp in Special:ListFiles
Jeff Janes [Mon, 23 Feb 2015 21:25:07 +0000 (13:25 -0800)]
PostgreSQL: Fix timestamp in Special:ListFiles

The database field img_timestamp needs to converted
from database timestamp format to the wf internal format.

Bug: T72931
Change-Id: Ifbac6805a43a809962372016668c3e41fcaeb7c0

9 years agoAdd UserArray::newFromNames()
Kunal Mehta [Tue, 24 Feb 2015 20:46:13 +0000 (12:46 -0800)]
Add UserArray::newFromNames()

Change-Id: I91bb8349dd846e982be9294c7f4f3858995ad2eb

9 years agoMerge "Add srcset for images in <gallery>"
jenkins-bot [Thu, 26 Feb 2015 17:22:30 +0000 (17:22 +0000)]
Merge "Add srcset for images in <gallery>"

9 years agoAdd a hook run after EditPage::attemptSave for WikiEditor
Alex Monk [Fri, 6 Feb 2015 19:51:09 +0000 (19:51 +0000)]
Add a hook run after EditPage::attemptSave for WikiEditor

So that we can determine whether a save attempt succeeded or failed,
to log saveSuccess and saveFailure events from the server to Schema:Edit
on meta.

Bug: T88027
Change-Id: Ib861262603872e67600d1aab9bde3b58a8dd1738

9 years agoMerge "Exclude null rows from Special:MediaStatistics"
jenkins-bot [Thu, 26 Feb 2015 16:22:34 +0000 (16:22 +0000)]
Merge "Exclude null rows from Special:MediaStatistics"

9 years agoEscape extra input messages on Special:UserLogin/signup
umherirrender [Thu, 29 Jan 2015 20:45:23 +0000 (21:45 +0100)]
Escape extra input messages on Special:UserLogin/signup

TitleBlacklist and AntiSpoof can register extra input fields with a own
message, this message would now be escaped to avoid use of raw html.
Messages: 'titleblacklist-override' and 'antispoof-ignore'

The messages are now handled similar to checkbox 'createaccountmail'

Bug: T85864
Change-Id: I14326c3844904560b66eb8e8eb7d36706caa47da

9 years agoUpdate OOjs UI to v0.8.1
James D. Forrester [Thu, 26 Feb 2015 02:11:47 +0000 (18:11 -0800)]
Update OOjs UI to v0.8.1

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

Change-Id: I5ad8d6aac0fb4ef146ef4f36459e4b0e398a66e8

9 years agoUpdate OOjs to v1.1.5
James D. Forrester [Thu, 26 Feb 2015 01:59:38 +0000 (17:59 -0800)]
Update OOjs to v1.1.5

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fcore.git/v1.1.5/History.md

Change-Id: If43d0b4704f95abe4a0438a0d5b0756eb77cc95f

9 years agoMerge "Allow configuring the transaction locking mode for SQLite"
jenkins-bot [Thu, 26 Feb 2015 01:28:00 +0000 (01:28 +0000)]
Merge "Allow configuring the transaction locking mode for SQLite"

9 years agoAllow configuring the transaction locking mode for SQLite
Aaron Schulz [Tue, 24 Feb 2015 00:32:00 +0000 (16:32 -0800)]
Allow configuring the transaction locking mode for SQLite

Bug: T89180
Change-Id: Ib18347299ea78f9b31e56313b2acf749f693cddb

9 years agoAdd srcset for images in <gallery>
Brian Wolff [Wed, 25 Feb 2015 23:18:16 +0000 (19:18 -0400)]
Add srcset for images in <gallery>

Bug: T64709
Change-Id: I476beb6cf072c5a38570143d1f56baa3f49d23d4

9 years agoMade the SQLite installer make a separate objectcache DB
Aaron Schulz [Mon, 23 Feb 2015 23:52:31 +0000 (15:52 -0800)]
Made the SQLite installer make a separate objectcache DB

* This avoids severe lock contention if CACHE_DB is used and also makes
  cache sharing between wikis simple (keys are always prefixed as needed).

Bug: T89180
Change-Id: I864272af099a9ebe2b3648e2714d2ccdee20305d

9 years agoExclude null rows from Special:MediaStatistics
Brian Wolff [Wed, 25 Feb 2015 22:23:46 +0000 (18:23 -0400)]
Exclude null rows from Special:MediaStatistics

The commons db has a random null row in the image table, adding
a non-sensical row to this report.

Bug: T74535
Change-Id: Ie290e588af56aee7d5303954202f7923b64d2272

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 25 Feb 2015 21:22:18 +0000 (22:22 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I13f209cdcc50ab68829450d27e64a0f6c6d0f002

9 years agoMerge "Always decode Blob objects from Database::addQuotes"
jenkins-bot [Wed, 25 Feb 2015 21:17:06 +0000 (21:17 +0000)]
Merge "Always decode Blob objects from Database::addQuotes"

9 years agoMerge "PostreSQL: DatabaseBase constructor cleanups"
Aaron Schulz [Wed, 25 Feb 2015 18:36:04 +0000 (18:36 +0000)]
Merge "PostreSQL: DatabaseBase constructor cleanups"

9 years agoPostreSQL: DatabaseBase constructor cleanups
Jeff Janes [Tue, 24 Feb 2015 03:51:29 +0000 (19:51 -0800)]
PostreSQL: DatabaseBase constructor cleanups

Change I29b79a3c1bb2b5e51c1c8f5e04cd08c71e0662a3 rendered
it uninstallable on PostgreSQL.

Make the corresponding API changes to PostgreSQL installer.

Bug: T90288
Change-Id: I2019893ad705d99f3dbbce13690cd808cfb71d4a

9 years agoRun maintenance/generateLocalAutoload.php
Brad Jorsch [Wed, 25 Feb 2015 18:16:13 +0000 (13:16 -0500)]
Run maintenance/generateLocalAutoload.php

I thought a unit test was supposed to fail if this hadn't been run, but
I3936417b and I40fd6aaa recently got merged despite it.

Change-Id: Idb9b4b77a4a1c82ed74ec829fad8c12a9c39af09

9 years agoDon't alias tt special pages to titles with double underscore
Federico Leva [Wed, 25 Feb 2015 16:24:39 +0000 (17:24 +0100)]
Don't alias tt special pages to titles with double underscore

Such titles are invalid, as far as I can see. I get "no such special
page" at https://tt.wikipedia.org/wiki/Special:Unusedimages etc.

Change-Id: Id9869a9af5c67c18af78a925c8c4fdbaef062d32

9 years agoMerge "Start moving objectcache into libs/"
jenkins-bot [Wed, 25 Feb 2015 16:04:49 +0000 (16:04 +0000)]
Merge "Start moving objectcache into libs/"

9 years agoMerge "Avoid calling rollback() in handleWriteError() if there is no trx"
jenkins-bot [Wed, 25 Feb 2015 09:16:04 +0000 (09:16 +0000)]
Merge "Avoid calling rollback() in handleWriteError() if there is no trx"

9 years agoMerge "Fix parameter order for block logs"
jenkins-bot [Wed, 25 Feb 2015 08:34:27 +0000 (08:34 +0000)]
Merge "Fix parameter order for block logs"

9 years agoStart moving objectcache into libs/
Kunal Mehta [Wed, 25 Feb 2015 08:22:50 +0000 (00:22 -0800)]
Start moving objectcache into libs/

The base BagOStuff class and some of the implementations are
not dependent on MediaWiki and can be in the libs folder.

Change-Id: I299f9abb778abc65a70461a2aff3015c02a1f04d

9 years agoAllow subscribing to module loading exceptions
Gergő Tisza [Wed, 14 Jan 2015 07:09:41 +0000 (07:09 +0000)]
Allow subscribing to module loading exceptions

Provide access via mw.track to module loading errors which are
otherwise swallowed by mw.loader.

Bug: T513
Bug: T85263
Change-Id: Ifc13c207af36dc56be931a3b140063354513a4ec