Commit graph

60556 commits

Author SHA1 Message Date
Translation updater bot
5669a04529 Localisation updates from https://translatewiki.net.
Change-Id: I8a6dcdacfbe59bd9b34c314c957ce05a15c0e7a5
2015-01-06 22:06:32 +01:00
Chad
03e2a132d2 Merge "Revert "Keep backend param to search API as long as there's a backend"" 2015-01-06 18:50:28 +00:00
Chad
a04e11786c Revert "Keep backend param to search API as long as there's a backend"
Actually on second thought, having the parameter disappear is 
a better option than keeping it around with only one possible 
value.

This reverts commit 7a79b017a0.

Change-Id: Ia67fa1425e0aa1ee95e0a1733f89d29f94f1eeee
2015-01-06 18:50:14 +00:00
jenkins-bot
919e08074f Merge "Remove double escaping of group member name on Special:ListUsers" 2015-01-06 17:45:29 +00:00
jenkins-bot
19d0011d9c Merge "grunt: Add Karma task for automated QUnit testing in browsers" 2015-01-06 16:36:12 +00:00
umherirrender
0ef09f3d2d Remove double escaping of group member name on Special:ListUsers
Similar to T31340 the group name gets double escaped

Bug: T85864
Change-Id: I9202fc12c2d72baf1f61cb69624b37411b0edacc
2015-01-06 16:29:41 +00:00
jenkins-bot
0138ee519c Merge "Always use the canonical extension name to link the license file" 2015-01-06 15:54:31 +00:00
umherirrender
00624415be Use also $wgAutoloadClasses in tests for module names
Extensions using $wgAutoloadClasses where this test will fail

Follow-Up: If1125cd5fa4ed836fe15fc79480d78ebd899be4e
Change-Id: Ic2024605d7d59890c527cc0580a49da73f8516c8
2015-01-06 13:21:17 +00:00
jenkins-bot
b4550b162d Merge "API: Avoid unstubbing User for language pref when not needed" 2015-01-05 23:05:00 +00:00
jenkins-bot
9581677601 Merge "Proper namespace handling for WikiImporter" 2015-01-05 22:40:15 +00:00
Translation updater bot
d277a5a87a Localisation updates from https://translatewiki.net.
Change-Id: I360f162ccf794d3709c0d64d617d6ffbdf85b23f
2015-01-05 22:47:33 +01:00
jenkins-bot
1094ac2526 Merge "Add applicable protection types to the prop=info API" 2015-01-05 21:15:25 +00:00
Ricordisamoa
32083235eb Add applicable protection types to the prop=info API
Disabled by default, enabled with inprop=protections,
returned as 'restrictiontypes', also for non-existing titles.

Change-Id: I98604b60626b84bd8cb601a4149b80db1b6787b7
2015-01-05 22:03:45 +01:00
jenkins-bot
69613a71ca Merge "Remove silly reference ampersands from database functions in maint" 2015-01-05 20:55:22 +00:00
Timo Tijhof
f86b759ac1 exception: Implement error-json log
Follows-up 399ba2f.

Bug: T75619
Bug: T45086
Change-Id: Ia7ba355d5925a6268ffa321ffc13cc6906b487f8
2015-01-05 20:17:00 +00:00
jenkins-bot
e3054687a9 Merge "Add batch lookup for user groups and titles on Special:ActiveUsers" 2015-01-05 19:46:21 +00:00
jenkins-bot
98eadfcedb Merge "Use content language for edit summary on upload overwrite" 2015-01-05 19:41:36 +00:00
Chad Horohoe
24bc5fbec2 Remove silly reference ampersands from database functions in maint
This is 2015 and we use PHP5 I think.

Change-Id: I012de0df540fc91577585de939bb929c68664222
2015-01-05 11:32:44 -08:00
Timo Tijhof
945c1efe37 grunt: Add Karma task for automated QUnit testing in browsers
To use, ensure npm modules are up to date by running 'npm install'
in tests/frontend. Then run 'grunt qunit' to run it in Chrome.

To run it in both Firefox and Chrome (locally), run

 grunt karma:more

Moved fixture from hardcoded HTML to the testrunner so that our
tests don't depend on arbitrary HTML and thus also pass in browser
contexts where the page only loads QUnit + test suites (e.g. Karma).

Change-Id: I4e96da137340a28789b38940e75d4b6b8bc5d76a
2015-01-05 18:00:13 +00:00
Timo Tijhof
ba50b32556 SpecialJavaScriptTest: Add export feature
Add an 'export' subpage to SpecialJavaScriptTest which allows
one to request a self-sufficient JavaScript payload that will
bootstrap a ResourceLoader client and load the test suites.

This is needed for using Karma (which only loads JavaScript,
no full html pages). As such elements from the Skin and OutputPage
will not exist. While all QUnit tests in MediaWiki core and
most extensions I've seen already use #qunit-fixture, this is
now required. This to prevent leakage of elements from one
test to another, but it also prevents tests from depending
on elements provided by the server.

