lhc/web/wiklou.git
10 years agoMerge "Avoid an infinite redirect in $wgSecureLogin handling"
jenkins-bot [Wed, 14 May 2014 23:56:16 +0000 (23:56 +0000)]
Merge "Avoid an infinite redirect in $wgSecureLogin handling"

10 years agoMWException: Remove deprecated methods
Chad Horohoe [Mon, 12 May 2014 21:36:15 +0000 (14:36 -0700)]
MWException: Remove deprecated methods

No callers in core or extensions.

Change-Id: I3e2dc615bcd23838cf096625a767a7cf50fea140

10 years agoMerge "Update OOjs UI to v0.1.0-pre (80f1797a5c)"
jenkins-bot [Wed, 14 May 2014 21:35:42 +0000 (21:35 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (80f1797a5c)"

10 years agoUpdate OOjs UI to v0.1.0-pre (80f1797a5c)
James D. Forrester [Wed, 14 May 2014 18:14:12 +0000 (19:14 +0100)]
Update OOjs UI to v0.1.0-pre (80f1797a5c)

New changes:
9e4d2c6 Remove @abstract from classes which can be instantiated
0b43fbe Button accessibility
f61558d Add confirmation dialog
f52f1f2 Localisation updates from https://translatewiki.net.
d6849d5 build: Update jscs and jshint config
d0a5670 ConfirmationDialog clean up
513cb9d Auto-hide menus by default

Local changes:
Add the confirmation dialog messages to MW core's list in Resources.php

Bug: 50955
Change-Id: I67329820a631f46ed537d93398f35456f0e58679

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 14 May 2014 19:23:41 +0000 (19:23 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I7826e5f6fdb2e4e2af623e8fdfc44323469aebac

10 years agoMerge "Linker.php: Do not double escape accesskey in tooltip"
jenkins-bot [Wed, 14 May 2014 18:31:00 +0000 (18:31 +0000)]
Merge "Linker.php: Do not double escape accesskey in tooltip"

10 years agoMerge "Implement mediawiki.cookie module"
Robmoen [Wed, 14 May 2014 18:17:55 +0000 (18:17 +0000)]
Merge "Implement mediawiki.cookie module"

10 years agoUse FOR UPDATE in prior LocalFile timestamp check
Aaron Schulz [Wed, 14 May 2014 16:43:02 +0000 (09:43 -0700)]
Use FOR UPDATE in prior LocalFile timestamp check

* This covers the case with a snapshotted transaction outside of lock()/unlock()

Change-Id: I8639c2e51cb918f452dc1576681d6224fb4fb2c0

10 years agoRemove unused variables from SpecialAllpages::showToplevel()
Alexandre Emsenhuber [Wed, 14 May 2014 07:12:45 +0000 (09:12 +0200)]
Remove unused variables from SpecialAllpages::showToplevel()

Follow-up If750cad676 (71fe7c5)

Change-Id: I95bf953b0eb742e94ddff1b6adf6d784fb5dc87c

10 years agoImplement mediawiki.cookie module
Sam Smith [Tue, 25 Mar 2014 15:18:09 +0000 (15:18 +0000)]
Implement mediawiki.cookie module

Provides functonality similar to WebRequest#getCookie and WebResponse#setcookie.

Wraps $.cookie and automatically takes care of wgCookiePrefix etc.

Bug: 49156
Change-Id: I217ef258aecf1acd335e2cea56ae08b22541c7d4
Co-Author: Matthew Flaschen <mflaschen@wikimedia.org>
Co-Author: Timo Tijhof <krinklemail@gmail.com>

10 years agoAvoid an infinite redirect in $wgSecureLogin handling
Tim Starling [Wed, 14 May 2014 03:49:26 +0000 (13:49 +1000)]
Avoid an infinite redirect in $wgSecureLogin handling

If, for some reason, (e.g. https://gerrit.wikimedia.org/r/#/c/133205/ )
HTTPS requests are not recognised as such and WebRequest::getProtocol()
unconditionally returns "http", use the fromhttp parameter to avoid an
infinite redirect loop.

Change-Id: Iefbf679ef995f5e347e2b9c3f1f5a5b22055e107

10 years agoMerge "qunit: Make use of 'config' and 'messages' shortcuts in module setup"
jenkins-bot [Wed, 14 May 2014 00:16:00 +0000 (00:16 +0000)]
Merge "qunit: Make use of 'config' and 'messages' shortcuts in module setup"

10 years agoqunit: Make use of 'config' and 'messages' shortcuts in module setup
umherirrender [Wed, 7 May 2014 18:41:01 +0000 (20:41 +0200)]
qunit: Make use of 'config' and 'messages' shortcuts in module setup

While calling mw.config and mw.messages manually works fine (the sandbox
covers mw.config and mw.messages in general, not just when using the
shortcut), let's consistently use the shortcuts.

Also clean up the extra local variable in some cases.

Change-Id: I9ac467ad87816c7dc681b62e9b085b643024c15e

10 years agoMerge "MWException: Don't send headers multiple times"
jenkins-bot [Tue, 13 May 2014 22:28:43 +0000 (22:28 +0000)]
Merge "MWException: Don't send headers multiple times"

10 years agoMerge "Made LocalFile avoid duplicate (name,timestamp) pairs"
jenkins-bot [Tue, 13 May 2014 22:21:16 +0000 (22:21 +0000)]
Merge "Made LocalFile avoid duplicate (name,timestamp) pairs"

10 years agoMade LocalFile avoid duplicate (name,timestamp) pairs
Aaron Schulz [Tue, 13 May 2014 22:03:32 +0000 (15:03 -0700)]
Made LocalFile avoid duplicate (name,timestamp) pairs

* Various bits of code seem to assume uniqueness already

bug: 65264
Change-Id: Ib00fdbe87a79296c640cd69d74928236ce7a4aee

10 years agoMerge "Revert "Simplify thumbnail styling to have consistency with mobile implementat...
jenkins-bot [Tue, 13 May 2014 21:56:38 +0000 (21:56 +0000)]
Merge "Revert "Simplify thumbnail styling to have consistency with mobile implementation""

10 years agoRevert "Simplify thumbnail styling to have consistency with mobile implementation"
Jforrester [Tue, 13 May 2014 21:52:07 +0000 (21:52 +0000)]
Revert "Simplify thumbnail styling to have consistency with mobile implementation"

Causes significant breakage for videos, author not around this week to address concerns.

This reverts commit b0012d2aeb6a5ef8172223c58ceb8fa5c78c5138.

Change-Id: If1d7ba81b47b9351427111a9060ea9893c87c96e

10 years agoMWException: Don't send headers multiple times
Chad Horohoe [Tue, 13 May 2014 19:15:06 +0000 (12:15 -0700)]
MWException: Don't send headers multiple times

Ideally we wouldn't have sent headers yet, but in some weird
code paths where we output stuff raw (like Export) we might
have already sent them.

All depends on when the failure happened.

Should silence all of the "headers already sent" being seen
from exports.

Change-Id: I12e0532e93d30b2255f73a9d0e017c73e30c3e28

10 years agoMerge "Improve a bit the code of SpecialAllpages::showChunk()"
jenkins-bot [Tue, 13 May 2014 21:15:18 +0000 (21:15 +0000)]
Merge "Improve a bit the code of SpecialAllpages::showChunk()"

10 years agoMerge "Installer: Minor tweaks to UI"
jenkins-bot [Tue, 13 May 2014 20:43:47 +0000 (20:43 +0000)]
Merge "Installer: Minor tweaks to UI"

10 years agoMerge "jquery.accessKeyLabel: Replace hardcoded brackets and space"
jenkins-bot [Tue, 13 May 2014 20:42:40 +0000 (20:42 +0000)]
Merge "jquery.accessKeyLabel: Replace hardcoded brackets and space"

10 years agoMerge "Make phpcs-strict pass on includes/ (6/~10)"
jenkins-bot [Tue, 13 May 2014 20:29:44 +0000 (20:29 +0000)]
Merge "Make phpcs-strict pass on includes/ (6/~10)"

10 years agoMerge "Allow floating point values for $wgJobBackoffThrottling"
jenkins-bot [Tue, 13 May 2014 20:29:25 +0000 (20:29 +0000)]
Merge "Allow floating point values for $wgJobBackoffThrottling"

10 years agoMerge "Update documentation and method visibility for SkinTemplate"
jenkins-bot [Tue, 13 May 2014 20:24:35 +0000 (20:24 +0000)]
Merge "Update documentation and method visibility for SkinTemplate"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 13 May 2014 20:08:01 +0000 (20:08 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I2be71c60446c0de60944b9a1439ec52e4c99e129

10 years agoMerge "Update the API credits"
jenkins-bot [Tue, 13 May 2014 19:42:08 +0000 (19:42 +0000)]
Merge "Update the API credits"

10 years agoMerge "Improved rate limit log to mention IP"
jenkins-bot [Tue, 13 May 2014 19:33:19 +0000 (19:33 +0000)]
Merge "Improved rate limit log to mention IP"

10 years agoImprove a bit the code of SpecialAllpages::showChunk()
Alexandre Emsenhuber [Tue, 13 May 2014 18:33:55 +0000 (20:33 +0200)]
Improve a bit the code of SpecialAllpages::showChunk()

- Early return when including the page, makes one indentation
  level less for the rest of the method
- Directly put top and bottom links in an array, so that it is
  easier to see where they are going to be displayed
- Group the HTML generation for the top form at the end of the
  method again for better readability

Change-Id: I70c174a4c6363b2303cb5110782c5a3375640f2d

10 years agojquery.accessKeyLabel: Replace hardcoded brackets and space
Fomafix [Tue, 13 May 2014 18:23:05 +0000 (18:23 +0000)]
jquery.accessKeyLabel: Replace hardcoded brackets and space

Since If914e26f2af23f04c46f011ad8a276a9d3190583 the brackets of the
accesskey are localized, so do it also on the client side.

Also added a comment to match php and js.
Adjust tests to work on wikis with changed messages.

Bug: 65010
Change-Id: Id9908b9efcb923f0b740e2c8fd77d1ef676b489f

10 years agoInstaller: Minor tweaks to UI
Waldir Pimenta [Fri, 3 May 2013 15:46:49 +0000 (16:46 +0100)]
Installer: Minor tweaks to UI

- add a tooltip to the "help" links to make it clear they'll expand in place
- don't use an IMG tag for the download link;
  instead, apply a css background to the A element, so that on hover
  there isn't an underlined space between the link text and the image;
- grammar fix to sqlite help message: replace a colon with a semicolon.

Change-Id: Iacf5ed57d983a21d87467c848823607032901cec

10 years agoMerge "Revert "Make it possible to install extensions using Composer""
jenkins-bot [Tue, 13 May 2014 17:28:36 +0000 (17:28 +0000)]
Merge "Revert "Make it possible to install extensions using Composer""

10 years agoMerge "API: Fix documentation for ApiBase::require*OneParameter"
jenkins-bot [Tue, 13 May 2014 15:44:09 +0000 (15:44 +0000)]
Merge "API: Fix documentation for ApiBase::require*OneParameter"

10 years agoRequire one of page id or page title as params to ApiRollback
Marius Hoch [Tue, 13 May 2014 14:29:22 +0000 (16:29 +0200)]
Require one of page id or page title as params to ApiRollback

Also made the code flow easier to understand by moving
calls to ApiBase::extractRequestParams up in the stack.

Change-Id: I346c6ae4fc0b48c5a794c3d621018baf9bde6b9e
Follows-up: I9c4e4fa

10 years agoAPI: Fix documentation for ApiBase::require*OneParameter
Brad Jorsch [Tue, 13 May 2014 15:27:53 +0000 (11:27 -0400)]
API: Fix documentation for ApiBase::require*OneParameter

The existing doc blocks for all three of these functions is entirely
wrong.
* ApiBase::requireOnlyOneParameter
* ApiBase::requireMaxOneParameter
* ApiBase::requireAtLeastOneParameter

Change-Id: Id0dd86be3cbfa813a43f918c7d780c7ee2afc09e

10 years agoUpdate the API credits
Marius Hoch [Tue, 13 May 2014 15:17:05 +0000 (17:17 +0200)]
Update the API credits

Put Brad Jorsch (anomie) as lead developer (as he's the one
who does most of the review work etc. these days).

Made Yuri's lead developer time frame end in 2013 (as he
last commited to the api in 2013 AFAIS).

Change-Id: I640ddf251340214b4520d3072e22dfe6b54815fb

10 years agoAllow use of ApiRollback using pageid instead of title
addshore [Tue, 13 May 2014 11:42:10 +0000 (12:42 +0100)]
Allow use of ApiRollback using pageid instead of title

Change-Id: I9c4e4fa59af0b84416d950f1428da821318f85fc

10 years agoRemove user id from Special:Preferences
Kunal Mehta [Mon, 12 May 2014 04:48:18 +0000 (21:48 -0700)]
Remove user id from Special:Preferences

Dating back all the way to r15, it serves no useful purpose
as users typically do not need to know their own user id.
If they really want to, they can easily look it up using the
API.

Bug: 58626
Change-Id: Ib146abb8b579bc9a3dac601aff8e2818b2ed49e4

10 years agoRevert "Add API action=watch 'entirewatchlist' param to bulk-clear watchlist."
MaxSem [Tue, 13 May 2014 03:00:48 +0000 (03:00 +0000)]
Revert "Add API action=watch 'entirewatchlist' param to bulk-clear watchlist."

Unbounded modification = replication lag. And this function is specifically intended for clearing very large watchlists which would easily escalate to pageable lags of several minutes.

This reverts commit 66b07ea38133992f98bb158c95103b720fe958ec.

Change-Id: Ie34be712884407e671d715e56bda3bff4a7e78f4

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 12 May 2014 20:08:13 +0000 (20:08 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I4f58769751a4a439ab93f7d22c427c49857d4c22

10 years agoMerge "Remove messages.inc, rebuildLanguage.php, writeMessagesArray.inc"
jenkins-bot [Mon, 12 May 2014 14:51:30 +0000 (14:51 +0000)]
Merge "Remove messages.inc, rebuildLanguage.php, writeMessagesArray.inc"

10 years agoMake phpcs-strict pass on includes/ (6/~10)
Siebrand Mazeland [Mon, 12 May 2014 14:42:51 +0000 (16:42 +0200)]
Make phpcs-strict pass on includes/ (6/~10)

Change-Id: I566183b5d660a55bb3b2aa7186aaed5355ead2c6

10 years agoMerge "Add two more categories to Special:TrackingCategories"
jenkins-bot [Mon, 12 May 2014 14:18:33 +0000 (14:18 +0000)]
Merge "Add two more categories to Special:TrackingCategories"

10 years agoAdd two more categories to Special:TrackingCategories
oskar.jauch@gmail.com [Thu, 8 May 2014 19:09:23 +0000 (21:09 +0200)]
Add two more categories to Special:TrackingCategories

Bug: 63795
Change-Id: I303fd3faa00aa0d3ca8931bea0d7c5ce5a263184

10 years agoRemove messages.inc, rebuildLanguage.php, writeMessagesArray.inc
Bartosz Dziewoński [Sun, 11 May 2014 12:52:24 +0000 (14:52 +0200)]
Remove messages.inc, rebuildLanguage.php, writeMessagesArray.inc

They are not being used anymore since the messages lists are in JSON
format, no idea why they were still here. Especially messages.inc is
just confusing everyone adding or removing messages.

Change-Id: If104ca1609e122b6871a97521065916a26734516

10 years agoUpdate documentation and method visibility for SkinTemplate
Siebrand Mazeland [Mon, 12 May 2014 13:16:51 +0000 (15:16 +0200)]
Update documentation and method visibility for SkinTemplate

Change-Id: I7c23e6c9f5189378fd1d33230820e8fd157a4750

10 years agoMerge "Make update.php file executable"
jenkins-bot [Mon, 12 May 2014 10:36:05 +0000 (10:36 +0000)]
Merge "Make update.php file executable"

10 years agoRelease notes for c0c39640e472332
Siebrand Mazeland [Mon, 12 May 2014 10:17:23 +0000 (12:17 +0200)]
Release notes for c0c39640e472332

Change-Id: I008dea87357344cf9fc9d530cd0e84edcaba78f9

10 years agoPreprocessor_DOM::newPartNodeArray should check that loadXML succeeded
Brad Jorsch [Fri, 9 May 2014 20:09:03 +0000 (16:09 -0400)]
Preprocessor_DOM::newPartNodeArray should check that loadXML succeeded

If something manages to get invalid UTF-8 into
Preprocessor_DOM::newPartNodeArray, or anything else that somehow is
invalid XML, it should handle it in the same way that
Preprocessor_DOM::preprocessToObj does rather than having something
further down the line blow up on a PPNode_DOM with a null node.

Bug: 65081
Change-Id: Ic24db455808106e17d49a11e41df33ec170f1206

10 years agoMerge "tyop fxi"
jenkins-bot [Mon, 12 May 2014 00:22:20 +0000 (00:22 +0000)]
Merge "tyop fxi"

10 years agoSpecialAllpages: Remove fancy index functionality
Bartosz Dziewoński [Sun, 11 May 2014 19:41:10 +0000 (21:41 +0200)]
SpecialAllpages: Remove fancy index functionality

Causes more trouble than it's worth.

Bug: 58051
Bug: 65159
Change-Id: If750cad67690df301608951b72f89ae18851e71e

10 years agoMerge "PPAccum_Hash -> PPDAccum_Hash"
jenkins-bot [Sun, 11 May 2014 20:46:34 +0000 (20:46 +0000)]
Merge "PPAccum_Hash -> PPDAccum_Hash"

10 years agoReplace complex for loop for foreach, count and break
Reedy [Sun, 11 May 2014 16:17:49 +0000 (17:17 +0100)]
Replace complex for loop for foreach, count and break

Change-Id: If1d3193f9579ce6b0d3c790b234d56ea1fe73237

10 years agotyop fxi
Brion Vibber [Sun, 11 May 2014 19:39:23 +0000 (21:39 +0200)]
tyop fxi

Change-Id: I05cd37b3dab7d0eeffb4df81f906fd1e881b7f9f

10 years agoMake phpcs-strict pass on includes/ (5/~10)
Siebrand Mazeland [Sun, 11 May 2014 15:59:57 +0000 (17:59 +0200)]
Make phpcs-strict pass on includes/ (5/~10)

Change-Id: I259f3f11cfc22f3ed1693f9ebd5bd80491b8a6e8

10 years agoMake phpcs-strict pass on includes/ (4/~10)
Siebrand Mazeland [Sun, 11 May 2014 15:34:55 +0000 (17:34 +0200)]
Make phpcs-strict pass on includes/ (4/~10)

Change-Id: I2767205a7059adfb8fa090a82abd332e518f2590

10 years agoMake phpcs-strict pass on includes/ (3/~10)
Siebrand Mazeland [Sun, 11 May 2014 15:34:14 +0000 (17:34 +0200)]
Make phpcs-strict pass on includes/ (3/~10)

Change-Id: Ibf86d03b5479c47ee72c0dafea6777ef8178fe68

10 years agoMake phpcs-strict pass on includes/ (2/~10)
Siebrand Mazeland [Sun, 11 May 2014 15:33:33 +0000 (17:33 +0200)]
Make phpcs-strict pass on includes/ (2/~10)

Change-Id: I59fa9af7b16e0a5a4eb8a5cc764a605b18137316

10 years agoMake phpcs-strict pass on includes/ (1/~10)
Siebrand Mazeland [Sun, 11 May 2014 15:32:18 +0000 (17:32 +0200)]
Make phpcs-strict pass on includes/ (1/~10)

Change-Id: Ib51381a2261d064988ba2f39b71c0252f2458faf

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 11 May 2014 19:05:01 +0000 (19:05 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I8e7928ea4e57fcc0f2fc2c09fa8bed3a05cdf55d

10 years agoPass phpcs-strict on includes/objectcache/
Siebrand Mazeland [Sun, 11 May 2014 09:08:36 +0000 (11:08 +0200)]
Pass phpcs-strict on includes/objectcache/

Change-Id: Ib99f2e34255df0cc846727b134d1788aec48529d

10 years agoPass php-strict for OutputPage
Siebrand Mazeland [Sun, 11 May 2014 01:54:15 +0000 (03:54 +0200)]
Pass php-strict for OutputPage

Change-Id: Ia5d03277fff543ca672dc8efc7eaaeca4888ac23

10 years agoMerge "Update parameter documentation for removeHTMLtags()"
jenkins-bot [Sun, 11 May 2014 16:42:44 +0000 (16:42 +0000)]
Merge "Update parameter documentation for removeHTMLtags()"

10 years agoMerge "Change visibility of some methods in Parser and update docs accordingly"
jenkins-bot [Sun, 11 May 2014 16:40:39 +0000 (16:40 +0000)]
Merge "Change visibility of some methods in Parser and update docs accordingly"

10 years agoUpdate parameter documentation for removeHTMLtags()
Siebrand Mazeland [Sat, 10 May 2014 18:28:15 +0000 (20:28 +0200)]
Update parameter documentation for removeHTMLtags()

Change-Id: I7c0530e5b7d0d2001153d69fa9b9525f661dd5c5

10 years agoMerge "Remove incorrect return type for getGoodLinkID()"
jenkins-bot [Sun, 11 May 2014 16:29:10 +0000 (16:29 +0000)]
Merge "Remove incorrect return type for getGoodLinkID()"

10 years agoChange visibility of some methods in Parser and update docs accordingly
Siebrand Mazeland [Sat, 10 May 2014 23:07:20 +0000 (01:07 +0200)]
Change visibility of some methods in Parser and update docs accordingly

Change-Id: Ibe9d817325b4abafe137cd3f2fc6ccc25740cf58

10 years agoPPAccum_Hash -> PPDAccum_Hash
Reedy [Sun, 11 May 2014 16:27:21 +0000 (17:27 +0100)]
PPAccum_Hash -> PPDAccum_Hash

Change-Id: I79eac91cc3ff4ca515d15d8fa08d492b5cdcaa1b

10 years agoMerge "Various documentation updates for includes/parser/"
jenkins-bot [Sun, 11 May 2014 16:27:07 +0000 (16:27 +0000)]
Merge "Various documentation updates for includes/parser/"

10 years agoRemove incorrect return type for getGoodLinkID()
Siebrand Mazeland [Sun, 11 May 2014 16:19:00 +0000 (18:19 +0200)]
Remove incorrect return type for getGoodLinkID()

Change-Id: Ib9c0dcf5104fdc5f364e0b49d539b63bf2eb046c

10 years agoVarious documentation updates for includes/parser/
Siebrand Mazeland [Sat, 10 May 2014 23:05:51 +0000 (01:05 +0200)]
Various documentation updates for includes/parser/

Change-Id: I16dd3a792cc83f8c80b3652d42c055730f6d177a

10 years agoRemove unused includes/utils/ConfEditor.php
Siebrand Mazeland [Fri, 9 May 2014 12:49:46 +0000 (14:49 +0200)]
Remove unused includes/utils/ConfEditor.php

It was previously used by LocalisationUpdate. After the rewrite, it was no
longer used, but in an obsolete tests file. This has been removed in
I112c7fd396c47827999c in LocalisationUpdate.

Change-Id: I8baab87c1a0c5df73b0904e4ac34b621d0d72778

10 years agoMerge "Simplify thumbnail styling to have consistency with mobile implementation"
jenkins-bot [Sun, 11 May 2014 15:15:14 +0000 (15:15 +0000)]
Merge "Simplify thumbnail styling to have consistency with mobile implementation"

10 years agoSimplify thumbnail styling to have consistency with mobile implementation
jrobson [Sun, 11 May 2014 14:17:05 +0000 (16:17 +0200)]
Simplify thumbnail styling to have consistency with mobile implementation

Remove undocumented !important rule - !important is bad.

Bug: 65160
Change-Id: I21d6856d51478395cbe59e86e2f3aec495a74a38

10 years agothumb.php: support an optional "px" width suffix
Faidon Liambotis [Sun, 11 May 2014 14:57:54 +0000 (16:57 +0200)]
thumb.php: support an optional "px" width suffix

A large percentage (40-50%) of the 500s that are emitted in production
are for a single URL,
https://commons.wikimedia.org/w/thumb.php?f=Crystal_Clear_action_viewmag.png&width=21px

The reason this fails is because thumb.php expects width to be "21", not
"21px", and it currently tries to fetch (and generate) the "21pxpx"
thumb size, which is obviously an invalid size. (an invalid size
shouldn't result in a 5xx but rather to a 4xx. though; that's a separate
bug that needs to be fixed).

This URL is embedded by a gadget, Gadget-searchbox-js, that is copied in
a lot of our wikis, including a big one, frwiki. mwgrep reveals that
there are a bunch of other URLs in various Gadgets that have width
values with "px" in them, so this presumably worked at some point in the
past.

While we could in theory fix all those URLs in these dozens of gadgets
across wikis to not suffix width with "px", this sounds like a herculean
effort and we're probably better off adding this compatibility branch to
thumb.php that strips the "px" suffix, if existent.

Change-Id: I3a00c9634b1c6af49fb8503cc3ff4cafdaff6b43

10 years agoRevert "Make it possible to install extensions using Composer"
Ori.livneh [Sun, 11 May 2014 10:00:35 +0000 (10:00 +0000)]
Revert "Make it possible to install extensions using Composer"

This reverts commit d6e69d774.

MediaWiki extensions are by definition part of the MediaWiki software
ecosystem, and could therefore be managed using a specialized solution;
The same is not true of PHP packages at large: we're not in a position to
change how the PHP community at large manages dependencies. To the extent
that we have a choice, we should use interfaces like composer.json to
solve for the problem of integration with the outside world.

Change Ib125bea00 made the opposite choice, compromising our ability to
express how MediaWiki relates to external software components in exchange
for superficial gains in convenience of managing MediaWiki extensions.
(I consider the gains superficial because they do not leverage the fact
that extensions share MediaWiki's code -- a property that should be
exploited to provide an extension management solution that is
MediaWiki-aware, providing, for example, a uniform configuration
management interface.)

The cost of that change are manifest in bug 64597: we lost the ability to
express a dependency on PHPUnit in the way that the PHPUnit upstream
recommends.

The problem that change  Ib125bea00 set out to solve is that modifying
composer.json to express dependencies on extensions means having a local
diff that conflicts with the code in version control. This issue is
actually discussed by the Composer documentation. In short, Composer's
developers recommend that if your production environment uses a cvs to
version code, you should maintain your own clone of the upstream
repository and version your composer.json that way. More detailed
discussion of these issues can be found at
<https://getcomposer.org/doc/05-repositories.md#vcs> and
<https://getcomposer.org/doc/faqs/why-can't-composer-load-repositories-recursively.md>.
I also note that the Composer documentation makes many references
to monolog as an exemplary Composer project, and it too maintains a
composer.json in the repository root.

Change-Id: I3e7c668ee32401e731120cfa9f96986fd8fde8f4

10 years agoMerge "CSS style to make HTML5 <wbr> work on IE 8-11"
jenkins-bot [Sun, 11 May 2014 10:17:24 +0000 (10:17 +0000)]
Merge "CSS style to make HTML5 <wbr> work on IE 8-11"

10 years agoCSS style to make HTML5 <wbr> work on IE 8-11
Brion Vibber [Sat, 10 May 2014 22:54:42 +0000 (00:54 +0200)]
CSS style to make HTML5 <wbr> work on IE 8-11

(Note that using the zero-width space directly is roughly equivalent;
see https://en.wikipedia.org/wiki/Zero-width_space )

Bug: 65155
Change-Id: I53f62fdb26cec65a3f4a5bea1bb9b1d7a9cb9c13

10 years agoDon't use $this for docuementing hook parameters
Alexandre Emsenhuber [Sun, 11 May 2014 10:02:21 +0000 (12:02 +0200)]
Don't use $this for docuementing hook parameters

It is a reserved keyword, so this only confuses people.

Change-Id: I6553bd93ac6f72be42493a0c3ca59c63d4a97e18

10 years agoExtend AbortEmailNotification hook to access log type etc.
Nemo bis [Sat, 10 May 2014 07:48:54 +0000 (09:48 +0200)]
Extend AbortEmailNotification hook to access log type etc.

Bug: 42458
Change-Id: Ifc3935f031c49f9b49ae76c5a8af8334e70ca2b1

10 years agoMerge "Remove $wgSessionStarted"
jenkins-bot [Sun, 11 May 2014 09:13:49 +0000 (09:13 +0000)]
Merge "Remove $wgSessionStarted"

10 years agoMerge "jquery.suggestions: Hide the suggestions list asynchronously"
jenkins-bot [Sun, 11 May 2014 09:10:14 +0000 (09:10 +0000)]
Merge "jquery.suggestions: Hide the suggestions list asynchronously"

10 years agoMerge "Fixed doc typo"
jenkins-bot [Sun, 11 May 2014 09:09:54 +0000 (09:09 +0000)]
Merge "Fixed doc typo"

10 years agoMerge "Several tweaks to the install.php script"
jenkins-bot [Sun, 11 May 2014 09:04:48 +0000 (09:04 +0000)]
Merge "Several tweaks to the install.php script"

10 years agoFixed doc typo
Aaron Schulz [Sun, 11 May 2014 09:03:00 +0000 (02:03 -0700)]
Fixed doc typo

Change-Id: I4c81dc62c241e1c32cbda996323d082c8b2d48a3

10 years agoFix most CodeSniffer issues in includes/parser/
Siebrand Mazeland [Sat, 10 May 2014 23:03:45 +0000 (01:03 +0200)]
Fix most CodeSniffer issues in includes/parser/

Remaining are the classes containing underscores and possibly a few other
issues that will be addressed soonish.

Change-Id: Icf56374c71afc134420ebbcfecf12dcb29dc9564

10 years agoSeveral tweaks to the install.php script
Waldir Pimenta [Sun, 26 May 2013 13:17:24 +0000 (14:17 +0100)]
Several tweaks to the install.php script

- Fix description of the "admin" option, which says there's a default,
  "WikiSysop", when this isn't the case.
- Use "MediaWiki" instead of "Don't care" as the default value
  for the "name" argument
- make the "name" argument optional, so that its default value
  can actually work as such
- test for getOption's default parameter value (null)
  rather than providing one (false) and testing for it
- fix indication of default value for --dbpath
  and document where it comes from
- format the default for --confpath
  the same way as other defaults are displayed
- add description
- use trim() for --passfile, as is done for --dbpassfile
- use single quotes where possible
- mention in the documentation where the default values come from
- various minor text adjustments
- bonus: typo fix in a comment in Maintenance.php

Change-Id: Icbc0b02cfbf09b3f97ed86f4a68c3b35a9c839c8

10 years agoDeclare visibility on class properties of includes/parser/
Siebrand Mazeland [Sat, 10 May 2014 22:52:21 +0000 (00:52 +0200)]
Declare visibility on class properties of includes/parser/

Change-Id: If03a9bd5eb83be4d15f54e73f49f42540fb7d5fc

10 years agoMerge "Pass phpcs-strict on includes/profiler/"
jenkins-bot [Sat, 10 May 2014 22:51:24 +0000 (22:51 +0000)]
Merge "Pass phpcs-strict on includes/profiler/"

10 years agoMerge "Pass phpcs-strict on includes/specials/ (2/3)"
jenkins-bot [Sat, 10 May 2014 22:50:22 +0000 (22:50 +0000)]
Merge "Pass phpcs-strict on includes/specials/ (2/3)"

10 years agoMerge "Pass phpcs-strict on includes/specials/ (3/3)"
jenkins-bot [Sat, 10 May 2014 22:45:58 +0000 (22:45 +0000)]
Merge "Pass phpcs-strict on includes/specials/ (3/3)"

10 years agoMerge "Update html5 specs link in comment"
SPQRobin [Sat, 10 May 2014 22:00:49 +0000 (22:00 +0000)]
Merge "Update html5 specs link in comment"

10 years agoMake *.sh files use LF
Matthew Flaschen [Sat, 10 May 2014 10:09:28 +0000 (12:09 +0200)]
Make *.sh files use LF

Someone setting up MediaWiki-Vagrant on Windows had an issue with
a carriage return in a shell file sha-bang, which this should fix.

Change-Id: I190a6a6f80233b4a0ac9fd6c34d1b8af9bd6f17c

10 years agoMerge "Fix return type documentation for getCacheTTL()"
jenkins-bot [Sat, 10 May 2014 20:14:38 +0000 (20:14 +0000)]
Merge "Fix return type documentation for getCacheTTL()"

10 years agomediawiki.api.watch: Use postWithToken to recover from an invalid token
Derk-Jan Hartman [Sat, 10 May 2014 19:59:20 +0000 (21:59 +0200)]
mediawiki.api.watch: Use postWithToken to recover from an invalid token

Bug: 65157
Change-Id: I7a4282438eb9eb4a66b1c2ac286951bd3b6080e0

10 years agoMerge "Adds the SidebarBeforeOutput hook"
jenkins-bot [Sat, 10 May 2014 18:30:25 +0000 (18:30 +0000)]
Merge "Adds the SidebarBeforeOutput hook"

10 years agoFix return type documentation for getCacheTTL()
Siebrand Mazeland [Sat, 10 May 2014 18:26:47 +0000 (20:26 +0200)]
Fix return type documentation for getCacheTTL()

Change-Id: I57e85351503897f8f8febb2fb49942a2ddd251e6

10 years agoRemove ruleset for obsolete class .rimage
Waldir Pimenta [Sat, 10 May 2014 17:04:14 +0000 (19:04 +0200)]
Remove ruleset for obsolete class .rimage

Change-Id: I0f20b54002729baa1f8d0e249c4ea08db6cd5dc6

10 years agoRemove unnecessary rule display:-moz-inline-box
Waldir Pimenta [Sat, 10 May 2014 17:13:27 +0000 (19:13 +0200)]
Remove unnecessary rule display:-moz-inline-box

Gecko now supports display:inline-block directly.

Change-Id: I6591212c371f03c766a1296f2520bf09fe43e286

10 years agoRemove tabindex from Special:Block
umherirrender [Sun, 27 Apr 2014 11:43:16 +0000 (13:43 +0200)]
Remove tabindex from Special:Block

There is a autofocus on the Target field, which sets the start of
tabbing and than all the other fields are tabbed in the correct native
order. No need for extra tabindex order.
Tested with IE11 and FF28

Bug: 61257
Change-Id: Ic0d7365447733a23fa87c1d9b91c0f4f0f61bb39