lhc/web/wiklou.git
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 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 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 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 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 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 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

10 years agoLink to bugzilla.wikimedia.org in README for consistency
Alexandre Emsenhuber [Fri, 14 Mar 2014 20:47:13 +0000 (21:47 +0100)]
Link to bugzilla.wikimedia.org in README for consistency

Change-Id: I27a97cb89ba1981c931fe5fe2ae1422c832c4405

10 years agoRemove double wfDebug() call in Database.php
Alexandre Emsenhuber [Sun, 23 Mar 2014 10:24:38 +0000 (11:24 +0100)]
Remove double wfDebug() call in Database.php

Fix for I12adfb4fcb (54664be).

Change-Id: I6acfd35aae18af9d6e5ae29e5554ca7d04342af5

10 years agoAutomatically add a new line at the end of wfLogDBError()
Alexandre Emsenhuber [Sun, 23 Mar 2014 09:30:59 +0000 (10:30 +0100)]
Automatically add a new line at the end of wfLogDBError()

I found two calls to wfLogDBError() that do not add a new line
at the end of the message. So instead of adding them to that
entries, I changed wfLogDBError() to automatically put it on
icoming messages; as for wfDebugLog().

Change-Id: Id014b5827a0aeef6873ebf08d78f0a3d7581d63b

10 years agoFix documentation of wfDebugLog()
Alexandre Emsenhuber [Sun, 23 Mar 2014 09:17:48 +0000 (10:17 +0100)]
Fix documentation of wfDebugLog()

- $public parameter does not exist anymore
- Put the type before the parameter name

Change-Id: I0f3a893803ab5466570ef45398f797e4714d9d37

10 years agoMisc fixes to UploadSourceField
Alexandre Emsenhuber [Sun, 23 Mar 2014 08:58:06 +0000 (09:58 +0100)]
Misc fixes to UploadSourceField

Follow-up I7c15fd4250 (00ca365).

- Added 'radio-id' configuration option to set the id of the radio button,
  and changed Special:Upload to use it. Had to keep the old way to set it
  since this class is used by some extensions.
- Always set the "for" attribute of the label to the field and the not the
  radio, since the text it contains does not describes the radio button.

Change-Id: I524f8743fd03546024f8c97852a2bcb3c23c6019

10 years agoMerge "AutoLoader: Remove "Class ... not found" debug message"
jenkins-bot [Sat, 22 Mar 2014 21:37:40 +0000 (21:37 +0000)]
Merge "AutoLoader: Remove "Class ... not found" debug message"

