Commit graph

63467 commits

Author SHA1 Message Date
jenkins-bot
f8ab4e5ffe Merge ""spellcheck" attribute for HTMLForm "text" and "textarea"" 2015-06-25 10:17:54 +00:00
jenkins-bot
3298f92a8b Merge "Add a preposition for clarity" 2015-06-25 08:08:36 +00:00
jenkins-bot
469f921fef Merge "Also support skin.json for updating JSON AutoloadClasses" 2015-06-25 07:18:14 +00:00
jenkins-bot
d8befd12f2 Merge "Wrap lines in <pre> and .mw-code by default" 2015-06-25 07:00:09 +00:00
jenkins-bot
77111ce4f2 Merge "Remove the strong formatting for 'revdelete-suppress'" 2015-06-25 06:26:29 +00:00
Matthew Flaschen
2cb0f735e2 Also support skin.json for updating JSON AutoloadClasses
Bug: T88194
Change-Id: Ib56680e6e0e983184e31c336dcac174922a86551
2015-06-25 01:05:16 -04:00
Timo Tijhof
054b1c9e3c Wrap lines in <pre> and .mw-code by default
No longer create inline scrollbars and/or page-level scrollbarts
with the content escaping the skin container.

This used to be an option in SyntaxHighlighter Geshi (using enclose="div")
but it makes more sense to do by default.

Also move the 'direction' and 'unicode-bidi' rules that currently
live in SyntaxHighlighter extension. Make them the default instead.

Pre-wrap is supported by IE 8+, Firefox 3.5+, Chrome 1+, Opera 8+,
and Safari 3+.

Bug: T103780
Change-Id: Icd8b9bd56d6abc7b64c93e89541cf32c55cf7686
2015-06-25 05:51:33 +01:00
Timo Tijhof
0883ae5f33 mediawiki.util: Remove use of deprecated $.isDomElement in test suite
Follows-up 3fa4519, b0ee0c0.

Fixes the warning that was output in all Jenkins builds:
> WARN: 'Use of "isDomElement" is deprecated.'

Change-Id: Ic4a1a22ff5b58d9e6181b4c8f9aaa07d83c27b5e
2015-06-25 02:16:39 +01:00
Ed Sanders
26edd30cc6 [BREAKING CHANGE] Merge in VE's link input functionality to title widget
Major changes:
* Supports page images and descriptions
* Uses prefix search

Change-Id: Ib463e60cad9651eb338701279f370711ade6030b
2015-06-24 16:22:32 -07:00
Amir E. Aharoni
0774ee393e Add a preposition for clarity
Change-Id: I6a3e6b8e9d601d20f3e4c5907bca36d89f46834a
2015-06-25 00:16:38 +03:00
jenkins-bot
e678654487 Merge "$wgUseGzip had no effect" 2015-06-24 21:00:16 +00:00
jenkins-bot
8f27a3208e Merge "resourceloader: Pass $context to getDependencies() in PHPUnit tests" 2015-06-24 20:38:16 +00:00
Andrew Green
1dd6cfdf50 resourceloader: Pass $context to getDependencies() in PHPUnit tests
Send the ResourceLoaderContext param in calls to getDependencies() in
PHPUnit tests for ResourceLoader. (This so an RL module in CentralNotice
can emit a warning when that parameter is not provided, and still pass
tests. Sending the parameter here will also be necessary when the parameter
is made non-optional in the future.)

Change-Id: I6033e03e2d8a46b4bd7f7a04ae13fd9f387ebd10
2015-06-24 20:28:07 +00:00
jenkins-bot
799ca9856b Merge "Made ReplicatedBagOStuff wrapping the SQL class the default stash" 2015-06-24 20:09:53 +00:00
Translation updater bot
f3aa9bc0a7 Localisation updates from https://translatewiki.net.
Change-Id: I8e6299831393b366e9073856650fda2f72520826
2015-06-24 21:39:54 +02:00
Aaron Schulz
4825b4c08e Made ReplicatedBagOStuff wrapping the SQL class the default stash
* To make this work, a slaveOnly flag was added to SqlBagOStuff
  and it no longer prunes expired items on get(), it just treats
  them as missing. The use of garbageCollect() for the writeFactory
  cache and the use of replace() on updates already makes this
  a non-issue.
* This also makes the default $wgMainStash non-bogus.

Bug: T88493
Change-Id: I9d1f31305e08430de29a3cd521cdb10a82dffd10
2015-06-24 19:37:03 +00:00
Timo Tijhof
0d98e9f2fb objectcache: Add tests for ReplicatedBagOStuff
Fixed PHP runtime warnings:
> Declaration of ReplicatedBagOStuff::getMulti() should be compatible with BagOStuff.
> Declaration of ReplicatedBagOStuff::decr() should be compatible with BagOStuff.

