Commit graph

58081 commits

Author SHA1 Message Date
physikerwelt
6a68fad159 Protect MathML from Tidy
MediaWiki installations that use the setting
$wgUseTidy = true; are unable to output
MathML since the well defined MathML elements
are filtered out by Tidy. This was reported as
  http://sourceforge.net/p/tidy/patches/84/ .

This change hides MathML blocks from
Tidy.

Bug: 66516
Change-Id: Ib48b91238c3eddd6a86b62f6ce57801d7058f0d8
2014-08-22 12:21:06 -04:00
jenkins-bot
d7d4f59724 Merge "Drop "left in" debugging var_dump from WikiImporter" 2014-08-22 16:06:46 +00:00
jenkins-bot
57fa49dc8e Merge "Make ApiModuleManagerTest::testAddModules un-risky" 2014-08-22 15:43:27 +00:00
Thiemo Mättig
bf4d36e29e Drop "left in" debugging var_dump from WikiImporter
I found this on accident when searching for a var_dump I forgot
somewhere in my own code. We are maintaining production code here,
right? Debugging and testing should be somewhere else.

Also note the stray print before the var_dump.

Change-Id: I98725b277039f55db9ff95399e9559a477b43c26
2014-08-22 16:11:30 +02:00
jenkins-bot
0bb1a287dc Merge "API: Add iwprop=url, deprecate iwurl for prop=iwlinks" 2014-08-22 05:53:47 +00:00
Kunal Mehta
6f7e29a773 Make ApiModuleManagerTest::testAddModules un-risky
Change-Id: Idbea51cf45fc95676759e5ac9abb342701e5b551
2014-08-21 22:47:24 -07:00
Bryan Davis
9cd7d691cb Check for existence of iw_local in Interwiki::getAllPrefixes
Interwiki::getAllPrefixes only sets the iw_local member in a response
row if $local is set to a non-null value. Under certain error
reporting conditions, the unqualified access to the array key leads to
warnings such as "message repeated 1471 times: [ #012Notice: Undefined
index: iw_trans in ...".

Change-Id: Ibf434dc9c362984cad76ae6bdb29de826974d81e
2014-08-21 20:24:25 -06:00
jenkins-bot
a52bb899c5 Merge "mediawiki.language: Expose language fallback chain" 2014-08-22 01:22:55 +00:00
Timo Tijhof
03c503da22 resourceloader: Only conditional-wrap script responses with only=scripts
Follows-up 9272bc6c47. The shouldIncludeScripts method returns
true for only=scripts, but also for other responses (except for
only=styles, naturally).

Regular load.php responses that load both scripts and styles don't
need the conditional wrap because those requests should only be
made from the mw.loader client which inherently means the
environment has been provided already.

It's merely unnecessary and shouldn't have caused any issues since
it simply evaluates to true always. It was already correctly being
excluded from raw modules that run before the environment is
provided (such as startup, jquery and mediawiki).

Change-Id: I375a7a8039f9b3ad4909e76005725f7d975d8a5e
2014-08-22 01:15:49 +00:00
Bartosz Dziewoński
2202bb1f6c mediawiki.language: Expose language fallback chain
The data can now be accessed via mw.language#getFallbackLanguages or
mw.language#getFallbackLanguageChain.

Bug: 69285
Change-Id: Id0c3267f01d5c4da0e4000a0fb318a9dfb538ef3
2014-08-22 03:14:04 +02:00
James D. Forrester
8149789274 Update OOjs UI to v0.1.0-pre (d6008381aa)
New changes:
7205b2a build: Check for files' existence before building using grunt-file-exists
d600838 Make window managers destroyable

Change-Id: I32e4f5bd41a5401b817cc6e37c6325df624a9e0e
2014-08-21 16:45:56 -07:00
Kunal Mehta
523ba0cf8b ResourcesTest: Add variable type annotations
Change-Id: I07ec986830dcec739b0553395b9a220b44bba77d
2014-08-22 00:32:09 +02:00
jenkins-bot
209e403368 Merge "Add more tests for SkinFactory" 2014-08-21 21:41:39 +00:00
Bartosz Dziewoński
fee27649df Delete skins/common/images/button_template.png
Unused in core, as well as extensions and skins.

I have removed the two usages on Wikimedia wikis (found by mwgrep)
which must have been the cause of the 97 requests for this file per
bug 69277 comment 11:

* https://de.wikipedia.org/wiki/MediaWiki:Gadget-Vorlagenmeister.css
* https://hu.wikipedia.org/wiki/MediaWiki:Gadget-sablonmester.css

