Commit graph

56863 commits

Author SHA1 Message Date
Chad Horohoe
f129b1baf9 Limit test leakage, $wgCapitalLinks expected to be true
Change-Id: I0f837d29595abefaebeb67d6cc62ea48838d626a
2014-07-07 16:54:35 -07:00
jenkins-bot
4121cb96eb Merge "Profiling: Fix StartProfiler.sample, link in docs/scripts.txt" 2014-07-07 23:22:31 +00:00
Matthew Flaschen
a838e96837 Profiling: Fix StartProfiler.sample, link in docs/scripts.txt
Note two options in StartProfiler.sample, since only one of them
supports the toolbar

Change-Id: Ie8bd7febf749de8a5d32cbe87ba7733ee135bdc9
2014-07-07 19:05:31 -04:00
jenkins-bot
a574a40dc5 Merge "Work around hhvm bug in redis job queue" 2014-07-07 22:18:39 +00:00
Nik Everett
95bfc8b956 Work around hhvm bug in redis job queue
The hhvm redis client returns false instead of null.  This caused
JobQueueRedis to get stuck in an infinite loop.  This works around the
difference by catching null as a signal for no more jobs.

It can be reverted when https://github.com/facebook/hhvm/pull/3127/ is
in all versions of hhvm we expect to run MediaWiki.

Bug: 67622
Change-Id: I9bbad42f36a80635097b8e0140b48b6492b2f0f5
2014-07-07 18:12:12 -04:00
Matthew Flaschen
7185c030b8 mw.loader: Remove "job.error" from message for job.ready throwing
This catch block is both for exceptions thrown by 'job.ready' and
by 'job.error'.

Change-Id: Ia3aadb26824982a652663a7ebc3ba11824dd76d3
2014-07-07 21:34:59 +00:00
jenkins-bot
1d99f0e1bf Merge "Include redirect/section information in file search results" 2014-07-07 21:05:20 +00:00
Translation updater bot
5607ab0c8b Localisation updates from https://translatewiki.net.
Change-Id: I93169218dc830f99af18036bc81382d5e760dd11
2014-07-07 20:08:38 +00:00
Chad Horohoe
9ec0eb69f2 Include redirect/section information in file search results
Change-Id: I51c5ae99ab70a610a64f510b8cc522f0d9025efa
2014-07-07 13:00:45 -07:00
Jackmcbarn
0d847cb55d Unstub the passed object when calling unstub()
Previously, only the global was unstubbed when StubObject::unstub() was
called. Now, the object given as a parameter will also be unstubbed.
(What about other references to the object, though?)

Change-Id: I431ddd61e24686fc2f014c30064808ce57fe1706
2014-07-07 15:37:45 -04:00
jenkins-bot
65207f2ba4 Merge "Correct deprecation warning for $.quoteString" 2014-07-07 16:30:24 +00:00
jenkins-bot
0714c23202 Merge "Add tests for OutputPage::makeResourceLoaderLink()" 2014-07-07 16:14:24 +00:00
Kevin Israel
37c77f742a Correct deprecation warning for $.quoteString
Follows-up cde0829227.

Change-Id: Ibce5d470ad96fcef8460f4759bc2bd0ccccd74ce
2014-07-07 11:54:28 -04:00
Translation updater bot
65a2e7a335 Localisation updates from https://translatewiki.net.
Change-Id: Iafe051ad30f15eaa0379bd8d8c8a7aa2f428e864
2014-07-06 19:44:37 +00:00
Alexandre Emsenhuber
f90b19bf03 Allow "size" attribute to HTMLSelectField
Pass this one to XmlSelect is provided.

Change-Id: I7ac345e1c219c8607895f9fc0fc2cef68c900ff8
2014-07-06 20:51:17 +02:00
jenkins-bot
9713929d36 Merge "Fix RepoGroup::hasForeignRepos() and RepoGroup::forEachForeignRepo()" 2014-07-06 18:35:25 +00:00
jenkins-bot
2b98ff1297 Merge "Do not include file redirects in Special:Wantedfiles" 2014-07-06 18:32:39 +00:00
Aaron Schulz
be6d82201e Added job-undelay stat calls to the Redis queue class
Change-Id: I28f979ff6b95e09af832f8daaa6bd7bb15c2cb6b
2014-07-06 18:21:00 +00:00
Alexandre Emsenhuber
3185f1271f Remove tabindex from the drop-down in Special:RevisionDelete
It is the only element in the form which has this attribute set,
so the tab order was not correct.

