lhc/web/wiklou.git
8 years agoAdd Content-Length header to thumb.php redirects
Giuseppe Lavagetto [Wed, 29 Jul 2015 10:12:55 +0000 (12:12 +0200)]
Add Content-Length header to thumb.php redirects

Without the Content-Length header, the response is sent with
Transfer-Encoding: Chunked, which is somehow mangled by
mod_fastcgi. Varnish then claims the response is malformed and declines
to process it, sending the client a 503 instead.

This is a followup of 0ee9e717f49b9e15bd63fd66f3d0967939c35b05

Bug: T84842
Change-Id: Ia610a43789e6ff14cfc0964f285bbec39c890152

8 years agoSpecial:WhatLinksHere Don't show edit links for non-direct-editing pages
Florian [Thu, 23 Jul 2015 16:15:08 +0000 (18:15 +0200)]
Special:WhatLinksHere Don't show edit links for non-direct-editing pages

It's possible, that pages links to a page, which aren't editable directly
through action=edit. Don't show an edit link for such pages.

Bug: T106680
Change-Id: I01ff6dbd5b4e9fff84795f7c3d8ada23c09c7ae8

8 years agoAvoid revision lookup post-save in InfoAction::invalidateCache()
Kunal Mehta [Wed, 29 Jul 2015 07:42:56 +0000 (00:42 -0700)]
Avoid revision lookup post-save in InfoAction::invalidateCache()

We just saved the page, so we know the revision id. Pass it on to
InfoAction::invalidateCache() so it doesn't have to be looked up again.

Follows-up 0452855044d2d.

Change-Id: I990c0da09fae94f403f3550069036d3f208090a6

8 years agoDefer the InfoAction purge in onArticleEdit()
Aaron Schulz [Wed, 29 Jul 2015 01:06:48 +0000 (18:06 -0700)]
Defer the InfoAction purge in onArticleEdit()

Change-Id: I73fba15c26c12bea1abad219611e660fb3901a86

8 years agoMerge "RedisBagOStuff: if no alternatives, skip master link status check"
jenkins-bot [Tue, 28 Jul 2015 23:53:20 +0000 (23:53 +0000)]
Merge "RedisBagOStuff: if no alternatives, skip master link status check"

8 years agoRedisBagOStuff: if no alternatives, skip master link status check
Ori Livneh [Tue, 28 Jul 2015 23:22:57 +0000 (16:22 -0700)]
RedisBagOStuff: if no alternatives, skip master link status check

If RedisBagOStuff::getConnection() is able to establish a connection, only
check the master link status if automatic failover is enabled and if there are
other viable servers left to consider. If there are no servers left to
consider, or if automatic failover is not configured, just return the
connection handle without subjecting it to further tests.

This will have the side-effect of making RedisBagOStuff compatible with
Nutcracker, which does not implement the INFO command. This is because when
MediaWiki is configured to use Nutcracker, the server pool will consist of a
single server (namely, Nutcracker itself), and thus there will be no other
server to consider, so INFO will never be executed.

Change-Id: I3812ec5a0b22df122bdf44350bc0496574c02ce8

8 years agoUpdate OOjs UI to v0.12.2
James D. Forrester [Tue, 28 Jul 2015 23:19:36 +0000 (16:19 -0700)]
Update OOjs UI to v0.12.2

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

Change-Id: Ic7f4be9eee8c17e00270de8b731ec6206a35f9ad

8 years agoMerge "Track key authentication metrics"
jenkins-bot [Tue, 28 Jul 2015 22:53:29 +0000 (22:53 +0000)]
Merge "Track key authentication metrics"

8 years agoMerge "Update liuggio/statsd-php-client: v1.0.12 -> v1.0.16"
jenkins-bot [Tue, 28 Jul 2015 22:52:45 +0000 (22:52 +0000)]
Merge "Update liuggio/statsd-php-client: v1.0.12 -> v1.0.16"

8 years agoTrack key authentication metrics
Gergő Tisza [Tue, 21 Apr 2015 08:33:40 +0000 (08:33 +0000)]
Track key authentication metrics

Logs a 'login' event for logins via Special:UserLogin
and API action=login. Does not log for implicit login after
account creation and for autologin (e.g. based on an active
CentralAuth global login).

Logs an 'accountcreation' event for account creation via
Special:UserLogin/signup and API action=createaccount. Does not
log for autocreation.