Bug: 69277
Change-Id: I9d151e1fbc2da948b5265da731496d4178f51039
2014-08-21 22:45:56 +02:00
Aaron Schulz
915e1f07d3 Made showJobs.php show queues with just abandoned jobs too
Change-Id: I7fbf000c9b9edf433ac6723843a96fcaf937b5c7
2014-08-21 17:53:34 +00:00
jenkins-bot
0cec6cfcff Merge "Sync up with Parsoid parserTests." 2014-08-21 17:11:37 +00:00
Roan Kattouw
90a7642c76 Update OOjs UI to v0.1.0-pre (55b861b167)
New changes:
466a876 [BREAKING CHANGE] Make content isolation optional
23f26c3 [BREAKING CHANGE] Set active and pressed on the buttoned element, not the button
55b861b build: Switch from grunt-recess to grunt-contrib-less

Change-Id: Ie4454376df9492e3b77b6cc174ce7b38548cc56d
2014-08-21 09:59:20 -07:00
Subramanya Sastry
13a85541fc Sync up with Parsoid parserTests.
This now aligns with Parsoid commit 13c31fc815749a6239dd357672d39de0a51d51ce

Change-Id: I929e1c195801a9055ad2847994e050836262a896
2014-08-21 16:58:15 +00:00
jenkins-bot
3756b813f9 Merge "Set default setting for thumbsize to 300px (index 5) not 180px" 2014-08-21 16:54:20 +00:00
jenkins-bot
0c615d9029 Merge "Never cache pages with the fallback skin" 2014-08-21 15:44:43 +00:00
jenkins-bot
396927c0b6 Merge "Made LocalFile move/delete/restore handle network partitions better" 2014-08-21 15:38:10 +00:00
jenkins-bot
f00d9f5ec3 Merge "Title::getContentModel(): load from DB if necessary" 2014-08-21 15:31:20 +00:00
James D. Forrester
e8af98076f Update OOjs UI to v0.1.0-pre (944c47c5fe)
New changes:
36ae086 Use a pollNode for every transplanted stylesheet, not just external ones
a1771ed Support nested style transplantation
8c60d3c Create a combo box widget
944c47c Update oojs to v1.0.12

Change-Id: I800bb36b80d04e165e9fa9b00ed8a5223f2d954b
2014-08-20 17:23:57 -07:00
Kevin Israel
dd5c1b7fb7 Title::getContentModel(): load from DB if necessary
Also don't cast $model to int in LinkCache::addGoodLinkObj(); content
model IDs are non-numeric strings, not integers, so that field was
always populated with the value 0. Because 0 is a falsy value, this
caused subsequent calls to Title::getContentModel() to return the
default model rather than the correct one.

Also (hopefully) fixed every single query that could cause a
LinkCache entry to be added without the content model.

Bug: 69789
Change-Id: I94f06baf406afa538cd2b10139598442f9fc6759
2014-08-20 19:44:17 -04:00
James D. Forrester
d642580b00 Update OOjs to v1.0.12
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fcore.git/v1.0.12/History.md

Change-Id: I5542d1cf5aad4d4fd78a04f6bea7a27cbabf055a
2014-08-20 15:35:43 -07:00
James D. Forrester
c45b456725 Set default setting for thumbsize to 300px (index 5) not 180px
Bug: 67703
Change-Id: I172ccc0128747090a199695d3bce04388b3bef57
2014-08-20 22:23:12 +00:00
bsitu
70b012c595 Add support for adding deferred update within a deferred update
Under some configurations all Echo notifications are inserted
via a DeferredUpdate.  When an extension delays its own notification
trigger via DeferredUpdate as well the Echo notification will not
be run.

Change-Id: Ib40fcd4939ede5b0ff986ab109432630efd1be74
2014-08-20 22:13:11 +00:00
Florianschmidtwelzow
022a7b0bb2 Revert "Load mediawiki.action.view.redirectToFragment in mobile"
This reverts commit 21ec580f06.