Bug: 67271
Change-Id: Ifa8fb91f9bf7a60e727ec7376d2bc3a851007634
2014-07-06 10:06:26 +00:00
umherirrender
bb9cf3a490 Change mixed @param doc for PatrolLog::record
Change-Id: I5323144faa48eb7da8db15a5aa143e103029961f
2014-07-06 06:06:07 +00:00
Kevin Israel
9da9183d58 Only list Special:CreateAccount as restricted if configured so
Bug: 67549
Change-Id: I433d825d99878f385c607346bed92b01a79d9a21
2014-07-05 16:42:55 -04:00
Translation updater bot
7b0a19a54d Localisation updates from https://translatewiki.net.
Change-Id: I8eb2ba8d20eaf824efeb165acb8a1290bb5c3bf8
2014-07-05 19:45:39 +00:00
Rohan
54a48ef1b2 Disables upload by url option for users without the necessary permissions
Does an explicit check for a true value in SpecialUpload::getSourceSection

Bug: 39507
Change-Id: I00297494230d07081dd85a810321446badc3ecb0
2014-07-05 18:20:27 +00:00
Kunal Mehta
1e301b1550 Add tests for OutputPage::makeResourceLoaderLink()
Change-Id: I22dc7fd1003f07ab0be61bb4645b45a9db9f2548
2014-07-05 04:25:58 -07:00
jenkins-bot
c4580533f5 Merge "API: Refactor continuation code and add to purge, watch, etc." 2014-07-04 23:06:14 +00:00
Translation updater bot
a3c8d3d9fb Merge "Localisation updates from https://translatewiki.net." 2014-07-04 21:39:44 +00:00
Translation updater bot
8f88e730e2 Localisation updates from https://translatewiki.net.
Change-Id: Iadb3673f398ec110d1393cec733d1d5b786e6e86
2014-07-04 21:20:09 +00:00
jenkins-bot
d0197275b9 Merge "@singe -> @since in doc" 2014-07-04 21:11:41 +00:00
umherirrender
779eb6c16e @singe -> @since in doc
Change-Id: I25fcd1930bd719af2c46c3540f4a48ab44d47ded
2014-07-04 22:53:47 +02:00
umherirrender
0c1b1f8cfb Remove @private/@public/@void where visibility already set
When private is set php side on the function, no need to have it in the
param docs.

Change-Id: Ieaeac99c131b7360b1f324244d8be6f9ff854dd2
2014-07-04 22:41:05 +02:00
jenkins-bot
7edab4aa73 Merge "Force array parameters in SiteConfiguration" 2014-07-04 19:49:44 +00:00
jenkins-bot
73ff06ee3b Merge "Don't use isset() to check for null" 2014-07-04 19:49:42 +00:00
jenkins-bot
13046a832e Merge "Don't use isset() to check for null" 2014-07-04 19:49:13 +00:00
Brad Jorsch
1e7ea938da API: Refactor continuation code and add to purge, watch, etc.
While generator support was added to various actions, the continuation
parameters from the generators weren't being returned to the client.

This patch refactors the code for handling continuation out of ApiQuery
and into ApiResult, and then uses it in the other actions that need it.

Bug: 60734
Change-Id: I1a6e51cdc964ddcdd69aaa2f735223371233e8af
2014-07-04 15:48:35 -04:00
Alexandre Emsenhuber
a7de863d3a Don't use isset to check for null
Change isset() checks for variables that are always defined.

Change-Id: Ic96b9661d94742909c0d6b62a8eb2f6a038a774f
2014-07-04 21:20:22 +02:00
Amir E. Aharoni
fab8c6f541 Add grammar forms for Russian
This adds support for the Russian name of Wikimedia Commons.

Change-Id: If531e9ff8f46ac5294b117eec43172b4975e2ad6
2014-07-04 12:35:59 +00:00
jenkins-bot
1765227b43 Merge "Add a file icon for xcf file type" 2014-07-04 10:58:39 +00:00
Brian Wolff
8eae095d3f Add a file icon for xcf file type
This icon comes from the crystal icon set (like all the other
icons here). They are licensed LGPL. See the COPYING file
in the skins/common/images/icons directory.