While the Karma setup is still in the pipeline (might land before
this commit loses WIP status), for now this can be tested via
the 'Special:JavaScriptTest/qunit/plain' subpage.

Refactor:
* Use HTTP status code 404 in the response for "noframework".
* Simplify HTML footprint by using <div id="qunit"> instead of
  hardcoding the full structure. This feature was added to QUnit
  since v1.3.0 (Feb 2012), we're using v1.14.0 (Jan 2014).
  QUnit's header is automatically derived from document.title.
* Remove redundant addModules() for 'test.mediawiki.qunit.testrunner'.
  This is already added by default.
* Move allowClickjacking() call so that it applies to other modes
  as well. The exported javascript needs to have wgBreakFrame set
  to false so that test runners can frame it.
* Change mediawiki.special.javaScriptTest to not depend on QUnit.
  It caused QUnit to load on error pages. And in theory the page
  is suited for other frameworks and shouldn't load QUnit this way.

Bug: T74063
Change-Id: I3d4d0df43bb426d9579eb0349b8b5477281a7cfc
2015-01-05 17:59:33 +00:00
Brad Jorsch
87070fc674 API: Avoid unstubbing User for language pref when not needed
It's fairly common that the API doesn't need to load the user
preferences, except to implement the unfortunate default uselang=user.

So let's move the handling of uselang=user to
RequestContext::getLanguage(), and have the API just assume that its
parent context will eventually fall back to that for uselang=user.

Bug: T85635
Change-Id: I947348d87b31808d331055dac6feb0cc2e1dd15d
2015-01-05 11:59:48 -05:00
Bryan Davis
d9360b5fcc Revise wording for installed libraries release note
Change-Id: I7afafa1b5b954e4555b10c8fd2a225f0f4754115
2015-01-05 09:08:58 -07:00
Kunal Mehta
17ccfbb7b3 Don't display composer installed extensions/skins on Special:Version
Extensions and skins should already be adding their credits through
$wgExtensionCredits, meaning that they would be duplicated in the
"Installed libraries" section.

Anything that has a type that begins with "mediawiki-" will now
be skipped.

Release notes were added for this commit and 528297f8db.

Change-Id: Ie873b16c1a8a696c7de833ae69b263161d9e15a8
2015-01-05 15:58:43 +00:00
jenkins-bot
29ca277c38 Merge "mw.ui: checkbox: Remove margin from checkbox input to fix the pseudo element overlap" 2015-01-05 15:53:21 +00:00
Bartosz Dziewoński
caa4b54a96 Merge "mw.ui: radio: Add state transition to radio buttons" 2015-01-05 15:48:53 +00:00
jenkins-bot
0ef4c260a7 Merge "Adjust images in packed gallery on window resize" 2015-01-05 15:44:15 +00:00
m4tx
3768d9a620 Adjust images in packed gallery on window resize
Original element sizes are stored in data(), and on window resize,
they are restored, so elements can be justified as on just loaded
page.

Bug: T55664
Change-Id: I286e0a4c8230c11619ca30f8f3b66778de835a33
2015-01-05 15:59:18 +01:00
jenkins-bot
0c8327466b Merge "mw.ui: button: Update usage instructions for neutral and quiet buttons" 2015-01-05 14:42:18 +00:00
jenkins-bot
804fa29382 Merge "Make jquery.suggestions obey maxRows setting" 2015-01-05 14:29:08 +00:00
jenkins-bot
ca6b71dd22 Merge "Expand error message when parser tests found no hook" 2015-01-05 13:28:39 +00:00
umherirrender
69d903dc20 Expand error message when parser tests found no hook
The existing message is hard to understand and does not mention, that
this is a problem in the parser test itself and not with phpunit.

Before:
1) Warning
The data provider specified for ParserTest_<file>::testParserTest is
invalid.
Problem running hook

After:
1) Warning
The data provider specified for ParserTest_<file>::testParser
Problem running requested parser hook from the test file

Change-Id: I0b4225cc9ab95e8dd048515315c789113dacf39e
2015-01-05 13:21:43 +00:00
James D. Forrester
f478a3602b Update OOjs UI to v0.6.1
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.6.1/History.md

Change-Id: Iafe5770c74b671dc04a92b9dfab6f121e7fe718d
2015-01-05 13:06:02 +00:00
Prateek Saxena
d448478835 mw.ui: button: Update usage instructions for neutral and quiet buttons
Bug: T75252
Change-Id: If18d4773f491d465309662a7decd8466673002fe
2015-01-05 17:38:01 +05:30
Fomafix
24f84b08cf mw.config: Show deprecation notices when accessing globals
The mw.config.value object is no longer an alias to the global object
when $wgLegacyJavaScriptGlobals is true.