Change-Id: I49788d6b56efdd2fed77ff7657e11554b9927076
2014-08-20 22:00:08 +00:00
jenkins-bot
4c78b107c3 Merge "Load mediawiki.action.view.redirectToFragment in mobile" 2014-08-20 21:38:32 +00:00
Translation updater bot
076a17c3d2 Merge "Localisation updates from https://translatewiki.net." 2014-08-20 20:45:00 +00:00
Translation updater bot
015e353c20 Localisation updates from https://translatewiki.net.
Change-Id: I01ae5ce97f4b82c10bc8184a5d5db0517ca6f7fe
2014-08-20 22:25:51 +02:00
Bartosz Dziewoński
c49bd9cb14 On redirects update the URL to that of the target page with JavaScript
Redirects to sections will now update the URL in browser's address bar
using the HTML5 History API. When [[Dog]] redirects to [[Animals#Dog]],
the user will now see "Animals#Dog" in their browser instead of "Dog#Dog".

The target URL is generated server-side to avoid pulling in dependencies
in the client-side RL module, which is loaded in the top queue.

Browsers that do not support the History API are still supported, the
way they always were.

Given the following three pages:
* A: #REDIRECT [[C]]
* B: #REDIRECT [[C#Section]]
* C: ==Section== \n ==Other section== \n

The following links should behave as follows:
* A                →  C
* B                →  C#Section
* A#Other_section  →  C#Other_section
* B#Other_section  →  C#Other_section

The code also supports forwarding query parameters like 'debug=1'.

Bug: 35045
Bug: 39328
Change-Id: I9d8d834762e19b836b7e35122b6c4cef0f91b7f0
2014-08-20 20:21:33 +00:00
jenkins-bot
417bd4e92a Merge "Fix @param of Language::dateTimeObjFormat" 2014-08-20 18:44:51 +00:00
jenkins-bot
a613b2c3e4 Merge "Split RevisionDeleteAbstracts.php to separate files" 2014-08-20 18:40:43 +00:00
jenkins-bot
2855c8a94a Merge "API: Adjust feature usage log format" 2014-08-20 18:24:10 +00:00
umherirrender
4245d06271 Fix @param of Language::dateTimeObjFormat
Follow-Up: Ib26407bc55dff7969d8a3b1e2ae51751b202d8fb
Change-Id: I078ffe3ff385f4541d91b2fb8ef9564138f78393
2014-08-20 19:36:37 +02:00
umherirrender
fbba43358e Split RevisionDeleteAbstracts.php to separate files
Same as I244a66fe19c089df4bcabcf745536d99b2103bc4

Change-Id: I90cea070a8e24d82f0675f122c79326988351e08
2014-08-20 19:08:33 +02:00
Bartosz Dziewoński
cd22ba020e Consistently use 'Less' rather than 'LESS' in function names
PHP function names are case-insensitive, so this is a fully
backwards-compatible change.

Change-Id: Ide04ad542ac5c3a26b6064093ae272cf9aeef2d1
2014-08-20 18:48:10 +02:00
Bartosz Dziewoński
f05788bac6 EditPage: Remove unused classic toolbar accesskeys data
Clearly this is not going to ever be used. Half of these conflict with
something else anyway.

Change-Id: I21ada83eba4638b3eb820b62c0c1eb90951e6f9b
2014-08-20 18:42:33 +02:00
Brad Jorsch
4e198a96e4 API: Adjust feature usage log format
On the advice of the Research Analyst, quote all data fields and add
slashes to escape quotes.

Change-Id: I3471475c0ae7a11398a774b1a14d023676259c04
Follows-up: Ifd640883e46f3e6c8179c63d122c704b046674ca
2014-08-20 11:17:35 -04:00
Brad Jorsch
bac75af45d API: Add iwprop=url, deprecate iwurl for prop=iwlinks
Someone objected to the possibility of removing the deprecated llurl
because prop=iwlinks still had an iwurl parameter, and they wanted
parallelism. So let's deprecate iwurl too.

Change-Id: I675c36868d6ce531a9de632203ca7b9742d63be1
2014-08-20 09:40:01 -04:00
Kunal Mehta
d9d0289b6c Add more tests for SkinFactory
Change-Id: I0a8f93abe597d6b2393f1c813e7bf76093f3ec89
2014-08-20 00:26:50 -07:00
jenkins-bot
377a12e5da Merge "API: Add a "submodule" param type" 2014-08-20 07:15:31 +00:00
jenkins-bot
590b4d7e9d Merge "User adjust git timestamp for extensions on Special:Version" 2014-08-20 06:59:13 +00:00
jenkins-bot
24499fca78 Merge "Remove wrong type from @param on ContentHandler::merge3" 2014-08-20 06:57:42 +00:00
jenkins-bot
c8aa42bbfb Merge "Fix doc of PPFrame_Hash::cachedExpand" 2014-08-20 06:55:21 +00:00
jenkins-bot
ff707ac703 Merge "Remove WikiPage::estimateRevisionCount (deprecated since 1.19)" 2014-08-20 06:51:49 +00:00
jenkins-bot
c232437904 Merge "Remove Xml::namespaceSelector() (deprecated since 1.19)" 2014-08-20 06:41:55 +00:00
jenkins-bot
60ae7c8d3d Merge "Add missing @param to function docs" 2014-08-20 06:40:11 +00:00
umherirrender
7f9508764c Remove WikiPage::estimateRevisionCount (deprecated since 1.19)
Change-Id: Icc44f67dd6479553b44f5566d1158638e4a09e60
2014-08-19 23:39:33 -07:00