lhc/web/wiklou.git
10 years agoRevert "jquery.textSelection: Remove hardcoded checks for removed WikiEditor iframe...
Alex Monk [Sun, 4 May 2014 02:24:33 +0000 (02:24 +0000)]
Revert "jquery.textSelection: Remove hardcoded checks for removed WikiEditor iframe mode"

Appears to have broken CodeEditor

This reverts commit c40b6fa9b0a0e17729a75661f80e7882cb0598e1.

Change-Id: I6d04cb91527defe1fdb0d7fb2a324fe1417a89f7

10 years agojquery.textSelection: Remove hardcoded checks for removed WikiEditor iframe mode
Bartosz Dziewoński [Wed, 30 Apr 2014 17:59:33 +0000 (19:59 +0200)]
jquery.textSelection: Remove hardcoded checks for removed WikiEditor iframe mode

Bug: 29328
Change-Id: I6c813cb5601bf79375444b4a1c598218102ce321

10 years agoMerge "Fixed "getCachedWork" callback in thumb.php to avoid 404s in the stream method"
jenkins-bot [Wed, 30 Apr 2014 17:44:17 +0000 (17:44 +0000)]
Merge "Fixed "getCachedWork" callback in thumb.php to avoid 404s in the stream method"

10 years agoFixed "getCachedWork" callback in thumb.php to avoid 404s in the stream method
Aaron Schulz [Wed, 30 Apr 2014 07:50:16 +0000 (00:50 -0700)]
Fixed "getCachedWork" callback in thumb.php to avoid 404s in the stream method

Change-Id: Id3781b87023291b9f7b2c7b3d8ae429a4065c227

10 years agoMerge "Removed commented-out migrateThumbFile() code"
jenkins-bot [Wed, 30 Apr 2014 17:22:45 +0000 (17:22 +0000)]
Merge "Removed commented-out migrateThumbFile() code"

10 years agoMerge "Made DB errors go to the exception log again"
jenkins-bot [Wed, 30 Apr 2014 17:21:47 +0000 (17:21 +0000)]
Merge "Made DB errors go to the exception log again"

10 years agoMoved isDeleted() check down to avoid information leakage in thumb.php
Aaron Schulz [Wed, 30 Apr 2014 07:51:35 +0000 (00:51 -0700)]
Moved isDeleted() check down to avoid information leakage in thumb.php

Change-Id: Idcbf79ef7c82f5bcf3c0ab1002fde2201d81313f

10 years agoRemoved commented-out migrateThumbFile() code
Aaron Schulz [Wed, 30 Apr 2014 07:30:37 +0000 (00:30 -0700)]
Removed commented-out migrateThumbFile() code

Change-Id: Ic52d3a8d93808b365c3f06fef9e51d65efcd1d57

10 years agoMerge "Added VirtualRESTServiceClient/VirtualRESTService classes"
jenkins-bot [Wed, 30 Apr 2014 03:09:54 +0000 (03:09 +0000)]
Merge "Added VirtualRESTServiceClient/VirtualRESTService classes"

10 years agoMerge "Tweaked wfThumbIsStandard() to recognize handler-specific default parameters"
jenkins-bot [Wed, 30 Apr 2014 01:35:12 +0000 (01:35 +0000)]
Merge "Tweaked wfThumbIsStandard() to recognize handler-specific default parameters"

10 years agoUpdate OOjs UI to v0.1.0-pre (70f1886a35)
James D. Forrester [Wed, 30 Apr 2014 00:13:15 +0000 (17:13 -0700)]
Update OOjs UI to v0.1.0-pre (70f1886a35)

New changes:
c486e35 Add info icon and alert indicator
5928259 Add a 'ready' event to the window open sequence
d2f1933 Improve info and alert icons/indicators
6d78021 Defer window 'ready' event to let rendering happen
7705a94 Add focus method to SearchWidget
70f1886 Improve alert and required indicators

Change-Id: I58ae4c8154d45b34e2dcd404a5d8c3c9bbffd32f

10 years agoAdded VirtualRESTServiceClient/VirtualRESTService classes
Aaron Schulz [Tue, 28 Jan 2014 20:21:29 +0000 (12:21 -0800)]
Added VirtualRESTServiceClient/VirtualRESTService classes