Change-Id: Icf1a0bf2c30408c4a5bef2de0b69ae2162b234d5
2015-06-24 20:17:18 +01:00
jenkins-bot
f35414fc7f Merge "Revert r47388 / 8d9243cf3: Use Title::getLocalURL() for rel=canonical links" 2015-06-24 16:05:11 +00:00
jenkins-bot
d24b74ce2d Merge "Add language Doteli (dty)" 2015-06-24 13:03:58 +00:00
Ori Livneh
6c3b7aa75f Revert r47388 / 8d9243cf3: Use Title::getLocalURL() for rel=canonical links
Using relative links for <link rel=canonical> is a missed chance to signal the
preferred hostname and protocol for accessing our sites, which invites Google
(and other search engines) to guess, or to treat the request URL's hostname as
canonical. Compared to that, the number of bytes saved by using a relative link
is insubstantial.

Change-Id: I483b4425c1c14211e67bbb6e7ae077b7faa4ee25
2015-06-23 22:17:01 -07:00
Kunal Mehta
e4c41d5126 Document that ParserCache::get() may be passed a WikiPage or Article
This is terrible, but at least it is no longer lying.

Change-Id: Id1cc1616b60dbde45a12ce9a23b76282efd1c6a9
2015-06-24 01:21:10 +00:00
Sam Smith
16cea35d85 Configure logged in session length independently
* Add the $wgExtendedLoginCookies configuration variable, which defines
  the set of login cookies that can have their lifetime configured
  independently
* Add the $wgExtendedLoginCookieExpiration configuration variable, which
  dictates when the extended lifetime login cookies expire
* Default $wgExtendedLoginCookieExpiration to null so that the current
  behaviour is unaffected

Bug: T68699
Change-Id: I0cc24524e4d7d9d1d21c9fa8a28c7c76b677b96c
2015-06-23 19:31:20 -04:00
James D. Forrester
5ec77cb29b Update OOjs UI to v0.11.6
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.11.6/History.md

Change-Id: Iec7f1cf857f2ca76a5287306780f1e7e47b49987
2015-06-23 15:04:51 -07:00
Translation updater bot
f31b5d3489 Localisation updates from https://translatewiki.net.
Change-Id: I0f85bdd122e4ce9f3e7b809b35aefc6aa2aacca3
2015-06-23 20:54:09 +02:00
jenkins-bot
ba9f387ecd Merge "API: Change default continuation format for action=query" 2015-06-23 18:40:09 +00:00
Ori Livneh
207dfd2adf Add RejectParserCacheValue hook
Add a new hook, 'RejectParserCacheValue', which allows extensions to reject an
otherwise-successful parser cache lookup. The intent is to allow extensions to
manage the eviction of archaic HTML output from the cache.

Change-Id: I660679a48c46608f859bd52b31d6a888aabcc9ac
2015-06-23 11:23:57 -07:00
jenkins-bot
87e78ac110 Merge "Set Southern Kurdish to use Kurdish ordered list style type" 2015-06-23 11:35:48 +00:00
jenkins-bot
dae916558f Merge "EditPage: Check $wgContentHandlerUseDB" 2015-06-23 11:14:17 +00:00
jenkins-bot
33a995c696 Merge "Hygiene: Use [i] instead of charAt(i) for string index access" 2015-06-23 10:55:51 +00:00
jenkins-bot
8b04c0f0ae Merge "Added pre-emptive session renewal to avoid "random" submission errors" 2015-06-23 10:51:21 +00:00
jenkins-bot
0290b14a9c Merge "MediaWiki.php: Factor out tryNormaliseRedirect" 2015-06-23 09:14:04 +00:00
jenkins-bot
a72247699b Merge "Implement wfGlobalCacheKey() for database-agnostic keys" 2015-06-23 07:15:05 +00:00
Timo Tijhof
0f64b61271 Implement wfGlobalCacheKey() for database-agnostic keys
Some code paths abuse wfForeignMemcKey() for this purpose. This is semantically
incorrect and seems fragile. Also the empty second argument (for db-prefix) is
either misused or akwardly set to the empty string.

It also creates a namespace conflict between arbitrary application keys (from
the software) and any database names (from users). This commit reduces the
conflict surface down to a single key (namely, "global").

Also added unit tests to assert the implicit restrictions and
assumptions between these cache key functions are valid.