Instead, set() is made to copy to property to the global object. This
matches behaviour of other deprecated properties in that changes to the
deprecated property directly are ignored.

Bug: T58550
Change-Id: I703f7c12b59bc3207b2a291eacc393a8ae92df6f
2015-01-05 02:58:22 +00:00
gladoscc
94649e6fc4 Make jquery.suggestions obey maxRows setting
The maxRows setting was previously unused and had no effect. This patch
passes the property in the fetch() call, and makes it enforce the setting.

Also updates mediawiki.userSuggest.js to use response()

The previously unused setting of 7 is changed to 10 to match current
behaviour.

Bug: T39316
Change-Id: I2873963aba9fd751607d11904b94bfcec8eb2d32
2015-01-05 12:34:47 +11:00
Translation updater bot
4858e5878a Localisation updates from https://translatewiki.net.
Change-Id: I3f72d9e7d620c0fe2070a7da08d704965a61e00c
2015-01-04 21:30:08 +01:00
Marius Hoch
28f9d1c546 Make use of DatabaseBase::selectRowCount in Title
Change-Id: I686f4f785ffa6323ac94b679794ba50539d951f0
2015-01-04 17:08:24 +00:00
Timo Tijhof
1f393b6da8 resourceloader: Make arguments to mw.loader.implement optional
This will allow the server to trim any trailing parameters with
empty objects from invocations.

'templates' was the only parameter added after the initial ResourceLoader
release, the other properties have always been required.

Change-Id: Ie32e7d6a3c09f86a52d60394c474a62cb1b4e1d6
2015-01-04 16:47:50 +00:00
jenkins-bot
13142cd2f4 Merge "Fix documentation of mw.loader.getState" 2015-01-04 14:07:54 +00:00
Ricordisamoa
626251986f Fix documentation of mw.loader.getState
The misleading comment was copied from mw.loader.getVersion
in commit 6a1ec17e79.

Change-Id: I73ddb67901da808fd402742232b4b4dd2ad31ebc
2015-01-04 13:32:36 +00:00
jenkins-bot
b4f865d0e6 Merge "Database::makeList() : Handle NULL when building 'IN' clause" 2015-01-04 06:33:16 +00:00
jenkins-bot
f9f4b8ff90 Merge "mediawiki.action.edit.preview: Use .textSelection( 'getContents' )" 2015-01-04 01:37:46 +00:00
Translation updater bot
ad267fae6f Localisation updates from https://translatewiki.net.
Change-Id: I3cd9917fd67fe31a829e38108bb0220bc5c41842
2015-01-03 22:32:36 +01:00
Sumit Asthana
26235c7337 Database::makeList() : Handle NULL when building 'IN' clause
Amends to Database::makeList() to check if 'NULL' is present in array while
building IN clause. Presently a NULL in array intended to build IN clause, is
treated as a usual value. This creates
problem:https://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#function_in
Therefore null is appended at the end of the IN clause as " $field IS NULL"
rather than within the IN clause.
DatabaseSQLTest.php: Some test cases added for the modified behaviour.

Bug: T50853
Change-Id: Ic255c37e9702fd44d8173027ab8036ddc48f9d2e
2015-01-03 22:20:35 +05:30
Ricordisamoa
ace5db0023 Always use the canonical extension name to link the license file
Items in $wgExtensionCredits can expose a 'namemsg' attribute,
but it should only be used for localized strings.
SpecialVersion->execute() correctly uses 'name', while commit
326f3f450c inadvertently made
getCreditsForExtension() use 'namemsg'.

Also reduced code duplication.

Change-Id: I029ea17c55191d74bc6a803fad6cf092105f5b3c
2015-01-03 15:26:03 +01:00
jenkins-bot
910dcbc317 Merge "Add SQL tests for Database::makeList" 2015-01-03 09:04:54 +00:00
Prateek Saxena
19671614f8 mw.ui: checkbox: Remove margin from checkbox input to fix the pseudo element overlap
The target for the checbox was extending unusually due to extra
margins. See https://phabricator.wikimedia.org/M27/51/

Change-Id: I93fb29cfed5e0fd0ceb1f89977abd2991629fe34
2015-01-03 06:26:31 +05:30
Niklas Laxström
9805c4294b Add namespace translations for nan
Aliases added from fallback language cdo. Per request in
https://translatewiki.net/wiki/Thread:User_talk:Nike/outo_p%C3%A4tk%C3%A4_osoitteissa

Change-Id: Ic73d81cd9a477a9818aa0f0c8b596ab49850460a
2015-01-02 23:59:31 +01:00
Translation updater bot
e9be484ac3 Localisation updates from https://translatewiki.net.
Change-Id: I7e5267badb3467b3f7b5e000efe6c37f8fd0c7d7
2015-01-02 22:01:54 +01:00
jenkins-bot
d55d139209 Merge "jQuery.footHovzer: Fix scrolling issues" 2015-01-02 17:51:18 +00:00