* Reference handling cleanup for loops in MultiHttpClient
* Support a slightly more convenient request array format for MultiHttpClient
* Added missing license header to MultiHttpClient

Change-Id: Icc86ed9e4c2ac78363aa7b6f3147253bb59e2afb

10 years agoApiParse: Add prop=modules
Bartosz Dziewoński [Wed, 16 Apr 2014 21:07:54 +0000 (23:07 +0200)]
ApiParse: Add prop=modules

action=parse&prop=modules now provides the ResourceLoader modules used
on the page (included in the ParserOutput object). This is intended to
be used by the live preview functionality.

Bug: 24134
Change-Id: Ib5032e4eeaf6bb97dac965c580a5107437c7bbd4

10 years agoTweaked wfThumbIsStandard() to recognize handler-specific default parameters
Aaron Schulz [Tue, 29 Apr 2014 21:39:05 +0000 (14:39 -0700)]
Tweaked wfThumbIsStandard() to recognize handler-specific default parameters

* Now thumbnails with default lossy/lossless values will still count as "standard",
  for example. This makes use of the file media handler.

Change-Id: Ia69301dfbf85bb26a17f8eee0939d690021343ec

10 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Tue, 29 Apr 2014 21:07:06 +0000 (21:07 +0000)]
Merge "Sync up with Parsoid parserTests."

10 years agoMerge "vector: Apply content text style via .mw-body-content instead of #bodyContent"
jenkins-bot [Tue, 29 Apr 2014 20:46:04 +0000 (20:46 +0000)]
Merge "vector: Apply content text style via .mw-body-content instead of #bodyContent"

10 years agovector: Apply content text style via .mw-body-content instead of #bodyContent
Trevor Parscal [Thu, 24 Apr 2014 20:28:46 +0000 (13:28 -0700)]
vector: Apply content text style via .mw-body-content instead of #bodyContent

Font size, line height and positioning styles related to content
rendering should be re-usable for applying in other contexts.
Not just the #bodyContent div.

The use of classes for content styling has been recommended and generally
agreed upon, specifically in the context of the RFC about scoping site CSS:
    https://www.mediawiki.org/wiki/Requests_for_comment/Scoping_site_CSS

This change takes the first step toward introducing a reusable class
throughout the UI to apply content-specific styles where needed.

This also makes it possible to resolve a bug in which VisualEditor
does not receive the correct styles because it creates the edit surface
outside the #bodyContent (but within #content) and had no way to
receive the same styling.

Bug: 63985
Change-Id: I66c56c577bad064261c3e4a62a1c1b2566d53972