Change-Id: Ia0953b51005fe3de3b881dd1bd64c9d3c85e8c66
2015-06-23 07:52:18 +01:00
Timo Tijhof
64431fcf8e MediaWiki.php: Factor out tryNormaliseRedirect
This is in preparation for fixing T67402, which requires adding
logic inside this condition block. However the to-be-added code
will influences whether or not a redirect should be made.

In case a redirect is not made, it has to fall through to the next
'elseif' handler in MediaWiki::performRequest(), which is not possible
from inside the 'if' block.

Hence, move it out in a separate block and use a boolean return value
to communicate whether the case has been handled.

This also allows us to unit test this thing. Which is desperately
needed. Albeit ugly as it requires lots of mocking.

Change-Id: If3157f2ff1fd3ab2ca20a5d1f550d864ea62c493
2015-06-23 07:18:35 +01:00
jenkins-bot
25636af162 Merge "Rename WikiPage::isParserCacheUsed to WikiPage::shouldCheckParserCache" 2015-06-23 04:14:15 +00:00
jenkins-bot
ed42627460 Merge "Suppress deprecation warnings in 'jquery.mwExtension.test'" 2015-06-23 04:00:45 +00:00
Ori Livneh
b0a79e9245 Rename WikiPage::isParserCacheUsed to WikiPage::shouldCheckParserCache
'isParserCachedUsed' implies that the parser cache usage has already occurred,
and obscures the true purpose of this method, which is to determine whether or
not the requested page *should* be looked up in the parser cache.

Only usage in extensions is in TextExtracts, which I changed to be both
backward- and forward-compatible in If5d5da8eab13.

Change-Id: I7de67937f0e57b1dffb466319192e4d400b867de
2015-06-22 20:55:34 -07:00
Timo Tijhof
3fa451966b Suppress deprecation warnings in 'jquery.mwExtension.test'
Follows-up b0ee0c0.

Change-Id: I1e38ec9b7e822c177e038b2c83827a3910fe75ad
2015-06-23 03:52:08 +00:00
Ori Livneh
428c931271 Declare .icc files to be binary in .gitattributes
Follows I2ae35ddad: TinyRGB support for JPG thumbnails.

Change-Id: Ib8e7a74a6bc7b6cfbc674c8e271faa35b1f1a3c7
2015-06-22 20:49:25 -07:00
Ori Livneh
c099155a17 ellapsed => elapsed
Also fix some files that don't end with a newline.

Change-Id: Id0672d685b929a5832b42f733dad49683536180a
2015-06-23 03:32:33 +00:00
Ori Livneh
0586f3a44a WikiPage::isParserCacheUsed: change 'oldid' to 'oldId'
Change-Id: Ic68206a1f276c9e5a5b09ed5e2b0422589dfa161
2015-06-23 03:29:08 +00:00
Timo Tijhof
0b89dadc58 Hygiene: Use [i] instead of charAt(i) for string index access
Was mostly this way for IE6 compatibility which is no longer
relevant for our JavaScript runtime.

Change-Id: I7c441c7b40f40bb2974c4da5ea9f7a87119e7462
2015-06-23 00:34:24 +01:00
Ori Livneh
2f89482acb Fix undeclared dependency on jquery.mwExtension
Since jquery.mwExtension is deprecated, fix the undeclared dependency by making
the module not depend on $.ucFirst rather than by declaring the dependency.

Change-Id: I32b57662464e7dde0f61d6875196764fb61dcfba
2015-06-22 15:12:35 -07:00
jenkins-bot
f8ebb995b0 Merge "Make proxy behaviour of detectServer() configurable" 2015-06-22 22:00:06 +00:00
Gilles Dubuc
b276829806 Make proxy behaviour of detectServer() configurable
Bug: T75510
Change-Id: Ia6540962f8d913d925547189e101124f76d969c7
2015-06-22 21:19:22 +02:00
jenkins-bot
f6d42e3e4f Merge "Restore namespace-number keys in APIQuerySiteinfo siprop=namespaces" 2015-06-22 19:08:25 +00:00
jenkins-bot
2423f74d6e Merge "Use Linker::linkKnown for some links to MediaWiki pages from navigation" 2015-06-22 19:05:05 +00:00
jenkins-bot
6a35b1f500 Merge "Fix comment for grep in SpecialWantedfiles.php" 2015-06-22 19:05:01 +00:00
jenkins-bot
195f7096c7 Merge "Avoid undefined index on Special:Tags" 2015-06-22 19:04:55 +00:00
jenkins-bot
d68a94c735 Merge "Add LinkBatch to ImagePage for user pages in the file history" 2015-06-22 19:04:48 +00:00