Both successful and unsuccessful attempts are logged, except for
failures that throw exceptions (internal errors + some permission
errors).

Bug: T91701
Change-Id: I101b11d05400b073065da10f1e537412309d9102

8 years agoUpdate liuggio/statsd-php-client: v1.0.12 -> v1.0.16
Gergő Tisza [Wed, 22 Jul 2015 22:35:22 +0000 (15:35 -0700)]
Update liuggio/statsd-php-client: v1.0.12 -> v1.0.16

vendor patch: I307b58f4abe4d615ac9b2f86f50d0c5d6b906d83

Bug: T106457
Change-Id: I6e013485175c63a984d2de205dc45704483d149b

8 years agoLog errors in Http::request()
Gergő Tisza [Wed, 8 Jul 2015 07:39:52 +0000 (07:39 +0000)]
Log errors in Http::request()

Instead of silently discarding errors in server-side HTTP requests,
log them to a 'http' channel.

Make ForeignAPIFile::httpGet() (which sort of reimplements Http::get())
log to the same channel, for consistency.

Bug: T103043
Change-Id: Ibf552e22adc7fde4a751f92e92dad6ceba2f335c

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 28 Jul 2015 19:30:27 +0000 (21:30 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I550fd6329d15eff1f06d70dd6fde7dfb519f9adb

8 years agoFix Southern Luri autonym
mjbmr [Sat, 25 Jul 2015 18:29:06 +0000 (18:29 +0000)]
Fix Southern Luri autonym

Received as feedback from Southern Luri community:
"Dumeni" means "Under" (Southern)

Also removing Northern Luri from the fallback list.
Southern Luri speekers can't understand Northern Luri,
but everyone in the region can understand Persian
(official language in the region).

Follow-up to I68154c19880ee59da05493fb72e735e61c3183aa
Follow-up to I1099cb846f029df850126e59306849b0eec88e7b
Follow-up to I3cc17d61c6f99b42f6befb39a4c1d6544558cd7e

Change-Id: Iaa1d3da94261f23a2e7b6f488ebfcce5cf457413

8 years agoMerge "Don't retry invalid thumbnail requests due to impossible width"
jenkins-bot [Tue, 28 Jul 2015 18:06:59 +0000 (18:06 +0000)]
Merge "Don't retry invalid thumbnail requests due to impossible width"

8 years agoMerge "Implement redirects in CssContent"
jenkins-bot [Tue, 28 Jul 2015 18:03:30 +0000 (18:03 +0000)]
Merge "Implement redirects in CssContent"

8 years agoMerge "Gather more information about pre rendering 500s"
jenkins-bot [Tue, 28 Jul 2015 18:01:39 +0000 (18:01 +0000)]
Merge "Gather more information about pre rendering 500s"

8 years agoMerge "Put "userjs-" in <code> in apihelp-options-description"
jenkins-bot [Tue, 28 Jul 2015 17:56:18 +0000 (17:56 +0000)]
Merge "Put "userjs-" in <code> in apihelp-options-description"

8 years agoImplement redirects in CssContent
Kunal Mehta [Sun, 19 Jul 2015 16:16:16 +0000 (11:16 -0500)]
Implement redirects in CssContent

Just like ad9f14d662f959 which was for JavaScript. The redirect will be
of the form "/* #REDIRECT */@import url(...);".

Bug: T73201
Bug: T35973
Change-Id: I10bae44af4b4923f8797172702974cd45dc25ab4

8 years agoFix typo: requiered -> required
umherirrender [Tue, 28 Jul 2015 17:21:58 +0000 (19:21 +0200)]
Fix typo: requiered -> required

Thanks to Ricordisamoa

Follow-Up: I095c545f77aa50d6be4cd48588bd1ae1c82cf343
Change-Id: I3c40b02865170ba0391f3637a5bebb6058c053fd

8 years agoDon't retry invalid thumbnail requests due to impossible width
Gilles Dubuc [Tue, 28 Jul 2015 15:21:17 +0000 (17:21 +0200)]
Don't retry invalid thumbnail requests due to impossible width

At the moment this isn't going to work in production, because varnish
turns 400s into 500s. But I'll try to fix that separately.

Bug: T106740
Change-Id: Id156ee4ac986ad2a6d7e49dfe8aa7577764eca11

8 years agoGather more information about pre rendering 500s
Gilles Dubuc [Tue, 28 Jul 2015 14:57:18 +0000 (16:57 +0200)]
Gather more information about pre rendering 500s

Bug: T106740
Change-Id: I4a1436f1724fcc74d4c1076b21fcdb3b5d58b1de

8 years agoMerge "Fixed various FileBackendDBRepoWrapper errors found in IDE"
jenkins-bot [Tue, 28 Jul 2015 14:08:22 +0000 (14:08 +0000)]
Merge "Fixed various FileBackendDBRepoWrapper errors found in IDE"

8 years agoMerge "Clear the stat cache in addMissingMetadata() to avoid more POSTs"
jenkins-bot [Tue, 28 Jul 2015 13:45:00 +0000 (13:45 +0000)]
Merge "Clear the stat cache in addMissingMetadata() to avoid more POSTs"

8 years agoMerge "Improved addMissingMetadata() on POST failure"
jenkins-bot [Tue, 28 Jul 2015 13:44:16 +0000 (13:44 +0000)]
Merge "Improved addMissingMetadata() on POST failure"

8 years agoMerge "Consistent wording of tog-enotifwatchlistpages"
jenkins-bot [Tue, 28 Jul 2015 13:37:09 +0000 (13:37 +0000)]
Merge "Consistent wording of tog-enotifwatchlistpages"

8 years agoMerge "Fix the grammar of apihelp-options-param-option(name|value)"
jenkins-bot [Tue, 28 Jul 2015 13:34:50 +0000 (13:34 +0000)]
Merge "Fix the grammar of apihelp-options-param-option(name|value)"

8 years agoFix the grammar of apihelp-options-param-option(name|value)
Amir E. Aharoni [Sun, 26 Jul 2015 17:58:35 +0000 (20:58 +0300)]
Fix the grammar of apihelp-options-param-option(name|value)

Change-Id: I85d20f30b9c3e2d48323fc848d5bc5f59c6b704e

8 years agoConsistent wording of tog-enotifwatchlistpages
Amir E. Aharoni [Thu, 23 Jul 2015 03:34:33 +0000 (22:34 -0500)]
Consistent wording of tog-enotifwatchlistpages

Improve the grammar of this message itself and refer to it using {{int:}}
from apihelp-setnotificationtimestamp-description,
instead of duplicating it.

Change-Id: Ie29c22607ff0176a602a1d695edda12baee18781

8 years agoMerge "resourceloader: Move startup code from PHP to startup.js"
jenkins-bot [Tue, 28 Jul 2015 10:51:52 +0000 (10:51 +0000)]
Merge "resourceloader: Move startup code from PHP to startup.js"

8 years agoMerge "SpecialStatistics: Implement statistics-articles-desc message"
jenkins-bot [Tue, 28 Jul 2015 10:22:58 +0000 (10:22 +0000)]
Merge "SpecialStatistics: Implement statistics-articles-desc message"

8 years agoMerge "resourceloader: Add must-revalidate to Cache-Control"
jenkins-bot [Tue, 28 Jul 2015 02:57:01 +0000 (02:57 +0000)]
Merge "resourceloader: Add must-revalidate to Cache-Control"

8 years agoresourceloader: Add must-revalidate to Cache-Control
Roan Kattouw [Tue, 28 Jul 2015 02:27:39 +0000 (19:27 -0700)]
resourceloader: Add must-revalidate to Cache-Control

Bug: T105255
Change-Id: Ifdd32560335dee3bdd3a2844c8169e5b963b18c5

8 years agoresourceloader: Move startup code from PHP to startup.js
Timo Tijhof [Mon, 27 Jul 2015 22:47:05 +0000 (15:47 -0700)]
resourceloader: Move startup code from PHP to startup.js

The code is easier to maintain in an actual JavaScript file.
Especially with how variables were declared and concatenated in
a different order.

Change-Id: I758acb78de1cdf2128e81c86f992807ef0dbf444

8 years agoMerge "Make addedwatchtext less verbose"
jenkins-bot [Mon, 27 Jul 2015 23:23:58 +0000 (23:23 +0000)]
Merge "Make addedwatchtext less verbose"

8 years agoMerge "Use OOUI HTMLForm for Special:Watchlist"
jenkins-bot [Mon, 27 Jul 2015 22:39:04 +0000 (22:39 +0000)]
Merge "Use OOUI HTMLForm for Special:Watchlist"

8 years agoPut "userjs-" in <code> in apihelp-options-description
Amir E. Aharoni [Sun, 26 Jul 2015 17:49:07 +0000 (20:49 +0300)]
Put "userjs-" in <code> in apihelp-options-description

This is good for markup, and is also useful for applying dir="ltr"
in languages where it is needed.

Change-Id: I4fbe7af8a3a83e3137a5bd014032a5ffa2ca4939

8 years agoMerge "Updater: Avoid fatal on wfLoadSkin/wfLoadExtension"
jenkins-bot [Mon, 27 Jul 2015 21:22:14 +0000 (21:22 +0000)]
Merge "Updater: Avoid fatal on wfLoadSkin/wfLoadExtension"

8 years agoMerge "Fix the logic of the message apihelp-tag-example-rev"
jenkins-bot [Mon, 27 Jul 2015 21:15:54 +0000 (21:15 +0000)]
Merge "Fix the logic of the message apihelp-tag-example-rev"

8 years agoMerge "Consistent wording for "Protocol of the URL" messages"
jenkins-bot [Mon, 27 Jul 2015 21:08:33 +0000 (21:08 +0000)]
Merge "Consistent wording for "Protocol of the URL" messages"

8 years agoMerge "Auto-forward to search suggestion when zero results"
jenkins-bot [Mon, 27 Jul 2015 21:05:07 +0000 (21:05 +0000)]
Merge "Auto-forward to search suggestion when zero results"

8 years agoFix the logic of the message apihelp-tag-example-rev
Amir E. Aharoni [Sun, 26 Jul 2015 23:47:47 +0000 (02:47 +0300)]
Fix the logic of the message apihelp-tag-example-rev

Adding is usually "to", not "from".

Change-Id: I1ec55a42802bbe352c1f307f6c8e25136592ec22

8 years agoConsistent wording for "Protocol of the URL" messages
Amir E. Aharoni [Sun, 26 Jul 2015 09:23:03 +0000 (12:23 +0300)]
Consistent wording for "Protocol of the URL" messages

This message seems to have virtually the same intention as
apihelp-query+extlinks-param-protocol, so make their wording
completely the same.

Change-Id: I1c35dba7905af4fffbc9ca2153051debbd0ac139

8 years agoUse OOUI HTMLForm for Special:Watchlist
Florian [Mon, 6 Jul 2015 17:48:31 +0000 (19:48 +0200)]
Use OOUI HTMLForm for Special:Watchlist

Bug: T99256
Change-Id: I47a8649208279a4090623a3088112fcff9abc4d3

8 years agoMerge "Fix grammar in apihelp-query+deletedrevs-param-prop"
jenkins-bot [Mon, 27 Jul 2015 19:41:36 +0000 (19:41 +0000)]
Merge "Fix grammar in apihelp-query+deletedrevs-param-prop"

8 years agoMerge "Replace all-caps with <strong> in an apihelp message"
jenkins-bot [Mon, 27 Jul 2015 19:40:52 +0000 (19:40 +0000)]
Merge "Replace all-caps with <strong> in an apihelp message"

8 years agoMerge "Fix grammar in apihelp-query+filearchive-param-prop"
jenkins-bot [Mon, 27 Jul 2015 19:31:28 +0000 (19:31 +0000)]
Merge "Fix grammar in apihelp-query+filearchive-param-prop"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 27 Jul 2015 19:22:31 +0000 (21:22 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id70e4da81b8de05d4b193495a8f1d6e340bbf092

8 years agoUpdater: Avoid fatal on wfLoadSkin/wfLoadExtension
umherirrender [Mon, 27 Jul 2015 19:04:36 +0000 (21:04 +0200)]
Updater: Avoid fatal on wfLoadSkin/wfLoadExtension

When having $wgExtensionDirectory or $wgStyleDirectory set to a
different location in LocalSettings.php, the load of LocalSettings.php
can give fatal, because the called functions wfLoadSkin and
wfLoadExtensions need at least this globals to be set correctly.

This does not bring the vector skin back to the updater, when having the
globals set, but it avoids a fatal about "MonoBook/skin.json does not
exist!" or similar.

Change-Id: I095c545f77aa50d6be4cd48588bd1ae1c82cf343

8 years agoFix grammar in apihelp-query+deletedrevs-param-prop
Amir E. Aharoni [Sun, 26 Jul 2015 20:41:02 +0000 (23:41 +0300)]
Fix grammar in apihelp-query+deletedrevs-param-prop

Change-Id: Ieb7ccdb2d707a090e8f8dc5af7af9ce5be654aae

8 years agoMoment.js: Use DMY date format for English
Bartosz Dziewoński [Sat, 25 Jul 2015 12:07:39 +0000 (14:07 +0200)]
Moment.js: Use DMY date format for English

In accordance with MediaWiki's date formatting routines.

For now, we continue not handling configuration options or user
preferences in this code, although might be a good idea at some point.
I prefer to keep this patch as simple as possible.

Change-Id: I3f490e4bf6b573b5797e00316ec1e648f611765e

8 years agoFix grammar in apihelp-query+filearchive-param-prop
Amir E. Aharoni [Thu, 23 Jul 2015 00:57:09 +0000 (19:57 -0500)]
Fix grammar in apihelp-query+filearchive-param-prop

Change-Id: I2f89b34ddc40a02f15435393bcb936802a96803a

8 years agoReplace all-caps with <strong> in an apihelp message
Amir E. Aharoni [Sun, 26 Jul 2015 20:28:15 +0000 (23:28 +0300)]
Replace all-caps with <strong> in an apihelp message

All-caps emphasis cannot be translated to caseless writing systems.

Change-Id: If9a12aa823fde9a540ecbafa7a9f3f6300228e4b

8 years agoMerge "Fix the logic in an apihelp message"
jenkins-bot [Mon, 27 Jul 2015 18:27:57 +0000 (18:27 +0000)]
Merge "Fix the logic in an apihelp message"

8 years agoMerge "Change spelling in apihelp-emailuser-example-email"
jenkins-bot [Mon, 27 Jul 2015 18:27:53 +0000 (18:27 +0000)]
Merge "Change spelling in apihelp-emailuser-example-email"

8 years agoMerge "Add full stop to apihelp-query+revisions+base-param-difftotext"
jenkins-bot [Mon, 27 Jul 2015 18:25:52 +0000 (18:25 +0000)]
Merge "Add full stop to apihelp-query+revisions+base-param-difftotext"

8 years agoMerge "Fix the grammar of apihelp-query+backlinks-param-limit"
jenkins-bot [Mon, 27 Jul 2015 18:25:08 +0000 (18:25 +0000)]
Merge "Fix the grammar of apihelp-query+backlinks-param-limit"

8 years agoAdd full stop to apihelp-query+revisions+base-param-difftotext
Amir E. Aharoni [Mon, 27 Jul 2015 18:11:22 +0000 (21:11 +0300)]
Add full stop to apihelp-query+revisions+base-param-difftotext

Change-Id: Ibe24632434387b56eb47bce16f57f83cdc28a24c

8 years agoMerge "Don't let LinkCache grow indefinitely"
jenkins-bot [Mon, 27 Jul 2015 17:53:57 +0000 (17:53 +0000)]
Merge "Don't let LinkCache grow indefinitely"

8 years agoFix the grammar of apihelp-query+backlinks-param-limit
Amir E. Aharoni [Sun, 26 Jul 2015 21:32:50 +0000 (00:32 +0300)]
Fix the grammar of apihelp-query+backlinks-param-limit

This patch also makes it identical to apihelp-query+imageusage-param-limit,
which is probably the intention.

Change-Id: I5ea6a81b9d0be8621c09eb02545ed7cc303bb2f2

8 years agoChange spelling in apihelp-emailuser-example-email
Amir E. Aharoni [Mon, 27 Jul 2015 17:32:05 +0000 (20:32 +0300)]
Change spelling in apihelp-emailuser-example-email

No reason for capital "User" here.

Change-Id: I78d425e3c2d46a5b40c779d57f9477d26dd91b59

8 years agoFix the logic in an apihelp message
Amir E. Aharoni [Sun, 26 Jul 2015 22:43:17 +0000 (01:43 +0300)]
Fix the logic in an apihelp message

Ending the listing should probably be "at", not "from".

Change-Id: I613a74680367d10ce453a730d476fd79c98ea04d

8 years agoMerge "SpecialBlock: Simplify HTMLForm submit callback handling"
jenkins-bot [Mon, 27 Jul 2015 17:29:34 +0000 (17:29 +0000)]
Merge "SpecialBlock: Simplify HTMLForm submit callback handling"

8 years agoDon't let LinkCache grow indefinitely
Kunal Mehta [Sun, 26 Jul 2015 23:07:59 +0000 (16:07 -0700)]
Don't let LinkCache grow indefinitely

Especially in long running maintenance scripts, this can be problematic.

LinkCache is now LRU-based, and will store a maximum of 10,000 good titles,
and 10,000 bad ones.

LinkCache::getGoodLinks() and getBadLinks() are deprecated since they
problematic to support in this implementation and are unused.

Bug: T106998
Change-Id: I1328149d65a5e75a5d6e10cb2686a099562a1847

8 years agoMerge "Implement CalendarWidget and DateInputWidget"
jenkins-bot [Mon, 27 Jul 2015 17:18:24 +0000 (17:18 +0000)]
Merge "Implement CalendarWidget and DateInputWidget"

8 years agoSpecialBlock: Simplify HTMLForm submit callback handling
Bartosz Dziewoński [Mon, 27 Jul 2015 14:23:24 +0000 (16:23 +0200)]
SpecialBlock: Simplify HTMLForm submit callback handling

We can just use onSubmit() instead of our own custom stuff.
The comment stating that we can't is wrong; perhaps it used
to be correct, back when it was written.

Change-Id: Ib18fb7292a67b471e9ad13cf38038287b9bd2bd2

8 years agoImplement CalendarWidget and DateInputWidget
Bartosz Dziewoński [Thu, 23 Jul 2015 21:47:08 +0000 (23:47 +0200)]
Implement CalendarWidget and DateInputWidget

Example usage: I193fcd3175ebc96297f9d2cdd0f4de428388dd8e

Bug: T97425
Change-Id: I6f760f7c32e2e6ed2008e897af72fb9e17dd663b

8 years agoMerge "Read extension.json files in the web updater"
jenkins-bot [Mon, 27 Jul 2015 16:52:55 +0000 (16:52 +0000)]
Merge "Read extension.json files in the web updater"

8 years agoMerge "mediawiki.legacy.shared: Set form field labels to 'vertical-align: middle'"
Prtksxna [Mon, 27 Jul 2015 16:23:18 +0000 (16:23 +0000)]
Merge "mediawiki.legacy.shared: Set form field labels to 'vertical-align: middle'"

8 years agoAuto-forward to search suggestion when zero results
Erik Bernhardson [Thu, 9 Jul 2015 18:43:04 +0000 (11:43 -0700)]
Auto-forward to search suggestion when zero results

If the user gets zero results, but gets a "Did you mean" result, just
run the query for the "Did you mean" result and inform the user that
this happened. Adds a new query param 'runsuggestion' which will, when
given a falsy value, prevent running the suggestion and give the result
to the original query.

Bug: T105202
Change-Id: I7ed79942c242b1957d46bdcad59985f37466fb83

8 years agoMerge "Convert Special:RandomInCategory to use OOUI display format"
jenkins-bot [Mon, 27 Jul 2015 04:14:53 +0000 (04:14 +0000)]
Merge "Convert Special:RandomInCategory to use OOUI display format"

8 years agoMerge "HTMLTitleTextField: Support 'relative' config option"
jenkins-bot [Mon, 27 Jul 2015 02:12:47 +0000 (02:12 +0000)]
Merge "HTMLTitleTextField: Support 'relative' config option"

8 years agoKill broken OOUI implementations of HTMLSelectAndOtherField, HTMLSelectOrOtherField
Bartosz Dziewoński [Sun, 26 Jul 2015 23:22:56 +0000 (01:22 +0200)]
Kill broken OOUI implementations of HTMLSelectAndOtherField, HTMLSelectOrOtherField

They inherited getInputOOUI() from their respective parents, which
obviously didn't work correctly. These shouldn't be inheriting from
incompatible parents, probably… but meh.

Change-Id: Id99ee74c4efd27fab0ee32555723a02df8015458

8 years agoMerge "SpecialChangeContentModel: Use autocomplete for title field"
jenkins-bot [Sun, 26 Jul 2015 22:18:50 +0000 (22:18 +0000)]
Merge "SpecialChangeContentModel: Use autocomplete for title field"

8 years agoMerge "Allow HTMLTitleTextField to work on GET forms"
jenkins-bot [Sun, 26 Jul 2015 22:18:32 +0000 (22:18 +0000)]
Merge "Allow HTMLTitleTextField to work on GET forms"

8 years agomediawiki.legacy.shared: Set form field labels to 'vertical-align: middle'
Bartosz Dziewoński [Mon, 20 Jul 2015 13:59:27 +0000 (15:59 +0200)]
mediawiki.legacy.shared: Set form field labels to 'vertical-align: middle'

'vertical-align: top' doesn't look right when the field is a bit
higher than text, which is the case in MediaWiki UI and OOUI forms.
Doesn't seem to break anything in plain forms, as far as I could tell.

Change-Id: I0fb4b30248816fedf46144dd3868e7b858203c8c

8 years agoConvert Special:RandomInCategory to use OOUI display format
Kunal Mehta [Sat, 4 Jul 2015 07:40:15 +0000 (00:40 -0700)]
Convert Special:RandomInCategory to use OOUI display format

And set up autocompletion and validation for the Category input.

Change-Id: I4c0b11e2ae0cfa906bbde77fc89901cf88a9a5bd

8 years agoHTMLTitleTextField: Support 'relative' config option
Bartosz Dziewoński [Sun, 26 Jul 2015 20:54:45 +0000 (22:54 +0200)]
HTMLTitleTextField: Support 'relative' config option

Uses:
* SpecialExport: I2b3524e61efc618aa2b7484134bba562d5f9011c
* SpecialRandomInCategory: I4c0b11e2ae0cfa906bbde77fc89901cf88a9a5bd

Change-Id: Ia7c773fee34fd8809c8683c62d700f5373ceb45c

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 26 Jul 2015 19:15:45 +0000 (21:15 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I9caa7403537f589c651c7d08308c660fd680b277

8 years agoRead extension.json files in the web updater
Kunal Mehta [Mon, 8 Jun 2015 00:04:07 +0000 (17:04 -0700)]
Read extension.json files in the web updater

The web updater reads LocalSettings.php in function scope to figure out
what extensions have been loaded. This doesn't work for extensions being
loaded through the ExtensionRegistry since they're only added to a
queue.

This adds the ability for the installer to read and get information from
the current extension load queue. LocalSettings.php is still read for
extensions that have not been converted yet.

Other uses of Installer::getExistingLocalSettings() were audited and
determined to be safe with regards to extension usage.

Extensions that register hooks using explicit globals
($GLOBALS['wgHooks']['FooBar']) are still broken.

Bug: T100414
Change-Id: Icc574a38a7947a1e3aff8622a4889e9dcfd7a4b2

8 years agoShow correct default limit in Special:BlockList
Florianschmidtwelzow [Wed, 27 May 2015 06:21:26 +0000 (08:21 +0200)]
Show correct default limit in Special:BlockList

Instead of hardcoded default of 50, use the default, which is used
in BlockListPager, which can be a user setting.

Bug: T71132
Change-Id: I5a7f0eb71782cc2282098368a2caf9c893b688fa

8 years agoSpecialStatistics: Implement statistics-articles-desc message
Timo Tijhof [Fri, 24 Jul 2015 21:11:09 +0000 (14:11 -0700)]
SpecialStatistics: Implement statistics-articles-desc message

Similar to the statistics-pages-desc message that exists already.
This way mediawiki.org can stop using the hack currently employed
in the local override for the 'statistics-articles' message which
adds a line break inside the link label to emulate a caption. This
doesn't work well because it breaks after the first link.

Also:
* Change from exists() to !isDisabled() so that it can be optional.
* Fix wrong use of Xml::element and use Html::rawElement instead.
  The message in question is already escaped. This was causing
  escaped parser html to render as text on the page when the desc
  message contains e.g. a wiki link.

Change-Id: I547d1da16c8bdbabddad35525a5c9fa34b8318d4

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 25 Jul 2015 19:41:30 +0000 (21:41 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1ef8b132428cecab9acc3a7fa55c0a93ad9a622a

8 years agoAdded CachingSiteStore APC comments
Aaron Schulz [Tue, 21 Jul 2015 19:52:30 +0000 (12:52 -0700)]
Added CachingSiteStore APC comments

Change-Id: I9ed8fe42cb40beb80dc789099ca09b7a077c07bd

8 years agoSpecialAllMessages: Add missing <select id=""> for the <label for="">
Fomafix [Thu, 23 Jul 2015 08:41:27 +0000 (08:41 +0000)]
SpecialAllMessages: Add missing <select id=""> for the <label for="">

Resolves validation error:
The for attribute of the label element must refer to a form control.

Change-Id: I5093cadd1ce706a91c22d038109e51df03819d5c

8 years agoMerge "HTMLForm: Allow IP adresses as username in HTMLUserTextField"
jenkins-bot [Sat, 25 Jul 2015 01:48:17 +0000 (01:48 +0000)]
Merge "HTMLForm: Allow IP adresses as username in HTMLUserTextField"

8 years agoSpecialChangeContentModel: Use autocomplete for title field
Kunal Mehta [Wed, 1 Jul 2015 05:31:14 +0000 (22:31 -0700)]
SpecialChangeContentModel: Use autocomplete for title field

Change-Id: I766da59e6cbf7ed8f887d1a684ea9e284e9cf67e

8 years agoAllow HTMLTitleTextField to work on GET forms
Kunal Mehta [Sat, 25 Jul 2015 01:18:49 +0000 (18:18 -0700)]
Allow HTMLTitleTextField to work on GET forms

Just skip validation if it is a GET form and the current input is an
empty string. Callers will need to check that it is not the empty string
though.

Also make sure HTMLForm::mMethod is always lowercase.

Change-Id: I605f32048fe97eebd7e04b6ffd799759aeb7f31e

8 years agoMerge "Revert "Convert Special:Search to OOUI""
jenkins-bot [Fri, 24 Jul 2015 21:00:16 +0000 (21:00 +0000)]
Merge "Revert "Convert Special:Search to OOUI""

8 years agoRevert "Convert Special:Search to OOUI"
EBernhardson [Fri, 24 Jul 2015 20:10:52 +0000 (20:10 +0000)]
Revert "Convert Special:Search to OOUI"

This reverts commit 855f4cc0bf7e769ae947597ca5ea5007965f5bad.

Bug: T106273
Change-Id: Iba0ffc05458a855590b7aa0fb887417be8304de1

8 years agoEscape unescaped content shown in Special:BlockList
Niklas Laxström [Sat, 6 Dec 2014 10:51:39 +0000 (11:51 +0100)]
Escape unescaped content shown in Special:BlockList

Change-Id: I38bd12613b4066c312635f9920a9e2d2002dbf6d

8 years agoMerge "Increase $wgSVGMaxSize to 5120 pixels wide (previously 2048)."
jenkins-bot [Fri, 24 Jul 2015 19:51:11 +0000 (19:51 +0000)]
Merge "Increase $wgSVGMaxSize to 5120 pixels wide (previously 2048)."

8 years agoMerge "build: Use blacklist instead of whitelist for jshint/jscs/jsonlint"
jenkins-bot [Fri, 24 Jul 2015 19:41:34 +0000 (19:41 +0000)]
Merge "build: Use blacklist instead of whitelist for jshint/jscs/jsonlint"

8 years agoMerge "SpecialAllMessages: Apply wfBCP47() to HTML lang attribute"
jenkins-bot [Fri, 24 Jul 2015 19:31:37 +0000 (19:31 +0000)]
Merge "SpecialAllMessages: Apply wfBCP47() to HTML lang attribute"

8 years agoMerge "Rework PHP and vendor check"
jenkins-bot [Fri, 24 Jul 2015 19:21:54 +0000 (19:21 +0000)]
Merge "Rework PHP and vendor check"

8 years agoMerge "Update fallback order for luz"
jenkins-bot [Fri, 24 Jul 2015 18:55:54 +0000 (18:55 +0000)]
Merge "Update fallback order for luz"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 24 Jul 2015 18:51:17 +0000 (20:51 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Iece9968f0faa42899222700c347c4a8a4aefe0ef

8 years agoMerge "The http-invalid-url message has a parameter, so send it"
jenkins-bot [Fri, 24 Jul 2015 18:10:15 +0000 (18:10 +0000)]
Merge "The http-invalid-url message has a parameter, so send it"

8 years agoHTMLForm: Allow IP adresses as username in HTMLUserTextField
Florian [Fri, 24 Jul 2015 16:59:53 +0000 (18:59 +0200)]
HTMLForm: Allow IP adresses as username in HTMLUserTextField

Can be configured with the 'ipallowed' config parameter, which defaults
to false (IP's not allowed).

Bug: T106807
Change-Id: Ib2885883bdb3383c60382bf3257afdfc3cc26821

8 years agoMerge "OutputPage.php: Use descriptive $variant instead of $_v as local variable"
jenkins-bot [Fri, 24 Jul 2015 16:58:35 +0000 (16:58 +0000)]
Merge "OutputPage.php: Use descriptive $variant instead of $_v as local variable"