10 years agoSync up with Parsoid parserTests.
C. Scott Ananian [Tue, 29 Apr 2014 19:59:43 +0000 (15:59 -0400)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit c257ad0880a19df3f10d9942896da9a40f57b17c

Change-Id: I64786aeb0ed264b8f8638106be114a8a2a1cd682

10 years agoMerge "Fix some issues with Microsoft SQL Server support"
jenkins-bot [Tue, 29 Apr 2014 20:15:31 +0000 (20:15 +0000)]
Merge "Fix some issues with Microsoft SQL Server support"

10 years agoMerge "Fix IE9's lack of support for console.warn.apply"
jenkins-bot [Tue, 29 Apr 2014 19:47:00 +0000 (19:47 +0000)]
Merge "Fix IE9's lack of support for console.warn.apply"

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Tue, 29 Apr 2014 19:40:12 +0000 (19:40 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 29 Apr 2014 19:30:48 +0000 (19:30 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I6903588d1a8100f44ee0b3aca6025daa69a0bc63

10 years agoMerge "Addition of a parser test for page= parameter of image inclusion"
jenkins-bot [Tue, 29 Apr 2014 19:29:20 +0000 (19:29 +0000)]
Merge "Addition of a parser test for page= parameter of image inclusion"

10 years agoFix IE9's lack of support for console.warn.apply
Mark A. Hershberger [Thu, 10 Apr 2014 15:22:51 +0000 (11:22 -0400)]
Fix IE9's lack of support for console.warn.apply

Bug: 63770
Change-Id: I8c286af374df5b5c1e7fa6b9ea1bef2ddaf5d796

10 years agoMerge "Remove JSDuck 4 support"
jenkins-bot [Tue, 29 Apr 2014 18:40:50 +0000 (18:40 +0000)]
Merge "Remove JSDuck 4 support"

10 years agowikibits.js: Remove false deprecation notices
Bartosz Dziewoński [Tue, 29 Apr 2014 18:20:32 +0000 (20:20 +0200)]
wikibits.js: Remove false deprecation notices

We are clearly not removing these properties/functions in 1.23.

Bug: 63964
Change-Id: I5737c053d7e9eb5f6a3c6770475b6c2c8f48adab

10 years agoRemove JSDuck 4 support
Timo Tijhof [Tue, 29 Apr 2014 18:25:26 +0000 (20:25 +0200)]
Remove JSDuck 4 support

Also fold more of the options back into jsduck/config.json which
makes it easier to run without the maintenance script.

The maintenance script only serves as convenience for
publication via Jenkins where we want a branch-specific footnote
and disablle parallel processing since that doesn't work in the
Ruby version used in wmf-production.

Change-Id: I2e1e89408328c614a89f6c4e408df90d1e346d76

10 years agoMerge "The $CHANGEDORCREATED parameter to the 'enotif_body' message will not be remov...
jenkins-bot [Tue, 29 Apr 2014 18:15:48 +0000 (18:15 +0000)]
Merge "The $CHANGEDORCREATED parameter to the 'enotif_body' message will not be removed in 1.23"

10 years agoAddition of a parser test for page= parameter of image inclusion
Tpt [Wed, 18 Dec 2013 17:56:15 +0000 (18:56 +0100)]
Addition of a parser test for page= parameter of image inclusion

Support for DjVu is detected and parser tests that rely on it are disabled if needed.

Introduce DjVuSupport to easily detect DjVu support in unit tests

Change-Id: I53fd7b54e765d5f349abe74481bbc6f62f2b349e

10 years agoMerge "Do not increment the total site edit count on null edits"
jenkins-bot [Tue, 29 Apr 2014 17:06:28 +0000 (17:06 +0000)]
Merge "Do not increment the total site edit count on null edits"

10 years agoMerge "Make the link in printfooter explicitly ltr"
jenkins-bot [Tue, 29 Apr 2014 16:37:00 +0000 (16:37 +0000)]
Merge "Make the link in printfooter explicitly ltr"

10 years agoMerge "Document that IContextSource::getTitle can return null"
jenkins-bot [Tue, 29 Apr 2014 14:42:57 +0000 (14:42 +0000)]
Merge "Document that IContextSource::getTitle can return null"

10 years agoMerge "JSDuck-ify /resources/mediawiki.page/*"
jenkins-bot [Tue, 29 Apr 2014 13:48:28 +0000 (13:48 +0000)]
Merge "JSDuck-ify /resources/mediawiki.page/*"

10 years agoMerge "JSDuck-ify /resources/mediawiki.action/*"
jenkins-bot [Tue, 29 Apr 2014 13:42:58 +0000 (13:42 +0000)]
Merge "JSDuck-ify /resources/mediawiki.action/*"

10 years agoMerge "jquery.tabIndex: Add jsduck documentation"
jenkins-bot [Tue, 29 Apr 2014 13:41:39 +0000 (13:41 +0000)]
Merge "jquery.tabIndex: Add jsduck documentation"

10 years agoJSDuck-ify /resources/mediawiki.page/*
Timo Tijhof [Sun, 27 Apr 2014 15:29:54 +0000 (17:29 +0200)]
JSDuck-ify /resources/mediawiki.page/*

Adds mw.hook "mediawiki.page.gallery.resize" to the index.

Change-Id: I538659a62fe99991de2a99cbc61c25eb98dd7f8e

10 years agoJSDuck-ify /resources/mediawiki.action/*
Timo Tijhof [Sun, 27 Apr 2014 15:27:02 +0000 (17:27 +0200)]
JSDuck-ify /resources/mediawiki.action/*

Change-Id: If7dcd9675b54fceb5b2b10b30cc26844a4907f79

10 years agoMerge "jquery.hidpi: Add jsduck documentation"
jenkins-bot [Tue, 29 Apr 2014 13:27:18 +0000 (13:27 +0000)]
Merge "jquery.hidpi: Add jsduck documentation"

10 years agoMerge "jquery.footHovzer: Add jsduck documentation"
jenkins-bot [Tue, 29 Apr 2014 13:27:16 +0000 (13:27 +0000)]
Merge "jquery.footHovzer: Add jsduck documentation"

10 years agojquery.tabIndex: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 15:23:30 +0000 (17:23 +0200)]
jquery.tabIndex: Add jsduck documentation

Change-Id: I73ec9b6e8a5fcc95ea71dcaa19f9b9aa481fde18

10 years agojquery.hidpi: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 14:45:22 +0000 (16:45 +0200)]
jquery.hidpi: Add jsduck documentation

Change-Id: Ib33eaa488f967efbf45cee83d903e6279b8b782a

10 years agojquery.footHovzer: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 14:38:03 +0000 (16:38 +0200)]
jquery.footHovzer: Add jsduck documentation

Change-Id: I554a64951e47b2d8aa0a791619337f4b96e94f48

10 years agoMerge "jquery.checkboxShiftClick: Add jsduck documentation"
jenkins-bot [Tue, 29 Apr 2014 13:10:16 +0000 (13:10 +0000)]
Merge "jquery.checkboxShiftClick: Add jsduck documentation"

10 years agoMerge "jquery.byteLength: Add jsduck documentation"
jenkins-bot [Tue, 29 Apr 2014 13:09:57 +0000 (13:09 +0000)]
Merge "jquery.byteLength: Add jsduck documentation"

10 years agoMerge "jquery.getAttrs: Add jsduck documentation"
jenkins-bot [Tue, 29 Apr 2014 13:08:58 +0000 (13:08 +0000)]
Merge "jquery.getAttrs: Add jsduck documentation"

10 years agoMerge "Consistently use '@deprecated since' in JavaScript code"
jenkins-bot [Tue, 29 Apr 2014 11:30:51 +0000 (11:30 +0000)]
Merge "Consistently use '@deprecated since' in JavaScript code"

10 years agojquery.checkboxShiftClick: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 14:28:04 +0000 (16:28 +0200)]
jquery.checkboxShiftClick: Add jsduck documentation

Change-Id: Ifb0ad7bface406e6e322186f92083b2b8877a8af

10 years agojquery.byteLength: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 14:26:54 +0000 (16:26 +0200)]
jquery.byteLength: Add jsduck documentation

Change-Id: Iee8a5c930b6d2dcb0f5a66aca04e9b18c755d787

10 years agojquery.getAttrs: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 14:25:37 +0000 (16:25 +0200)]
jquery.getAttrs: Add jsduck documentation

Change-Id: Ic7c10bb4fdeb7d76c0b6b09dab6957536601a20a

10 years agoDo not increment the total site edit count on null edits
Aaron Schulz [Tue, 29 Apr 2014 03:46:16 +0000 (20:46 -0700)]
Do not increment the total site edit count on null edits

Change-Id: I0d8d7bcbbd7783cd9845cb5ec2704e854a083e19

10 years agoMerge "API: Warn when unsupported PHP array syntax is used"
jenkins-bot [Tue, 29 Apr 2014 03:30:10 +0000 (03:30 +0000)]
Merge "API: Warn when unsupported PHP array syntax is used"

10 years agoMerge "Do not do backlink purges on null edits"
jenkins-bot [Tue, 29 Apr 2014 00:13:13 +0000 (00:13 +0000)]
Merge "Do not do backlink purges on null edits"

10 years agoDo not do backlink purges on null edits
Aaron Schulz [Tue, 29 Apr 2014 00:02:47 +0000 (17:02 -0700)]
Do not do backlink purges on null edits

Change-Id: Ibcf5ceeea8b82eda188c4d944db6df1c7c9e3e44

10 years agoDisable job throttling for DuplicateJob jobs
Aaron Schulz [Mon, 28 Apr 2014 23:09:35 +0000 (16:09 -0700)]
Disable job throttling for DuplicateJob jobs

Change-Id: I461ea9710660d061ae2da1f99f39247877332ca2

10 years agoMerge "mediawiki.util: Add mw.log.deprecate to #jsMessage"
jenkins-bot [Mon, 28 Apr 2014 22:44:59 +0000 (22:44 +0000)]
Merge "mediawiki.util: Add mw.log.deprecate to #jsMessage"

10 years agoConsistently use '@deprecated since' in JavaScript code
Bartosz Dziewoński [Mon, 28 Apr 2014 22:40:51 +0000 (00:40 +0200)]
Consistently use '@deprecated since' in JavaScript code

JSDuck doesn't actually handle the 'since', but IMO that's a bug in JSDuck.

Change-Id: I9142a3c46ffc2890f5b58133e44caf5873c1229f

10 years agomediawiki.util: Add mw.log.deprecate to #jsMessage
Fomafix [Sat, 26 Apr 2014 13:49:47 +0000 (13:49 +0000)]
mediawiki.util: Add mw.log.deprecate to #jsMessage

Duplicate code to wikibits.js to prevent deprecate message on loading.

Change-Id: Ib41d52456825526c5217743302e80a2de2bbe8d8

10 years agoMerge "jquery.accessKeyLabel: Minor code and documentation clean up"
jenkins-bot [Mon, 28 Apr 2014 21:49:16 +0000 (21:49 +0000)]
Merge "jquery.accessKeyLabel: Minor code and documentation clean up"

10 years agoMerge "Follow-up Ia0cc9612d: Fix unexpected leading whitespace in Skin HTML"
jenkins-bot [Mon, 28 Apr 2014 21:44:05 +0000 (21:44 +0000)]
Merge "Follow-up Ia0cc9612d: Fix unexpected leading whitespace in Skin HTML"

10 years agojquery.makeCollapsible: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 14:20:58 +0000 (16:20 +0200)]
jquery.makeCollapsible: Add jsduck documentation

Change-Id: I92417b62b11697a0e2ec9b8dcb4950ecedf617ac

10 years agojquery.colorUtil: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 14:10:05 +0000 (16:10 +0200)]
jquery.colorUtil: Add jsduck documentation

Change-Id: Idd91e07d7718b054e5827d0df0fe5302f6a97405

10 years agojquery.client: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 13:37:28 +0000 (15:37 +0200)]
jquery.client: Add jsduck documentation

Change-Id: Idd78fa72dcff46341cd55ba128ef24107d240c6b

10 years agoMerge "mediawiki.language.init: Clarify documentation"
jenkins-bot [Mon, 28 Apr 2014 20:41:17 +0000 (20:41 +0000)]
Merge "mediawiki.language.init: Clarify documentation"

10 years agoMerge "Title: Add unit test to assert ":A" is a valid title value"
jenkins-bot [Mon, 28 Apr 2014 20:35:20 +0000 (20:35 +0000)]
Merge "Title: Add unit test to assert ":A" is a valid title value"

10 years agoMerge "Finish removing boolean return values from JobQueue code"
jenkins-bot [Mon, 28 Apr 2014 20:27:04 +0000 (20:27 +0000)]
Merge "Finish removing boolean return values from JobQueue code"

10 years agoFinish removing boolean return values from JobQueue code
Thiemo Mättig [Wed, 16 Apr 2014 18:07:26 +0000 (20:07 +0200)]
Finish removing boolean return values from JobQueue code

This is a follow-up for patch
Ia706ac0122a7dd7f418e2dc2d3bd36e9a0252c25.

Change-Id: I19fe58a939706d3f7594d937e0bcad6d97c52a50

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Mon, 28 Apr 2014 20:17:41 +0000 (20:17 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agomediawiki.language.init: Clarify documentation
Timo Tijhof [Mon, 28 Apr 2014 20:12:16 +0000 (22:12 +0200)]
mediawiki.language.init: Clarify documentation

Change-Id: If2b96ba2c835c9e6d14adfa84e0bea7981beda0e

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 28 Apr 2014 20:06:42 +0000 (20:06 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I9eb2c1a6a757ccc2f0c3e79c2e038ea94746ad2d

10 years agoUpdate OOjs UI to v0.1.0-pre (b91660e612)
James D. Forrester [Mon, 28 Apr 2014 19:57:53 +0000 (12:57 -0700)]
Update OOjs UI to v0.1.0-pre (b91660e612)

New changes:
db345e1 Add text config option to OO.ui.Element
47e272a Add aggregate method
beaa3be Localisation updates from https://translatewiki.net.
32fef8b Follow-up I0eddaaed91: Fix mistake in class name
62df7aa Followup 32fef8b5ee247: actually fix event aggregation, unbreak toolgroup disabling
e3a09eb Element: Make onDOMEvent fix focusout in addition to focusin
cc33eb6 InputWidget: DOM property is 'readOnly', not 'readonly'
59e9a07 Localisation updates from https://translatewiki.net.
c7109be build: Update jscs config and phase out deprecated jshint config
58c2862 Localisation updates from https://translatewiki.net.

Change-Id: I3f0049f03eb443113246761c81a0175ecfd9a94e

10 years agohttp -> https rewrite: Only replace one http by https
umherirrender [Sat, 26 Apr 2014 20:34:21 +0000 (22:34 +0200)]
http -> https rewrite: Only replace one http by https

This avoids changing from
http://de.wikipedia.org/wiki/Spezial:Weblinksuche/http://wikimedia.org
to
https://de.wikipedia.org/wiki/Spezial:Weblinksuche/https://wikimedia.org
instead of
https://de.wikipedia.org/wiki/Spezial:Weblinksuche/http://wikimedia.org

Bug: 63573
Change-Id: Ife5099c3c5a0e943bb08b81be5d5669d0e02be17

10 years agoFixed call to undefined method in TransactionProfiler
Aaron Schulz [Sat, 26 Apr 2014 23:20:17 +0000 (16:20 -0700)]
Fixed call to undefined method in TransactionProfiler

Change-Id: I855b514f8b63c7e81935b13df4612f09628142b3

10 years agoMade DB errors go to the exception log again
Aaron Schulz [Mon, 28 Apr 2014 17:53:16 +0000 (10:53 -0700)]
Made DB errors go to the exception log again

* Some DB errors are caught while others bubble up to users.
  It is useful to log the latter separately and it also provides
  more context. The exception logs have a backtrace where as the
  regular DB logs do not.

Change-Id: I7ef7693d96e0258119f714e678099e4813ca0c94

10 years agoTitle: Add unit test to assert ":A" is a valid title value
Timo Tijhof [Mon, 28 Apr 2014 17:50:32 +0000 (19:50 +0200)]
Title: Add unit test to assert ":A" is a valid title value

Mostly to catch regressions. While this is an invalid title,
it is valid as syntax when creating a Title *object*, the actual
page title itself does not allow leading colons.

Change-Id: Idbe8a3bfe487926c5fc8bdcfa69a957fc9d0bc49

10 years agoPass user and user_text to Revision constructor
umherirrender [Mon, 28 Apr 2014 17:09:28 +0000 (19:09 +0200)]
Pass user and user_text to Revision constructor

This avoids the use of $wgUser in Revision constructor and makes the
dependency on the global visible.

Change-Id: Ief79c9769d28a1adb16abab8da1ec01984d9ef92

10 years agoAdd $user param to Revision::newNullRevision
umherirrender [Mon, 28 Apr 2014 16:59:20 +0000 (18:59 +0200)]
Add $user param to Revision::newNullRevision

This avoids the use of $wgUser in Revision constructor and makes the
dependency on the global visible.

Change-Id: Ib67bd706a3c4ef081f475406e9aa1094c42222ef

10 years agoMake the link in printfooter explicitly ltr
Amir E. Aharoni [Mon, 28 Apr 2014 11:59:22 +0000 (14:59 +0300)]
Make the link in printfooter explicitly ltr

Without this, in RTL wikis the "http" appears
in the middle of the URL.

To test, set
$wgLanguageCode = "he";
create an article called "ספר", view it in print mode
and note the URL at the bottom.

Change-Id: I1c0194c5cbd186e953eb0fc49184caa66c436ad1

10 years agoMerge "Use strict array_search in DatabasePostgres.php"
jenkins-bot [Sun, 27 Apr 2014 23:45:44 +0000 (23:45 +0000)]
Merge "Use strict array_search in DatabasePostgres.php"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 27 Apr 2014 20:26:23 +0000 (20:26 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I52efb742c5d3fb6004f43930d30318c5d9d033a1

10 years agojquery.accessKeyLabel: Enable for target=mobile
Timo Tijhof [Sun, 27 Apr 2014 18:26:44 +0000 (20:26 +0200)]
jquery.accessKeyLabel: Enable for target=mobile

Follows-up 6a81b0e, which split this module out of mediawiki.util,
but didn't give it the same target. So the mediawiki.util module
was now broken on module due to a dependency on an unknown module
named "jquery.accessKeyLabel".

Bug: 64512
Change-Id: I324501411829a71e30d424a8c5304748575fcba3

10 years agoFollow-up Ia0cc9612d: Fix unexpected leading whitespace in Skin HTML
Timo Tijhof [Sun, 27 Apr 2014 16:02:06 +0000 (18:02 +0200)]
Follow-up Ia0cc9612d: Fix unexpected leading whitespace in Skin HTML

Change-Id: Id78b5728f39a7959ba8ff626a2761c39e6a42782

10 years agoMerge "resourceloader: Optimize module registry sent in the startup module"
jenkins-bot [Sun, 27 Apr 2014 15:45:10 +0000 (15:45 +0000)]
Merge "resourceloader: Optimize module registry sent in the startup module"

10 years agojquery.accessKeyLabel: Minor code and documentation clean up
Timo Tijhof [Sun, 27 Apr 2014 13:28:10 +0000 (15:28 +0200)]
jquery.accessKeyLabel: Minor code and documentation clean up

* getAccessKeyPrefix parameter "ua" is optional, flag it as such.
* clarified information about accessKeyLabel and Firefox 8+.
* Renamed domElement to element. It is already specified as
  HTMLElement, no need to call it "DOM" Element as well.
* Document that it is supported to pass the same element as
  both parameters to updateTooltipOnElement.
* Move "Exposed for testing." comment to where it applies (in the
  publicly exposed copy, not the original private one).

Follows-up I211593629.

Change-Id: I3b73302ad822d7191768dde5806e9ee478327ed2

10 years agoUse strict array_search in DatabasePostgres.php
umherirrender [Sun, 27 Apr 2014 07:24:25 +0000 (09:24 +0200)]
Use strict array_search in DatabasePostgres.php

array_search( 'FOR UPDATE', array( 'OFFSET' => 0 ) ) gives 'OFFSET'
array_search( 'FOR UPDATE', array( 'OFFSET' => 0 ), true ) gives false

This avoids FOR UPDATE on QueryPage query like Special:BrokenRedirect.

Bug: 62104
Change-Id: Iaa6db6b3ce5eaf940e7a8afe459955f19ad0e01f

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sat, 26 Apr 2014 19:28:23 +0000 (19:28 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 26 Apr 2014 19:19:31 +0000 (19:19 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ifc04319cc6461cbe88d9a040241d4074999a2cfb

10 years agoMerge "Removed maximumPeriodicTaskSeconds hack; now unused"
jenkins-bot [Sat, 26 Apr 2014 18:06:55 +0000 (18:06 +0000)]
Merge "Removed maximumPeriodicTaskSeconds hack; now unused"

10 years agoCorrect version for deprecated accesskey util functions
Derk-Jan Hartman [Sat, 26 Apr 2014 13:15:01 +0000 (15:15 +0200)]
Correct version for deprecated accesskey util functions

Follow up to: I211593629ca23540dcd5a93b11834155f4f04883
Change-Id: Ib2fe86f950a05be8885cf6da73e1c92a844c0d0c

10 years agoMerge "Add jquery.accessKeyLabel javascript module"
jenkins-bot [Sat, 26 Apr 2014 12:27:18 +0000 (12:27 +0000)]
Merge "Add jquery.accessKeyLabel javascript module"

10 years agoMerge "Add BagOStuff::setMulti for batch insertions"
jenkins-bot [Fri, 25 Apr 2014 22:35:59 +0000 (22:35 +0000)]
Merge "Add BagOStuff::setMulti for batch insertions"

10 years agoAdd BagOStuff::setMulti for batch insertions
Kunal Mehta [Sun, 15 Dec 2013 07:08:29 +0000 (23:08 -0800)]
Add BagOStuff::setMulti for batch insertions

Includes implementions for Redis, Sql and MemcachedPecl,
other types will fallback to using $this->set repeatedly.

Change-Id: I0924a197b28ee69e883128ccd672343e5c041929

10 years agoRemoved maximumPeriodicTaskSeconds hack; now unused
Aaron Schulz [Fri, 25 Apr 2014 21:58:45 +0000 (14:58 -0700)]
Removed maximumPeriodicTaskSeconds hack; now unused

Change-Id: Ib4308990c21b0118f00fde72412868993c5ce056

10 years agoMerge "FormatJson: Remove speculative comment"
jenkins-bot [Fri, 25 Apr 2014 20:31:06 +0000 (20:31 +0000)]
Merge "FormatJson: Remove speculative comment"

10 years agoMerge "Fix RevDel_RevisionItem::getAuthorNameField to work for ips"
jenkins-bot [Fri, 25 Apr 2014 20:04:35 +0000 (20:04 +0000)]
Merge "Fix RevDel_RevisionItem::getAuthorNameField to work for ips"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 25 Apr 2014 19:35:24 +0000 (19:35 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic989131311616d03b639641ae9915f10fb8711bb

10 years agoFormatJson: Remove speculative comment
Kevin Israel [Fri, 25 Apr 2014 19:00:40 +0000 (15:00 -0400)]
FormatJson: Remove speculative comment

Follows-up bec7e8287c69. The comment "Can be removed once we require
PHP >= 5.4.28, 5.5.12, 5.6.0" relies on some assumptions that might
later prove to be incorrect:

* That the fix won't be reverted from any of those PHP versions
  (e.g. if deemed to break BC)

* That the bug will be fixed in PECL jsonc and jsond, as well as in
  HHVM

* That we don't need to support older versions of those once we
  require one of the mentioned PHP versions

Change-Id: I67034c561d54d37dee961ada8c9cf5ccfd113da1

10 years agoMerge "jquery.textSelection: Don't throw errors on empty collections"
Mwalker [Fri, 25 Apr 2014 18:46:41 +0000 (18:46 +0000)]
Merge "jquery.textSelection: Don't throw errors on empty collections"

10 years agoRandomize thumbnail failure key TTL a bit to avoid stampedes
Aaron Schulz [Fri, 25 Apr 2014 18:25:51 +0000 (11:25 -0700)]
Randomize thumbnail failure key TTL a bit to avoid stampedes

Change-Id: Ibf268b646a9eb2acfaa649d634c5278133091158

10 years agoAdd jquery.accessKeyLabel javascript module
umherirrender [Tue, 22 Apr 2014 12:16:45 +0000 (14:16 +0200)]
Add jquery.accessKeyLabel javascript module

Extracted the accessKey logic from mediawiki.util and moved it to it's
own module. mediawiki.util now depends on the new module,
moved the jquery.client dependency from mediawiki.util to the new
module.

Now the accesskey is also set, when no placeholder like '[x]' is set on
the title (bug 48505).
Also the label for a input or textarea (and some other elements) gets
updated (bug 63849).

Also implements support for the browsers accessKeyLabel function (bug
37239), which will give a localised accessKey string, if supported (at
the moment FireFox 8+ only)

Bug: 37239
Bug: 48505
Bug: 63849
Change-Id: I211593629ca23540dcd5a93b11834155f4f04883

10 years agoresourceloader: Optimize module registry sent in the startup module
Marius Hoch [Sun, 7 Jul 2013 22:51:15 +0000 (00:51 +0200)]
resourceloader: Optimize module registry sent in the startup module

The optimization basically works like this:

* Given module A with the dependencies B and C and module B with the
  dependency C.
* Don't tell the client that A depends on C, as that's already included
  in module B.

This way we can reduce the amount of data for module registration sent
to the client.

The code here isn't polished yet, but it works and should be good enough
to demonstrate my idea and implementation.

Change-Id: I7732a3b1d879c5eef059e136a5241d6d48046872