It was downloaded from
https://upload.wikimedia.org/wikipedia/commons/4/4f/Xcf.png

This goes along with change I127bcb5458, which caused the icon
to be shown for indexed xcf files.

Change-Id: I72aa00c4e605ff67f62f855c1475a07433fd4567
2014-07-04 10:53:48 +00:00
Brian Wolff
a91be79a6a Merge "Add unit tests for ffmpeg2theora ogg recognition bug" 2014-07-04 07:59:11 +00:00
Brian Wolff
09ae6e2885 Add unit tests for ffmpeg2theora ogg recognition bug
Change-Id: I2e6944ccff3882b9f9ee1ac5ab6f5fea1de9d353
Follow-up: 629169ce9b
2014-07-04 04:53:22 -03:00
jenkins-bot
e05a4d8483 Merge "Do thumb attempt-failures limitting via sha1 instead of name." 2014-07-04 07:47:57 +00:00
jenkins-bot
1ffef1a18b Merge "Don't try to render indexed xcf images with image magick." 2014-07-04 07:45:14 +00:00
jenkins-bot
79d908ef74 Merge "Fix mime detection of easily-confused-with text/plain formats" 2014-07-04 07:43:42 +00:00
jenkins-bot
7155d17757 Merge "Detect chemical table files: Add them to MIME listings" 2014-07-04 07:19:30 +00:00
rillke
c8a130dfd1 Detect chemical table files: Add them to MIME listings
Adding mol, sdf, rxn, rd and rg file types to mime.types and mime.info
map to make them known to MediaWiki by default.

PHP's own module fileinfo module is not capable detecting Chemical
table files. Instead, they are reported as text/plain.

MediaHandlers can be attached by MIME type only. That's why these
changes are required for [[Extension:MolHandler]] to work.

Change-Id: I017507e4a950b3ce4e6576d12217cd42a337bad6
2014-07-04 07:14:57 +00:00
umherirrender
2df720d88b Remove deprecated class FormatExif
Deprecated and warnings since 1.18

Change-Id: I2461383bb2d3c5fc00ffb5f45bc8e931ed9acb58
2014-07-04 07:12:59 +00:00
Brian Wolff
69905ce9c7 Fix mime detection of easily-confused-with text/plain formats
json, csv, and tsv are often detected as text/plain. However that's
not right. This patch causes MediaWiki to look at the file extension
of files detected as text/plain, and if the file extension is
for a "textual" type, use the mime type associated with that extension.

This change also changes the "does mime type match uploaded file
extension" check to use the mime based on the file contents
plus extension, as opposed to just the file contents. Various
documentation suggests this is more appropriate (e.g. line 807
of MimeMagic.php). In my opinion we should use just the file
contents when verifying file is not on blacklist, but use ext
when verifying file type matches extension, and for decided
what handler specific checks to run. Not the detect mime type
with extension doesn't override the detected mime type with
the extension, but only uses the extension if content based
detection is ambigious or not specific enough.

This patch should be reviewed by csteipp before merge for
any potential security implications.

Note: This is partially fixing a regression from 3846d10487,
where previously csv and json files were allowed to be uploaded,
and that change prevented them

Bug: 66036
Bug: 45424
Change-Id: Ib637fe6850a81b26f84dc8c00ab4772f3d3a1f34
2014-07-04 04:03:31 -03:00
Brian Wolff
22b5a763c9 Don't try to render indexed xcf images with image magick.
Image magick doesn't support them.

See some discussion at bug 35622 comment 9

Change-Id: I127bcb5458a4c06f043a4f5d0ae6d70bd7809e64
2014-07-03 23:07:38 -03:00
Chad Horohoe
d09ab9001f Don't link to PHP @ php.net when running HHVM
Change-Id: Ifdec12e093fdd29d76ccb4b9e3ec58a6bceb47ed
2014-07-03 18:03:41 -07:00
jenkins-bot
e585a2218c Merge "Fixed broken exception code" 2014-07-03 23:59:11 +00:00