10 years agoMerge "Remove some unneeded local vars from EditPage.php"
jenkins-bot [Sat, 22 Mar 2014 21:26:07 +0000 (21:26 +0000)]
Merge "Remove some unneeded local vars from EditPage.php"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 22 Mar 2014 20:33:31 +0000 (20:33 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I93194841aebc13bb2e6e147ae6170a3acf2186e7

10 years agoMerge "Give name for oojs-ui i18n files"
jenkins-bot [Sat, 22 Mar 2014 17:18:39 +0000 (17:18 +0000)]
Merge "Give name for oojs-ui i18n files"

10 years agoAdd a few @since to mediawiki.api
Niklas Laxström [Sat, 22 Mar 2014 14:03:03 +0000 (14:03 +0000)]
Add a few @since to mediawiki.api

Change-Id: I0717d1171a7179beb4cee6a922d682864e600e9c

10 years agoGive name for oojs-ui i18n files
Niklas Laxström [Sat, 22 Mar 2014 10:00:27 +0000 (10:00 +0000)]
Give name for oojs-ui i18n files

Even though this shouldn't cause problems with array_merge etc.
everything else has a name, so why shouldn't this.

Change-Id: Id40d9036c2f3cf89343bcfd14d37a14d4c306d01

10 years agoDatabaseMysqlBase: Remove broken check for Percona Server
Kevin Israel [Thu, 16 Jan 2014 07:18:36 +0000 (02:18 -0500)]
DatabaseMysqlBase: Remove broken check for Percona Server

Percona Server does not include its name in its version suffix.
It would be possible to check for precompiled versions of the
product using the version_comment variable, though not third-
party builds from its source code (which are merely indicated
as "Source distribution").

Given that even Percona itself does not distinguish between
Percona Server and MySQL in their version of the mysql command-
line client, I have chosen simply to remove the broken check.

I have also made the check for MariaDB consistent with that
in its version of mysql (by also checking for the old suffix
"-maria-").

Follows-up 0eab1ace67e7.

Change-Id: I62c3949b775a38f28f09568ebb28af2adb9be69b

10 years agoSwap wfProfileIn/Out calls for ProfileSection
Chad Horohoe [Fri, 21 Mar 2014 17:13:28 +0000 (10:13 -0700)]
Swap wfProfileIn/Out calls for ProfileSection

Change-Id: Iece1532241dda4297dd4ca2c93287c13462eb2e9

10 years agoMerge "Avoid showing crazy staleness times at ActiveUsers"
jenkins-bot [Fri, 21 Mar 2014 23:15:27 +0000 (23:15 +0000)]
Merge "Avoid showing crazy staleness times at ActiveUsers"

10 years agoMerge "Remove completely useless implementation of getInfo()"
jenkins-bot [Fri, 21 Mar 2014 23:13:43 +0000 (23:13 +0000)]
Merge "Remove completely useless implementation of getInfo()"

10 years agoMWException: Expand {{SITENAME}} in pagetitle with Message::text()
Brian Wolff [Fri, 28 Feb 2014 13:01:10 +0000 (09:01 -0400)]
MWException: Expand {{SITENAME}} in pagetitle with Message::text()

Bug: 58447
Change-Id: I5f4fcb6d6e044f708cd6adb1bc7312d592fc74dd

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 21 Mar 2014 20:46:11 +0000 (20:46 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I18970accbce3b383e4ad89df2b5cd0d638861e26

10 years agoUpdate OOjs UI to v0.1.0-pre (3b434d5388)
James D. Forrester [Fri, 21 Mar 2014 18:06:33 +0000 (11:06 -0700)]
Update OOjs UI to v0.1.0-pre (3b434d5388)

New changes:
076b85e Split autoAdd into catchall and group specific settings

Change-Id: Idb99c0af20f966ead553c7a7eded421ad8b44382

10 years agoRemoving Wikitravel from the default interwiki list
kaldari [Fri, 21 Mar 2014 02:00:13 +0000 (19:00 -0700)]
Removing Wikitravel from the default interwiki list

It has already been removed from the WMF list.

Note that this will have no effect on existing wikis, only new wikis.

Change-Id: I201bc28ab17fdae3b7c5d46f1c65d70e03380ca9

10 years agoAutoLoader: Remove "Class ... not found" debug message
Kevin Israel [Fri, 21 Mar 2014 15:07:08 +0000 (11:07 -0400)]
AutoLoader: Remove "Class ... not found" debug message

Per existing FIXME comment: "This is not very polite. Assume we
do not manage the class."

Reverts the remaining portion of r44296 / 2f584f68a95a while
clarifying the "Give up" comment.

Change-Id: I4471f9376cae6b3c3e8df99e960770863ebf37ca

10 years agoMerge "Updating link protocols for WMF wikis in the interwiki map"
jenkins-bot [Fri, 21 Mar 2014 11:23:13 +0000 (11:23 +0000)]
Merge "Updating link protocols for WMF wikis in the interwiki map"

10 years agoMerge "Adding Wikivoyage to the default interwiki map"
jenkins-bot [Fri, 21 Mar 2014 11:22:12 +0000 (11:22 +0000)]
Merge "Adding Wikivoyage to the default interwiki map"

10 years agoMerge "ResourceLoaderStartUpModule: Improve comment about modifiedTime hack"
jenkins-bot [Fri, 21 Mar 2014 10:49:01 +0000 (10:49 +0000)]
Merge "ResourceLoaderStartUpModule: Improve comment about modifiedTime hack"

10 years agoMerge "ResourceLoaderStartUpModule: Remove no-op "delete isCompatible""
jenkins-bot [Fri, 21 Mar 2014 10:46:45 +0000 (10:46 +0000)]
Merge "ResourceLoaderStartUpModule: Remove no-op "delete isCompatible""

10 years agoMerge "Fix possible error list of action=revisiondelete"
jenkins-bot [Fri, 21 Mar 2014 10:39:33 +0000 (10:39 +0000)]
Merge "Fix possible error list of action=revisiondelete"

10 years agoExclude prop=uploadwarning from allimages and stashimageinfo
umherirrender [Sun, 9 Feb 2014 14:00:11 +0000 (15:00 +0100)]
Exclude prop=uploadwarning from allimages and stashimageinfo

Was added with I4a0af8986f924cd127a73828e72da6998f28536c,
but looks only useful on prop=imageinfo

Change-Id: I59c5f11f83be7e59f317686ab7fa16ad6fda008b

10 years agoMake Special:Whatlinkshere.php transcludable
aalekhN [Thu, 9 Jan 2014 21:57:27 +0000 (03:27 +0530)]
Make Special:Whatlinkshere.php transcludable

This commit makes Special:Whatlinkshere transcludable by extending
SpecialWhatLinksHere with IncludableSpecialPage. It also adds a condition
in the showIndirectLinks function to avoid displaying the form when the
page is being transcluded.

Bug: 35486
Change-Id: I49d6be57a9a780f9f959cb4356c5ac026db81775

10 years agoRemove $wgHttpOnlyBlacklist
Kevin Israel [Fri, 21 Mar 2014 01:19:08 +0000 (21:19 -0400)]
Remove $wgHttpOnlyBlacklist

This hack was added in r34083 / 6b16f4410897 to support IE for Mac.
That browser is no longer supported, and no additional user-agent
strings have been added in WMF configuration.

Change-Id: Iffba121a9964e2ad387fad8827ddfd8dabcbd12e

10 years agoUpdating link protocols for WMF wikis in the interwiki map
kaldari [Fri, 21 Mar 2014 00:16:14 +0000 (17:16 -0700)]
Updating link protocols for WMF wikis in the interwiki map

Change-Id: I18d281104c1c670c3b2dce6b2970930aba26bef0

10 years agoAdding Wikivoyage to the default interwiki map
kaldari [Fri, 21 Mar 2014 00:04:26 +0000 (17:04 -0700)]
Adding Wikivoyage to the default interwiki map

Note that this has already been added to the WMF interwiki map, so
it will have no effect on WMF wikis, only 3rd party wikis.

I'll update the link protocols in a follow-up commit.

Change-Id: I78fbd3ec32c02e2b080c3ee64c6bb36218930a84

10 years agoMerge "Add link to PD help translatable pages from sidebar"
jenkins-bot [Thu, 20 Mar 2014 23:17:26 +0000 (23:17 +0000)]
Merge "Add link to PD help translatable pages from sidebar"

10 years agoMerge "Get rid of Internet Explorer for Mac fixes in Monobook's main.css."
jenkins-bot [Thu, 20 Mar 2014 22:53:25 +0000 (22:53 +0000)]
Merge "Get rid of Internet Explorer for Mac fixes in Monobook's main.css."

10 years agoFix possible error list of action=revisiondelete
umherirrender [Thu, 20 Mar 2014 18:14:02 +0000 (19:14 +0100)]
Fix possible error list of action=revisiondelete

Bug: 62853
Change-Id: I0efec9e8a6cf761def7673011bcc22a9f11111a9

10 years agoRemove some unneeded local vars from EditPage.php
umherirrender [Wed, 19 Mar 2014 18:50:51 +0000 (19:50 +0100)]
Remove some unneeded local vars from EditPage.php

Looks like a left over from refactoring in r31475

Change-Id: I6ffd2e1db8a842bebc37ce67e6265714258e79f9

10 years agoMerge "Fixed spacing"
jenkins-bot [Thu, 20 Mar 2014 20:45:37 +0000 (20:45 +0000)]
Merge "Fixed spacing"

10 years agoFixed spacing
umherirrender [Thu, 20 Mar 2014 18:59:20 +0000 (19:59 +0100)]
Fixed spacing

- Added spaces after if/foreach/catch
- Added new line before end of file
- Added or removed spaces before/after parenthesis, comma
- Added spaces around string concat

Change-Id: I0590070f1b3542108e242730e8d9a3ba9831e94f

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 20 Mar 2014 20:31:14 +0000 (20:31 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Idf379fd907b86b191bf863d4dded00e5d9c94f35

10 years agoMerge "mediawiki.page.watch.ajax: Fail early if updateWatchLink is called wrong"
jenkins-bot [Thu, 20 Mar 2014 18:20:10 +0000 (18:20 +0000)]
Merge "mediawiki.page.watch.ajax: Fail early if updateWatchLink is called wrong"

10 years agomediawiki.page.watch.ajax: Fail early if updateWatchLink is called wrong
Thiemo Mättig [Thu, 6 Feb 2014 14:33:01 +0000 (15:33 +0100)]
mediawiki.page.watch.ajax: Fail early if updateWatchLink is called wrong

If the exposed function is called from a gadget or user script but
no watch/unwatch link was found the function fails even if the
first parameter is a valid jQuery object as required by the
documentation. $link.attr(...) returns null and null.match(...)
fails.

A very simple example why this can happen is as follows:
mw.page.watch.updateWatchLink( $( '#ca-watch a' ), 'watch', 'loading' );
mw.page.watch.updateWatchLink( $( '#ca-watch a.loading' ), 'unwatch' );
(starts the spinning loading animation and tries to stop it
afterwards but may fail if something went wrong, e.g. the user
clicked the star).

The action parameter needs to be checked because it is used to
build an ID and a message key. Bad values turn the page in an
unrecoverable state (the watch link gets an empty action=, the
label turns into something <undefined> and no script can recover
that broken state since the ID turned into whatever). While such a
check is not necesarry in most cases it is here, because the
function is exposed.

Change-Id: I6ee9a7ee6b7c0fc7a5444674afd1ed6f8cacc858

10 years agoMerge "Allow setting default thumb size in parser tests"
jenkins-bot [Thu, 20 Mar 2014 17:58:56 +0000 (17:58 +0000)]
Merge "Allow setting default thumb size in parser tests"

10 years agoAllow setting default thumb size in parser tests
C. Scott Ananian [Wed, 19 Mar 2014 18:51:21 +0000 (14:51 -0400)]
Allow setting default thumb size in parser tests

The mediawiki default thumb size is 180px.  The Parsoid default thumb
size is 220px, to match the default thumb size for most WMF wikipedias
(see https://bugzilla.wikimedia.org/show_bug.cgi?id=43336).

This discrepancy leads to inconsistent image-related test output.
Allow a test to set an explicit default thumb size with the
'thumbsize' option so that it is possible to write consistent tests.

Change-Id: Ib764d1f1660a50caaf8f0ff245822d1d1a1d264e

10 years agoMerge "Update the documentation at the top of parserTests.txt"
jenkins-bot [Thu, 20 Mar 2014 17:39:59 +0000 (17:39 +0000)]
Merge "Update the documentation at the top of parserTests.txt"

10 years agoMerge "Fix wording of protect-cascadeon"
jenkins-bot [Thu, 20 Mar 2014 17:19:06 +0000 (17:19 +0000)]
Merge "Fix wording of protect-cascadeon"

10 years agoChange URLs to mediawiki.org in comments to HTTPS
Ladsgroup [Thu, 20 Mar 2014 15:45:01 +0000 (15:45 +0000)]
Change URLs to mediawiki.org in comments to HTTPS

These are only documentation fixes
http://www.mediawiki.org --> https://www.mediawiki.org

Change-Id: I62ad42be1a3aac410cc53e98ce79389ceddd8988

10 years agoFix wording of protect-cascadeon
Jackmcbarn [Thu, 20 Mar 2014 16:30:26 +0000 (12:30 -0400)]
Fix wording of protect-cascadeon

In some cases, users who are not capable of changing the protection level
will see the protect-cascadeon message. Update it to not imply that they
are able to change the protection level.

Change-Id: I102aea94f4b5ad29fa928e865d2f20ec7def4b30

10 years agoUpdate the installer to use JSON i18n
Siebrand Mazeland [Wed, 19 Mar 2014 18:34:06 +0000 (19:34 +0100)]
Update the installer to use JSON i18n

Change-Id: Iedcacbd26385c331cd78b92f7ec55a4ef9c015ef

10 years agoMerge "mediawiki.inspect: add method for grepping loaded modules"
jenkins-bot [Thu, 20 Mar 2014 06:11:08 +0000 (06:11 +0000)]
Merge "mediawiki.inspect: add method for grepping loaded modules"

10 years agoResourceLoaderStartUpModule: Improve comment about modifiedTime hack
Timo Tijhof [Thu, 20 Mar 2014 04:32:30 +0000 (05:32 +0100)]
ResourceLoaderStartUpModule: Improve comment about modifiedTime hack

* Re-ordering code to bring the modifiedTime hack and the
  loop it serves closer together.
* Separating the fact that it needs a value and the mtime of
  startup.js since that is just one of the three factors we use.
  This way it's clearer that the startup.js mtime is not just a
  bogus value, but not more or less important than wgCacheEpoch
  and modules mtime either.
* Remove duplicate '/* Methods */' comment, we already have this
  marker a few methods higher up.

Change-Id: Id3a07f02566c0f04b612b81f8353f70fa4ab3977

10 years agoResourceLoaderStartUpModule: Remove no-op "delete isCompatible"
Timo Tijhof [Thu, 20 Mar 2014 04:15:25 +0000 (05:15 +0100)]
ResourceLoaderStartUpModule: Remove no-op "delete isCompatible"

Due to the way this function being defined as a function or var
declaration instead of a function expression assigned to a property
it can't be deleted.

JavaScript doesn't throw an error when deletion is not permitted
though, the operator returns false instead.

> delete isCompatible;
  false

We already removed 'delete startUp' from mediawiki.js in favour
of startUp = undefined; (r107402, r74325).

Change-Id: I7aa02e3f4deb3a4f00177b70978bfcb83c80988a

10 years agomediawiki.inspect: add method for grepping loaded modules
Ori Livneh [Tue, 26 Nov 2013 22:30:28 +0000 (14:30 -0800)]
mediawiki.inspect: add method for grepping loaded modules

Example usage:

>>> mw.inspect.grep(':hover .settings-text')
["ext.uls.init"]
>>> mw.inspect.grep('options.expire')
["jquery.cookie", "mediawiki.user"]

Use cases:
* You're debugging a layout bug and want to trace a CSS rule to the module
  which inserts it.
* A JavaScript error contains a distinct and plausibly unique substring (such
  as a variable name), and you want to identify the module that is causing the
  error.

You can re-load the page with debug=1, but you still need to decipher load.php
URLs for non-file modules, and you might not be able to reproduce the issue in
debug mode. Alternately, you can grep a full clone of the production branch
that the wiki is running (assuming you have one handy), but that won't help you
if the module is a gadget.

Change-Id: Ie5f0e7d1c7022f8d399e895f157db8acefc8abee

10 years agoUpdate OOjs UI to v0.1.0-pre (0f50cdc46c)
James D. Forrester [Thu, 20 Mar 2014 00:39:16 +0000 (17:39 -0700)]
Update OOjs UI to v0.1.0-pre (0f50cdc46c)

New changes:
6c014fd Revert "Use super to call parent methods"

Change-Id: Iccbb2a1b86af8dc10568855eecb7d31e67b86756

10 years agoMerge "Update OOjs UI to v0.1.0-pre (53f2410336)"
jenkins-bot [Wed, 19 Mar 2014 22:59:30 +0000 (22:59 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (53f2410336)"

10 years agoMerge "Preferences.php: avoid "Undefined index" if key 'realname' don't exist in...
jenkins-bot [Wed, 19 Mar 2014 22:53:31 +0000 (22:53 +0000)]
Merge "Preferences.php: avoid "Undefined index" if key 'realname' don't exist in $formdata"