lhc/web/wiklou.git
10 years agoMerge "resourceloader: Sanitize lang code before creating Language object"
jenkins-bot [Wed, 26 Mar 2014 22:31:08 +0000 (22:31 +0000)]
Merge "resourceloader: Sanitize lang code before creating Language object"

10 years agoMerge "Minor fixes for existing jsduck documentation in resources/mediawiki/*"
jenkins-bot [Wed, 26 Mar 2014 21:59:41 +0000 (21:59 +0000)]
Merge "Minor fixes for existing jsduck documentation in resources/mediawiki/*"

10 years agoMinor fixes for existing jsduck documentation in resources/mediawiki/*
Timo Tijhof [Wed, 26 Mar 2014 21:18:05 +0000 (14:18 -0700)]
Minor fixes for existing jsduck documentation in resources/mediawiki/*

mw.loader.store:
* Turn url into a link.

mediawiki.language:
* Turn url into a link.
* Fix whitespace.

mediawiki.Title:
* Fix broken <pre> rendering.

mediawiki.Uri:
* Add protocol to url, otherwise <> won't link it.
* Remove bogus dependency listing.
* Turn url into a link.

Change-Id: Ie8e2d1869843bcf594763250c7a9bf94bf874298

10 years agoMerge "mwjsduck-gen: Fix duplicate resources link"
jenkins-bot [Wed, 26 Mar 2014 21:21:57 +0000 (21:21 +0000)]
Merge "mwjsduck-gen: Fix duplicate resources link"

10 years agoMerge "Add jquery.arrowSteps to jsduck"
jenkins-bot [Wed, 26 Mar 2014 21:21:40 +0000 (21:21 +0000)]
Merge "Add jquery.arrowSteps to jsduck"

10 years agomwjsduck-gen: Fix duplicate resources link
Mark Holmquist [Wed, 26 Mar 2014 20:42:16 +0000 (13:42 -0700)]
mwjsduck-gen: Fix duplicate resources link

If jsduck failed, it would make a second symlink to ../../resources/
in resources/ which made no sense.

Change-Id: Iedf10466acdbd8e70a751ae898dc453a9be62275

10 years agoMerge "mediawiki.html: Fix jsduck syntax for list, backtick html, link url"
jenkins-bot [Wed, 26 Mar 2014 21:13:02 +0000 (21:13 +0000)]
Merge "mediawiki.html: Fix jsduck syntax for list, backtick html, link url"

10 years agoAdd jquery.arrowSteps to jsduck
Mark Holmquist [Wed, 26 Mar 2014 20:30:43 +0000 (13:30 -0700)]
Add jquery.arrowSteps to jsduck

It's probably a doomed module, but we may as well document it.

Change-Id: I5c28d1abc5364de839806ed21c2edc0d1d655f86

10 years agomediawiki.html: Fix jsduck syntax for list, backtick html, link url
Timo Tijhof [Wed, 26 Mar 2014 20:44:24 +0000 (13:44 -0700)]
mediawiki.html: Fix jsduck syntax for list, backtick html, link url

* For the list to render as a list (instead of a paragraph
  with hyphens in it and collapsed linebreak whitespace), it has
  to be in block context. Meaning, a line break first.

* Backtick the <br> tag, otherwise it becomes an actual line
  break as Markdown supports <br>.

* Turn the url into an actual link (unlike wikitext, Markdown
  doesn't do magic linking of urls).

Change-Id: I0e3913cd5f97bf37381a99cbdc6af651a8872c70

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 26 Mar 2014 20:37:55 +0000 (20:37 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I31ee0d1685cdf6b315cb5336b30e548c76d67a95

10 years agoMerge "Remove button styles from mediawiki.ui"
jenkins-bot [Wed, 26 Mar 2014 18:28:05 +0000 (18:28 +0000)]
Merge "Remove button styles from mediawiki.ui"

10 years agoMerge "Suppress section edit links with action=render"
jenkins-bot [Wed, 26 Mar 2014 18:23:01 +0000 (18:23 +0000)]
Merge "Suppress section edit links with action=render"

10 years agoMerge "Stop make kss from opening browser"
jenkins-bot [Wed, 26 Mar 2014 18:11:43 +0000 (18:11 +0000)]
Merge "Stop make kss from opening browser"

10 years agoMerge "Use Agora oojs-ui theme on mobile"
jenkins-bot [Wed, 26 Mar 2014 18:11:26 +0000 (18:11 +0000)]
Merge "Use Agora oojs-ui theme on mobile"

10 years agoMerge "Update OOjs UI to v0.1.0-pre (1c7875205a)"
jenkins-bot [Wed, 26 Mar 2014 18:10:24 +0000 (18:10 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (1c7875205a)"

10 years agoStop make kss from opening browser
Juliusz Gonera [Wed, 5 Mar 2014 23:32:00 +0000 (15:32 -0800)]
Stop make kss from opening browser

Instead add make kssopen that opens the browser with the styleguide.
Most people will probably keep the style guide open in the browser and
refresh it themselves if they need to.

Change-Id: I5fd82d01da1c7f4bbf48ad921c2e7cb0407974b3

10 years agoUse Agora oojs-ui theme on mobile
Juliusz Gonera [Sat, 22 Mar 2014 00:09:54 +0000 (17:09 -0700)]
Use Agora oojs-ui theme on mobile

Change-Id: I53e15fca1facfc8b55eace07de42fced4d07efcc

10 years agoUpdate OOjs UI to v0.1.0-pre (1c7875205a)
James D. Forrester [Wed, 26 Mar 2014 16:53:56 +0000 (09:53 -0700)]
Update OOjs UI to v0.1.0-pre (1c7875205a)

New changes:
a14026f Move some styles to the Apex theme
9df7af9 Add basic styling for Agora theme
deefcf3 Localisation updates from https://translatewiki.net.
1c78752 Add initially enabled ToggleButtonWidget to demo

Local changes:
* Change local update script so that it also copies oojs-ui-agora.css.

Change-Id: I77e6876899809db3f6e246579f82c1bf8bc51a45

10 years agoMerge "Have ?download parameter trigger Content-Disposition: attachment"
jenkins-bot [Wed, 26 Mar 2014 17:45:21 +0000 (17:45 +0000)]
Merge "Have ?download parameter trigger Content-Disposition: attachment"

10 years agoMerge "Comment generated code to explain the i18n JSON migration."
jenkins-bot [Wed, 26 Mar 2014 17:45:04 +0000 (17:45 +0000)]
Merge "Comment generated code to explain the i18n JSON migration."

10 years agoComment generated code to explain the i18n JSON migration.
Adam Roses Wight [Tue, 25 Mar 2014 20:53:06 +0000 (13:53 -0700)]
Comment generated code to explain the i18n JSON migration.

Change-Id: I4d41be5a70eab5ceeec3be0bd544e4a87504572a

10 years agoMerge "Declare visibility on class properties of SpecialRevisionDelete"
jenkins-bot [Wed, 26 Mar 2014 17:28:12 +0000 (17:28 +0000)]
Merge "Declare visibility on class properties of SpecialRevisionDelete"

10 years agoMerge "Declare visibility on class properties of SpecialUndelete"
jenkins-bot [Wed, 26 Mar 2014 17:24:07 +0000 (17:24 +0000)]
Merge "Declare visibility on class properties of SpecialUndelete"

10 years agoMerge "Make CodeSniffer checks pass on includes/specialpages/"
jenkins-bot [Wed, 26 Mar 2014 17:22:50 +0000 (17:22 +0000)]
Merge "Make CodeSniffer checks pass on includes/specialpages/"

10 years agoMerge "Declare visibility on class properties of RedirectSpecialPage"
jenkins-bot [Wed, 26 Mar 2014 17:21:42 +0000 (17:21 +0000)]
Merge "Declare visibility on class properties of RedirectSpecialPage"

10 years agoMerge "Add a 'revdelete-selected-file' message on Special:RevisionDelete"
jenkins-bot [Wed, 26 Mar 2014 17:18:57 +0000 (17:18 +0000)]
Merge "Add a 'revdelete-selected-file' message on Special:RevisionDelete"

10 years agoDeclare visibility on class properties of SpecialRevisionDelete
Siebrand Mazeland [Sun, 23 Mar 2014 00:25:12 +0000 (01:25 +0100)]
Declare visibility on class properties of SpecialRevisionDelete

All class properties are used solely in the class itself.
SpecialRevisionDelete is not being subclassed, so made all properties
private. Also:
* Added missing class properties.
* Renamed $list to $revDelList to be more specific.
* Updated some documentation.

Change-Id: I9f989a020d46173cb313d4d3dddc33f6b92b1942

10 years agoDeclare visibility on class properties of SpecialUndelete
Siebrand Mazeland [Sun, 23 Mar 2014 00:05:21 +0000 (01:05 +0100)]
Declare visibility on class properties of SpecialUndelete

All class properties are used solely in the class itself. SpecialUndelete
is not being subclassed, so made all properties private.

Change-Id: I32792fb5d21178d850764c0efe3024d957fca2a8

10 years agoMake CodeSniffer checks pass on includes/specialpages/
Siebrand Mazeland [Sat, 22 Mar 2014 22:12:47 +0000 (23:12 +0100)]
Make CodeSniffer checks pass on includes/specialpages/

Fixes the one remaining warning.

Change-Id: Id54a1eb148aaf6953db61e8900a9253591f05208

10 years agoDeclare visibility on class properties of RedirectSpecialPage
Siebrand Mazeland [Sat, 22 Mar 2014 22:11:08 +0000 (23:11 +0100)]
Declare visibility on class properties of RedirectSpecialPage

Change-Id: I54c0300af1ff62be7cc5a9519e97b7f825ddf09c

10 years agoMerge "Remove "include redirects" option from search"
jenkins-bot [Wed, 26 Mar 2014 16:45:30 +0000 (16:45 +0000)]
Merge "Remove "include redirects" option from search"

10 years agoMerge "Update formatting for includes/specialpage"
jenkins-bot [Wed, 26 Mar 2014 16:33:49 +0000 (16:33 +0000)]
Merge "Update formatting for includes/specialpage"

10 years agoRemove "include redirects" option from search
Chad Horohoe [Thu, 13 Mar 2014 20:39:47 +0000 (13:39 -0700)]
Remove "include redirects" option from search

Always include redirects. Search results are worse without them
and MWSearch has never respected this option anyway.

Change-Id: I0ebe321a3b14e7960aa98e3225dc5a19ba916e7d

10 years agoUpdate formatting for includes/specialpage
Siebrand Mazeland [Sat, 22 Mar 2014 22:07:19 +0000 (23:07 +0100)]
Update formatting for includes/specialpage

Change-Id: I6f5ebe5408464cde78fae3584e19392b26d2b2a1

10 years agoMerge "Fix CodeSniffer errors and warnings in includes/specials (2)"
jenkins-bot [Wed, 26 Mar 2014 16:14:13 +0000 (16:14 +0000)]
Merge "Fix CodeSniffer errors and warnings in includes/specials (2)"

10 years agoMerge "Try to make a dent in CodeSniffer reports on includes/ (1)"
jenkins-bot [Wed, 26 Mar 2014 16:14:11 +0000 (16:14 +0000)]
Merge "Try to make a dent in CodeSniffer reports on includes/ (1)"

10 years agoFix CodeSniffer errors and warnings in includes/specials (2)
Siebrand Mazeland [Sat, 22 Mar 2014 23:59:36 +0000 (00:59 +0100)]
Fix CodeSniffer errors and warnings in includes/specials (2)

Change-Id: I9787d2a1515b2a8d9310ea636650e20d041acc3d

10 years agoMerge "Fix CodeSniffer errors and warnings in includes/specials (1)"
jenkins-bot [Wed, 26 Mar 2014 15:51:42 +0000 (15:51 +0000)]
Merge "Fix CodeSniffer errors and warnings in includes/specials (1)"

10 years agoMerge "Declare visibility on class properties of LoginForm"
jenkins-bot [Wed, 26 Mar 2014 15:49:49 +0000 (15:49 +0000)]
Merge "Declare visibility on class properties of LoginForm"

10 years agoMerge "Set visibility for some methods and remove unused ones"
jenkins-bot [Wed, 26 Mar 2014 15:49:30 +0000 (15:49 +0000)]
Merge "Set visibility for some methods and remove unused ones"

10 years agoFix/update inline documentations in GlobalFunctions
Thiemo Mättig [Tue, 25 Mar 2014 18:52:26 +0000 (19:52 +0100)]
Fix/update inline documentations in GlobalFunctions

I mainly fixed PHPDoc comments that are highlighted by PHPStorm
as being wrong or incomplete.

* Fixed some wrong inline documentations, e.g. wrong @return types.
* Used the style suggested by the Doxygen and phpDocumentor
  documentations: @param type [$optional,...]
* Doxygen and phpDocumentor suggest the order: @param type $var
* Avoid unclear "varargs" and "mixed" if possible.
* Lowercased "array" and such, they are no classes.

Change-Id: Iff16e05fed6652cefec29e3d254807f52d84c9ab

10 years agoMerge "Revert "New Hook rc/watchlist hook ChangesListBegin""
jenkins-bot [Wed, 26 Mar 2014 14:36:29 +0000 (14:36 +0000)]
Merge "Revert "New Hook rc/watchlist hook ChangesListBegin""

10 years agoRevert "New Hook rc/watchlist hook ChangesListBegin"
Siebrand [Wed, 26 Mar 2014 14:07:44 +0000 (14:07 +0000)]
Revert "New Hook rc/watchlist hook ChangesListBegin"

This reverts commit 01798c3813b602bd3e8f9a666249e6da58526109.

The patch set changed a RecentChanges interface used in at least the
extension CleanChanges so that it was generating a lot of warnings.
Additional parameters to existing methods that are used elsewhere
should have defaults to not break backward compatibility.

Change-Id: I1851e23e186ba7aaeb001ba212e56888657a3ae0

10 years agoMerge "Use /usr/bin/ as default folder for DjVu tools in unit tests"
jenkins-bot [Wed, 26 Mar 2014 13:40:51 +0000 (13:40 +0000)]
Merge "Use /usr/bin/ as default folder for DjVu tools in unit tests"

10 years agoMerge "Fix/update inline documentation in WikiPage class"
jenkins-bot [Wed, 26 Mar 2014 12:33:43 +0000 (12:33 +0000)]
Merge "Fix/update inline documentation in WikiPage class"

10 years agoMerge "Fix custom local MediaWiki:Helppage values"
jenkins-bot [Wed, 26 Mar 2014 12:20:28 +0000 (12:20 +0000)]
Merge "Fix custom local MediaWiki:Helppage values"

10 years agoMerge "New Hook rc/watchlist hook ChangesListBegin"
jenkins-bot [Wed, 26 Mar 2014 11:55:13 +0000 (11:55 +0000)]
Merge "New Hook rc/watchlist hook ChangesListBegin"

10 years agoSet visibility for some methods and remove unused ones
Siebrand Mazeland [Sun, 23 Mar 2014 01:20:36 +0000 (02:20 +0100)]
Set visibility for some methods and remove unused ones

* private: checkUnicodeCompliantBrowser(), makesafe(), unmakesafe().
* protected: safeUnicodeInput(), safeUnicodeOutput().
* unused and deleted: safeUnicodeText(), sectionAnchor().

Also updated documentation for touched methods.

Change-Id: I1a46113a6380505aeea71150b6d106ec68423002

10 years agoFix custom local MediaWiki:Helppage values
Matthew Flaschen [Wed, 26 Mar 2014 03:15:59 +0000 (23:15 -0400)]
Fix custom local MediaWiki:Helppage values

Followup to 3a6ea89d4aa4a0fbc36a209fa13b1c6134110ca9

Change-Id: I7effec352d263f536d1d1763e9cd56d2f5154f13

10 years agoMerge "Reduce connect timeout in MediaWiki::triggerJobs"
jenkins-bot [Tue, 25 Mar 2014 23:15:30 +0000 (23:15 +0000)]
Merge "Reduce connect timeout in MediaWiki::triggerJobs"

10 years agoReduce connect timeout in MediaWiki::triggerJobs
Erik Bernhardson [Tue, 25 Mar 2014 22:31:56 +0000 (15:31 -0700)]
Reduce connect timeout in MediaWiki::triggerJobs

The fifth parameter to fsockopen is the number of seconds
to wait before declaring the connection a failure. When not
provided it defaults to the php ini value of 'default_socket_timeout'
which is 60s.  Under no circumstances should we wait 60s to
connect to ourselves,  100ms seems like a reasonable timeout
since its explicitly connecting to itself, but the exact timeout
could be slightly longer.

Change-Id: I18d328274ddf1e0848fce40ebf39e0466b5c4d5d

10 years agoMerge "Remove wfDebugLog() call from wfSetupSession()"
jenkins-bot [Tue, 25 Mar 2014 21:31:42 +0000 (21:31 +0000)]
Merge "Remove wfDebugLog() call from wfSetupSession()"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 25 Mar 2014 20:49:35 +0000 (20:49 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I083069e8633deaa49055a255e05692dcb1072193

10 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Tue, 25 Mar 2014 19:04:20 +0000 (19:04 +0000)]
Merge "Sync up with Parsoid parserTests."

10 years agoMerge "Handle exceptions when testing row validity"
jenkins-bot [Tue, 25 Mar 2014 19:03:17 +0000 (19:03 +0000)]
Merge "Handle exceptions when testing row validity"

10 years agoRemove wfDebugLog() call from wfSetupSession()
Alexandre Emsenhuber [Tue, 25 Mar 2014 18:41:18 +0000 (19:41 +0100)]
Remove wfDebugLog() call from wfSetupSession()

Since Iffba121a99 (00b7f76) with the removal of wfHttpOnlySafe(),
session cookie's parameters are based only on configuration
settings, so there is no point to spam the "cookie" log group
with predicitible values.

Change-Id: I8b1cdea929cefc32dd8b01c2ecbf2d76bb64189f

10 years agoFix/update inline documentation in WikiPage class
Thiemo Mättig [Tue, 25 Mar 2014 18:21:50 +0000 (19:21 +0100)]
Fix/update inline documentation in WikiPage class

* Add missing "new" to methods that actually support it.
* Use more precise type hints in PHPDoc comments.
* Lowercase "string" and "array", they aren't objects.
* Drop a useless comment that only repeats the method name.
* Add some line breaks.

Change-Id: I2f50179eedffcb1809c46fa7ee1c062144a94ffe

10 years agoLowered high lock timeout in mergeViaLock() and lock() in BagOStuff
Aaron Schulz [Tue, 18 Mar 2014 17:16:58 +0000 (10:16 -0700)]
Lowered high lock timeout in mergeViaLock() and lock() in BagOStuff

Change-Id: Ib5cd0a98ce6ec47edb24f8cc9f4df2c941ce1c38

10 years agoSync up with Parsoid parserTests.
C. Scott Ananian [Tue, 25 Mar 2014 16:51:15 +0000 (12:51 -0400)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit b2e209c4d370a4a83f33bb1a9f6f7794e7fda3ca

Change-Id: I27e0373436cbfd16b1558ca2b2e998144b808f4b

10 years agoFix CodeSniffer errors and warnings in includes/specials (1)
Siebrand Mazeland [Sat, 22 Mar 2014 23:15:34 +0000 (00:15 +0100)]
Fix CodeSniffer errors and warnings in includes/specials (1)

Change-Id: Iafbd82756b00b1ddd5e38a6603037845238c08fd

10 years agoMerge "Remove $wgHttpOnlyBlacklist"
jenkins-bot [Tue, 25 Mar 2014 13:13:34 +0000 (13:13 +0000)]
Merge "Remove $wgHttpOnlyBlacklist"

10 years agoMerge "Remove unused style for #loginend and #signupend"
jenkins-bot [Tue, 25 Mar 2014 12:26:17 +0000 (12:26 +0000)]
Merge "Remove unused style for #loginend and #signupend"

10 years agoMerge "Adding function documentation for Skin::footerLink()"
jenkins-bot [Tue, 25 Mar 2014 10:25:30 +0000 (10:25 +0000)]
Merge "Adding function documentation for Skin::footerLink()"

10 years agoHave ?download parameter trigger Content-Disposition: attachment
Gilles Dubuc [Mon, 24 Mar 2014 23:31:21 +0000 (00:31 +0100)]
Have ?download parameter trigger Content-Disposition: attachment

This parameter triggers Content-Disposition: Attachment which
makes the browser download the image instead of displaying it.

This is needed by Media Viewer to allow users to click a button in
order to download an image at a given resolution or the original.

Change-Id: I470a24a09139ac65588312104995e34d97a89b0f

10 years agoRemove unused style for #loginend and #signupend
Fomafix [Tue, 25 Mar 2014 08:25:39 +0000 (08:25 +0000)]
Remove unused style for #loginend and #signupend

loginend in skins/common/commonContent.css was added in
https://gerrit.wikimedia.org/r/53614
and is now unused.

clear:both for #loginend and #signupend in skins/monobook/main.css
is not necessary because there are no floating elements above.

Change-Id: Ic472f43f1d1a7ab4b7abb9f19067574f12ce6a6b

10 years agoUse /usr/bin/ as default folder for DjVu tools in unit tests
Tpt [Tue, 25 Mar 2014 08:18:32 +0000 (09:18 +0100)]
Use /usr/bin/ as default folder for DjVu tools in unit tests

It's the path in most GNU/Linux distributions

Allows also tests to run in Travis

Change-Id: I2fead84184dca94e1407104287f42ebf6112d712

10 years agoMerge "Fix documentation of wfDebugLog()"
jenkins-bot [Tue, 25 Mar 2014 07:19:54 +0000 (07:19 +0000)]
Merge "Fix documentation of wfDebugLog()"

10 years agoMerge "Set up node-jscs via Grunt (and pass it)"
jenkins-bot [Tue, 25 Mar 2014 07:01:19 +0000 (07:01 +0000)]
Merge "Set up node-jscs via Grunt (and pass it)"

10 years agoMerge "Update formatting for includes/specials/"
jenkins-bot [Tue, 25 Mar 2014 02:25:38 +0000 (02:25 +0000)]
Merge "Update formatting for includes/specials/"

10 years agoMerge "Autoloader incorrect case warnings fixed"
jenkins-bot [Tue, 25 Mar 2014 01:45:57 +0000 (01:45 +0000)]
Merge "Autoloader incorrect case warnings fixed"

10 years agoNew Hook rc/watchlist hook ChangesListBegin
Erik Bernhardson [Mon, 3 Mar 2014 21:26:54 +0000 (13:26 -0800)]
New Hook rc/watchlist hook ChangesListBegin

An extension hooking into recent changes may need to load additional
data that did not fit into the recentchanges table.  This hook gives
revisions an opportunity to see the full result prior to rendering
and batch load where approprite rather than loading piecemeal during
the render process.

Change-Id: I28d4e41437e485e518f2a23b6da00cdc430a8c23

10 years agoUpdate OOjs UI to v0.1.0
James D. Forrester [Tue, 25 Mar 2014 00:35:46 +0000 (17:35 -0700)]
Update OOjs UI to v0.1.0

New changes:
4f4fc2c Localisation updates from https://translatewiki.net.
ea88cce Localisation updates from https://translatewiki.net.
37af34f Add the ability to clear the SearchWidget
1cd4b32 Make PopupWidget clippable.
81f2edc Localisation updates from https://translatewiki.net.
fa6e8e5 Make popup toolgroup labels a little closer to their icons

Change-Id: I63fb1f9edb24a86cc882b204075540427ac4d11b

10 years agoSet up node-jscs via Grunt (and pass it)
Timo Tijhof [Fri, 31 Jan 2014 02:03:11 +0000 (18:03 -0800)]
Set up node-jscs via Grunt (and pass it)

* Set up Grunt via package.json (run `npm install` in mediawiki-core)
* Add grunt task for node-jscs (NEW)
  This is a style checker (as opposed to jshint, which is for
  code quality). There are a few small style-related things that
  JSHint can check (camelcase, onevar etc.) but those are being
  deprecated in JSHint v3, people should use more sophisticated
  tools like node-jscs for this instead. As such this commit
  removes moves of those options from our jshint configuration.
  See: http://jshint.com/blog/jshint-3-plans/
* Add grunt task for jshint
  This will use the same jshint configuration as we use on
  Jenkins but makes it easier to run locally from the command
  line by being part of the same `$ grunt test` task list.

Also:
* Changed jshintignore to use "dir/**"" instead of "/dir" or "dir"
  because the latter is not compatible with Grunt for some reason.
  See also https://github.com/gruntjs/grunt-contrib-jshint/issues/126.

Examples of coding style rules that were being violated that we
can now catch in node-jscs:
* Operator "," should stick to preceding expression
* Missing space after "if" keyword
* Multiple line break
* Empty block (in jquery.textSelection and mediawiki.language)

Bug: 54218
Change-Id: Ib9d7eab9f0d5cea5fb33f0b9f82e5554897fdfe0

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 24 Mar 2014 22:00:50 +0000 (22:00 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Icad3f57cf182107ce7e813297f00473e75e4ad6f

10 years agoAdding function documentation for Skin::footerLink()
kaldari [Mon, 24 Mar 2014 19:58:53 +0000 (12:58 -0700)]
Adding function documentation for Skin::footerLink()

Change-Id: Ib38173ed7bdc434274ff17dfd8c85e5ec95bfb29

10 years agoFollowup af4085a: reset $prev interwiki to null in between result sets
Chad Horohoe [Mon, 24 Mar 2014 19:24:45 +0000 (12:24 -0700)]
Followup af4085a: reset $prev interwiki to null in between result sets

Change-Id: Ie2ba7b061e532e0ab749b0519a7e72bc018a1b5a

10 years agoMerge "Automatically add a new line at the end of wfLogDBError()"
jenkins-bot [Mon, 24 Mar 2014 18:45:47 +0000 (18:45 +0000)]
Merge "Automatically add a new line at the end of wfLogDBError()"

10 years agoAllow interwiki searches to return arrays of interwiki results
Chad Horohoe [Tue, 18 Mar 2014 18:51:02 +0000 (11:51 -0700)]
Allow interwiki searches to return arrays of interwiki results

This allows them to group by interwiki in more sane ways.
Also remove no longer used $terms paramter

Change-Id: I5d420595edfd35a1ce85662d2722ebbe2d357ce3

10 years agoImprove docs for $wgExtensionCredits (and add 'license-name')
Timo Tijhof [Thu, 13 Mar 2014 22:18:41 +0000 (23:18 +0100)]
Improve docs for $wgExtensionCredits (and add 'license-name')

Follows-up 357eb3d488b9d8c which implemented 'license-name'.

Change-Id: I2b2c17965230558fd1650e3db92abafb082737d1

10 years agoAutoloader incorrect case warnings fixed
root [Mon, 24 Mar 2014 16:40:22 +0000 (17:40 +0100)]
Autoloader incorrect case warnings fixed

Change-Id: I610de60b49840a26ddb7ceeb14264aec77dc8b96

10 years agoAdd getRobotPolicy()
leucosticte [Mon, 10 Mar 2014 08:57:16 +0000 (04:57 -0400)]
Add getRobotPolicy()

Bug: 57764
Change-Id: I5d53b9b36b8ec5263bf7ebb13c7ef8c102c1ce68

10 years agoTest against php 5.6 on travis
addshore [Mon, 24 Mar 2014 11:45:18 +0000 (12:45 +0100)]
Test against php 5.6 on travis

Change-Id: I7401f1d059437eadd3712c012a93a6a5b6ac4403

10 years agoMerge "Use correct Creative Commons license abbreviation"
jenkins-bot [Mon, 24 Mar 2014 12:59:19 +0000 (12:59 +0000)]
Merge "Use correct Creative Commons license abbreviation"

10 years agoMerge "Removing Wikitravel from the default interwiki list"
jenkins-bot [Mon, 24 Mar 2014 12:53:04 +0000 (12:53 +0000)]
Merge "Removing Wikitravel from the default interwiki list"

10 years agoUse correct Creative Commons license abbreviation
Siebrand Mazeland [Mon, 24 Mar 2014 12:51:29 +0000 (13:51 +0100)]
Use correct Creative Commons license abbreviation

Change-Id: I7df989de9dca2ee056030ff6f5830d5f0124185e

10 years agoTweaked "latest" handling of filebackend stat entries
Aaron Schulz [Sat, 15 Mar 2014 09:08:04 +0000 (02:08 -0700)]
Tweaked "latest" handling of filebackend stat entries

* Let "latest" stat entries override non "latest" so
  that future getFileStat() calls with the "latest" flag
  can actually have a cache hit.

Change-Id: I1e9391039537d608b89773b4d51575e3b364a751

10 years agoMerge "[Regression] Delete autoblocks when removing autoblock flag"
jenkins-bot [Mon, 24 Mar 2014 06:23:30 +0000 (06:23 +0000)]
Merge "[Regression] Delete autoblocks when removing autoblock flag"

10 years agoMerge "DatabaseMysqlBase: Remove broken check for Percona Server"
jenkins-bot [Mon, 24 Mar 2014 06:11:30 +0000 (06:11 +0000)]
Merge "DatabaseMysqlBase: Remove broken check for Percona Server"

10 years agoMerge "Remove double wfDebug() call in Database.php"
jenkins-bot [Mon, 24 Mar 2014 06:10:28 +0000 (06:10 +0000)]
Merge "Remove double wfDebug() call in Database.php"

10 years agoMerge "Add support for specifying headers in FileRepo::quickImport"
jenkins-bot [Mon, 24 Mar 2014 06:09:32 +0000 (06:09 +0000)]
Merge "Add support for specifying headers in FileRepo::quickImport"

10 years agoMerge "Add Special:ListDuplicatedFiles expensive query special page."
jenkins-bot [Mon, 24 Mar 2014 06:09:13 +0000 (06:09 +0000)]
Merge "Add Special:ListDuplicatedFiles expensive query special page."

10 years agoMerge "Add default implementation of getLength to base MediaHandler class"
jenkins-bot [Mon, 24 Mar 2014 06:02:24 +0000 (06:02 +0000)]
Merge "Add default implementation of getLength to base MediaHandler class"

10 years agoAdd Special:ListDuplicatedFiles expensive query special page.
Brian Wolff [Sat, 21 Sep 2013 19:08:59 +0000 (16:08 -0300)]
Add Special:ListDuplicatedFiles expensive query special page.

I saw some comments recently on commons suggesting that
better ways are needed to manage duplicate files (There are tools
for if a specific file is a duplicate, but no backlog of
outstanding duplicate files).

This seems like a fairly easy first step in that direction.

Wasn't sure if this should be an image gallery type
query page, or just a list. I think in this case a plain
list is more useful.

Change-Id: Ibe4b9da71ca6451ec4e6b0050feaf3ca70e1b888

10 years agoAdd support for specifying headers in FileRepo::quickImport
Brian Wolff [Sat, 22 Mar 2014 02:23:55 +0000 (23:23 -0300)]
Add support for specifying headers in FileRepo::quickImport

Previously only content-disposition headers were allowed.

This is needed so that TimedMediaHandler can put
X-Content-Duration headers on ogg transcodes.

Bug: 62928
Change-Id: Ic053be63b3edf348da95a88fc494fcf334430265

10 years agoAdd default implementation of getLength to base MediaHandler class
Brian Wolff [Sat, 22 Mar 2014 02:28:38 +0000 (23:28 -0300)]
Add default implementation of getLength to base MediaHandler class

It was being called in File::getLength, but was only implemented
in a subclass, that's not even in core. Any method of a handler
class called from a method in File class should work on any
subclass of MediaHandler.

Change-Id: I94eda90ec3dd64b6ff2e3a5732aa539366cec521

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

Change-Id: I30f333c40b241dfeefea11e617f3f80c70a84bb1

10 years agoMerge "Button group adjustments"
jenkins-bot [Sun, 23 Mar 2014 20:12:50 +0000 (20:12 +0000)]
Merge "Button group adjustments"

10 years ago[Regression] Delete autoblocks when removing autoblock flag
umherirrender [Sun, 23 Mar 2014 16:27:02 +0000 (17:27 +0100)]
[Regression] Delete autoblocks when removing autoblock flag

Since I5403f6e1d7f8f07273cd5da8068b928fdddcdfc9 on reblock the block
will be updated and not deleted/inserted and that update did not trigger
a delete of existing autoblocks.

Bug: 62748
Change-Id: I50384a41d819689944907e653e2495391253831b

10 years agoMerge "Misc fixes to UploadSourceField"
jenkins-bot [Sun, 23 Mar 2014 11:22:24 +0000 (11:22 +0000)]
Merge "Misc fixes to UploadSourceField"

10 years agoUpdate formatting for includes/specials/
Siebrand Mazeland [Sat, 22 Mar 2014 22:51:18 +0000 (23:51 +0100)]
Update formatting for includes/specials/

Change-Id: I478dedd0b692eae002a0ca9b0ec15cb2c357411f