lhc/web/wiklou.git
10 years agoMerge "Remove methods in Block deprecated in 1.18"
jenkins-bot [Fri, 17 Jan 2014 20:40:06 +0000 (20:40 +0000)]
Merge "Remove methods in Block deprecated in 1.18"

10 years agoMerge "Remove methods in Article deprecated in 1.18"
jenkins-bot [Fri, 17 Jan 2014 19:42:37 +0000 (19:42 +0000)]
Merge "Remove methods in Article deprecated in 1.18"

10 years agoMerge "Allow SearchResults to specify that they matched file content"
jenkins-bot [Fri, 17 Jan 2014 19:33:24 +0000 (19:33 +0000)]
Merge "Allow SearchResults to specify that they matched file content"

10 years agoExtend FileRepo::findFile private option to accept a User object
Brad Jorsch [Fri, 17 Jan 2014 16:42:45 +0000 (11:42 -0500)]
Extend FileRepo::findFile private option to accept a User object

Callers may want to test visibility for a user other than $wgUser when
specifying the 'private' option. It seems a natural extension to allow
'private' to be a User object, with boolean true retaining its old
meaning of $wgUser.

Change-Id: Idbed0f3055c0135b5c11068de1bf1ef668e13456

10 years agoFix LocalRepo::findFiles and 'time' option
Brad Jorsch [Fri, 17 Jan 2014 16:42:01 +0000 (11:42 -0500)]
Fix LocalRepo::findFiles and 'time' option

It's looking in the wrong place for the 'time' option so it never
actually queries for the old revisions.

Change-Id: Ifcb626fb27f8b602ff37cf33d4c66c4fc2fd3d56

10 years agoAllow SearchResults to specify that they matched file content
Chad Horohoe [Fri, 3 Jan 2014 19:00:22 +0000 (11:00 -0800)]
Allow SearchResults to specify that they matched file content

Change-Id: I214406250d10b971dcca025da508272d9805567b

10 years agoMerge "Remove deprecated Article::forUpdate()"
jenkins-bot [Fri, 17 Jan 2014 12:46:01 +0000 (12:46 +0000)]
Merge "Remove deprecated Article::forUpdate()"

10 years agoMerge "assertValidHtml for checking html in test cases."
jenkins-bot [Fri, 17 Jan 2014 11:55:50 +0000 (11:55 +0000)]
Merge "assertValidHtml for checking html in test cases."

10 years agoassertValidHtml for checking html in test cases.
daniel [Tue, 3 Dec 2013 17:42:48 +0000 (18:42 +0100)]
assertValidHtml for checking html in test cases.

implemented using tidy.

Change-Id: Idb98af785ca07ecd7afeebadf7396ecdc03a91bc

10 years agoPut ActiveUsers behind the miser mode flag
Aaron Schulz [Fri, 17 Jan 2014 00:07:09 +0000 (16:07 -0800)]
Put ActiveUsers behind the miser mode flag

This is the second most problematic query showing up in dberror.log (timeouts).
Something like this needs denormalization for larger wikis.

Change-Id: If786dea8a6195d11c812d46a583d272c7aa70fe7

10 years agoWorkaround ip2long limitation
Aaron Schulz [Wed, 15 Jan 2014 03:58:03 +0000 (19:58 -0800)]
Workaround ip2long limitation

* This was resulting in bogus queries that did ipblock table scans

bug: 60035
Change-Id: Id8f8846e002abcc0010c8706c664db86257786bf

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 16 Jan 2014 22:59:11 +0000 (22:59 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ibc3cffd4793d8201841e2ba0c92e6b3b7abe4412

10 years agoMerge "Avoid expensive backlink counts for info action in miser mode"
jenkins-bot [Thu, 16 Jan 2014 21:06:52 +0000 (21:06 +0000)]
Merge "Avoid expensive backlink counts for info action in miser mode"

10 years agoMerge "Removed ZhClient; unused by core and extensions"
jenkins-bot [Thu, 16 Jan 2014 20:42:55 +0000 (20:42 +0000)]
Merge "Removed ZhClient; unused by core and extensions"

10 years agoAvoid expensive backlink counts for info action in miser mode
Aaron Schulz [Thu, 16 Jan 2014 20:39:33 +0000 (12:39 -0800)]
Avoid expensive backlink counts for info action in miser mode

Change-Id: I13b64db1b23afd995cd0a2f5872fcedadd86c8ea

10 years agoRemoved ZhClient; unused by core and extensions
Aaron Schulz [Thu, 16 Jan 2014 20:25:41 +0000 (12:25 -0800)]
Removed ZhClient; unused by core and extensions

Change-Id: Ieda34368b8e1c4a09dc244f47f7e09d943849b1e

10 years agoMoved SpecialPageFactory to specialpage/
Aaron Schulz [Thu, 16 Jan 2014 20:11:45 +0000 (12:11 -0800)]
Moved SpecialPageFactory to specialpage/

Change-Id: Iaef958ea7831ec61e76002362672d5340e596348

10 years agoMerge "Remove DBABagOStuff"
jenkins-bot [Thu, 16 Jan 2014 19:51:47 +0000 (19:51 +0000)]
Merge "Remove DBABagOStuff"

10 years agoRemove DBABagOStuff
Chad Horohoe [Thu, 16 Jan 2014 19:32:33 +0000 (11:32 -0800)]
Remove DBABagOStuff

Isn't useful outside of testing as the comments state, but it's
barely even useful for that. People who are testing the cache
code can use CACHE_DB if CACHE_MEMCACHED is too hard.

Change-Id: Ief0aa148376957fdd844c8bb585a133b854a012c

10 years agoMerge "Ehcache more like mehcache"
jenkins-bot [Thu, 16 Jan 2014 19:43:11 +0000 (19:43 +0000)]
Merge "Ehcache more like mehcache"

10 years agoEhcache more like mehcache
Chad Horohoe [Thu, 16 Jan 2014 18:21:21 +0000 (10:21 -0800)]
Ehcache more like mehcache

mehcache isn't a caching system, it's a pun.

I'm removing Ehcache support because it's an experiment didn't pan out
and the code's just sitting here abandoned now.

Change-Id: Ief5728b4c61bb5ad8f5a5f0b55415b23ef6727eb

10 years agoMerge "Improve mediawiki.js documentation"
jenkins-bot [Thu, 16 Jan 2014 18:43:50 +0000 (18:43 +0000)]
Merge "Improve mediawiki.js documentation"

10 years agoImprove mediawiki.js documentation
Timo Tijhof [Wed, 15 Jan 2014 21:07:45 +0000 (22:07 +0100)]
Improve mediawiki.js documentation

Incorporate some of the edits made to the old documentation on
mediawiki.org at https://www.mediawiki.org/wiki/ResourceLoader/Default_modules

mw:
* Add note about the globals being added.

mw.Message:
* Add inline example.
* Revise documentation of related methods.

mw.loader:
* Add code samples for #addSource and #using.
* Document loadScript property for #addSource using @param syntax.
* Document "null" return value for #getVersion.

mw.html:
* Add code sample #escape.

mw.loader.store:
* Mark #update as method instead of the incorrectly inferred
  type "property" (the assignment is non-trivial, it can't
  infer the return type of the closure).

Change-Id: Id42a108066fac333a9253f2fa8908746b8a1ba8f

10 years agoSpecialWatchlist: Fix a fatal due to undefined variable
Bartosz Dziewoński [Thu, 16 Jan 2014 17:52:57 +0000 (18:52 +0100)]
SpecialWatchlist: Fix a fatal due to undefined variable

Followup to Iffc9ada3.

Change-Id: I6e7a43f2a78b9a94804151221ff4f2369d14d5db

10 years agoMerge "JSDuck-ify /resources/mediawiki/mediawiki.Uri.js"
jenkins-bot [Thu, 16 Jan 2014 16:55:43 +0000 (16:55 +0000)]
Merge "JSDuck-ify /resources/mediawiki/mediawiki.Uri.js"

10 years agoMerge "Don't always count CASCADINGSOURCES as expensive"
jenkins-bot [Thu, 16 Jan 2014 16:44:06 +0000 (16:44 +0000)]
Merge "Don't always count CASCADINGSOURCES as expensive"

10 years agoJSDuck-ify /resources/mediawiki/mediawiki.Uri.js
Bartosz Dziewoński [Wed, 15 Jan 2014 19:54:49 +0000 (20:54 +0100)]
JSDuck-ify /resources/mediawiki/mediawiki.Uri.js

* Cleaned up the whole-class documentation block.
* Marked some methods which looked internal as @private.
* Added or fixed some @return types.
* Documented instance properties.
* Fixed format of doc comments to conform to JSDuck standards,
  wrapped comments to 100 characters.
* Did some spelling and grammar fixes.
* Added entries to categories.json and config.json.

Also simplified and commented some code in #parse.

Change-Id: I0159282ef56e55f9d19f45d9e80e00c3c89eaa25

10 years agoMerge "JSDuck-ify /resources/mediawiki.language/*"
jenkins-bot [Thu, 16 Jan 2014 16:33:09 +0000 (16:33 +0000)]
Merge "JSDuck-ify /resources/mediawiki.language/*"

10 years agoAdd OOjs to jsduck index
Timo Tijhof [Fri, 10 Jan 2014 22:14:18 +0000 (23:14 +0100)]
Add OOjs to jsduck index

Change-Id: I7ced3673a0a09ea0f37b59729318f02e52fe1340

10 years agoJSDuck-ify /resources/mediawiki.language/*
Bartosz Dziewoński [Sun, 22 Dec 2013 00:38:19 +0000 (01:38 +0100)]
JSDuck-ify /resources/mediawiki.language/*

* Removed some pieces of "documentation" I couldn't make any sense of. :)
* Marked some methods which looked internal as @private.
* Empirically tested and added some @return value types.
* Fixed format of doc comments to conform to JSDuck standards.
* Added entries to categories.json and config.json.

Also fixed jqueryMsg tests which depended on implementation details
and overwriting singleton classes and thus started failing now.
I have no idea what these hacks were for since the tests pass after
just removing them.

Change-Id: Ie60f72a5f277d846c09226d5af3da16b07f038c3

10 years agoFixed use of X-Newest in Swift backend
Aaron Schulz [Thu, 16 Jan 2014 00:48:59 +0000 (16:48 -0800)]
Fixed use of X-Newest in Swift backend

Change-Id: I9c9572269cd5366272070ccba954c3bd417aa696

10 years agoMerge "Fixed wrong usage of $tmpFile in Swift backend"
jenkins-bot [Wed, 15 Jan 2014 21:22:20 +0000 (21:22 +0000)]
Merge "Fixed wrong usage of $tmpFile in Swift backend"

10 years agoDon't always count CASCADINGSOURCES as expensive
Jackmcbarn [Wed, 15 Jan 2014 21:13:13 +0000 (16:13 -0500)]
Don't always count CASCADINGSOURCES as expensive

When a page's cascading protection sources have already been loaded, don't
count CASCADINGSOURCES as expensive.

Change-Id: Ia9d25790c534414f637f85d6a3fc4f2c1c0de790

10 years agoFixed wrong usage of $tmpFile in Swift backend
Aaron Schulz [Wed, 15 Jan 2014 21:05:01 +0000 (13:05 -0800)]
Fixed wrong usage of $tmpFile in Swift backend

Change-Id: I21293be38c53b4dca3030c26a201f70d8ed243f3

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 15 Jan 2014 20:29:36 +0000 (20:29 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I3084c11bd01d68c14011da5c1167e9b7a14e8e9e

10 years agoMerge "Make PROTECTIONLEVEL count as expensive"
jenkins-bot [Wed, 15 Jan 2014 16:28:11 +0000 (16:28 +0000)]
Merge "Make PROTECTIONLEVEL count as expensive"

10 years agoRevert "SpecialContributions: Avoid using 'contributions' slave for getParentLengths"
Aaron Schulz [Tue, 14 Jan 2014 22:57:44 +0000 (22:57 +0000)]
Revert "SpecialContributions: Avoid using 'contributions' slave for getParentLengths"

Actually this won't work, as the LB will see an already open slave and just reuse the same connection.

This reverts commit fdf4b7cbd934f7f8d76de4564c4d4f83d60d8e4d.

Change-Id: I790f5b303fa264ecc36793b8650c79daae367e70

10 years agoMerge "Two fixups to SearchResult"
jenkins-bot [Wed, 15 Jan 2014 00:39:14 +0000 (00:39 +0000)]
Merge "Two fixups to SearchResult"

10 years agoAdd Reference to relevant bug in new MSIE 6 CSS sanitization tests
Gabriel Wicke [Tue, 7 Jan 2014 23:48:12 +0000 (15:48 -0800)]
Add Reference to relevant bug in new MSIE 6 CSS sanitization tests

Change-Id: Ie0bac33e9012d2d36242f31839a73cc848a40eba

10 years agoTwo fixups to SearchResult
Chad Horohoe [Wed, 15 Jan 2014 00:20:53 +0000 (16:20 -0800)]
Two fixups to SearchResult

- Make variables protected. Only class that uses these is LuceneResult
  and it's fine
- Don't bother constructing a new file object if we've already got
  one in memory (we likely do)

Change-Id: I7973aff1e96297a2fea70392b765c93a8c884d52

10 years agoAlways load 'mediawiki.special.changeslist' on appropriate pages
Bartosz Dziewoński [Sun, 24 Nov 2013 21:24:44 +0000 (22:24 +0100)]
Always load 'mediawiki.special.changeslist' on appropriate pages

It is also loaded by ChangesList (and subclasses), but the changes
list might not get a chance to ever execute that code if there are no
changes to show.

This fixes an issue where the legend would sometimes display unstyled
on Special:RecentChangesLinked.

Bug: 59959
Change-Id: Ia1741306303aa3d2641b47bf19efef540ec64779

10 years agoSpecialWatchlist: Split #execute into subfunctions like SpecialRecentChanges
Bartosz Dziewoński [Sun, 10 Nov 2013 18:56:34 +0000 (19:56 +0100)]
SpecialWatchlist: Split #execute into subfunctions like SpecialRecentChanges

Now we should think about how to make them actually use their
parent functions...

Change-Id: Iffc9ada30bf94c54d7bc8acc4cc2e66bbcf86eb8

10 years agoMerge "pageid parser function is expensive, make it so"
jenkins-bot [Tue, 14 Jan 2014 22:38:13 +0000 (22:38 +0000)]
Merge "pageid parser function is expensive, make it so"

10 years agoMerge "Fix to avoid IE "compatibility view""
jenkins-bot [Tue, 14 Jan 2014 21:21:47 +0000 (21:21 +0000)]
Merge "Fix to avoid IE "compatibility view""

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 14 Jan 2014 21:01:54 +0000 (21:01 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I658d54f42b8e6c71a2e347f9c409221e84506923

10 years agopageid parser function is expensive, make it so
Brad Jorsch [Tue, 14 Jan 2014 20:36:48 +0000 (15:36 -0500)]
pageid parser function is expensive, make it so

The pageid parser function (not to be confused with the pageid magic
word) hits the database for every title passed, which meets the criteria
for being considered an expensive parser function.

To mitigate this new expensiveness, check for special namespaces,
interwiki titles, and titles in LinkCache before hitting the DB.

Also, record potentially-valid titles in pagelinks so that the page can
be properly purged if the target is created/deleted.

Change-Id: I4fbfc265543f0a64c14dc8a44e1c89cd928a1adb

10 years agoMerge "SpecialContributions: Avoid using 'contributions' slave for getParentLengths"
jenkins-bot [Tue, 14 Jan 2014 20:14:32 +0000 (20:14 +0000)]
Merge "SpecialContributions: Avoid using 'contributions' slave for getParentLengths"

10 years agoDon't use complex datatypes as CAS tokens
Matthias Mullie [Tue, 14 Jan 2014 10:27:58 +0000 (11:27 +0100)]
Don't use complex datatypes as CAS tokens

For caches where CAS is not natively supported, we have a workaround, where the
CAS token is (based on) the stored value.

To confirm the data can be written to cache, the CAS token is compared against
"whatever is currently in cache", so we pull the cached data and rebuild the
value.

In the case of objects, we have now pulled & rebuilt (unserialized) 2 objects
that are actually the same object (for CAS purpose - it's the correct value to
overwrite), but in terms of ===, they're 2 different values.

This patch should make sure CAS tokens are always a serialized version of the
value we're saving (where no native CAS exists); these serialized versions can
reliably be compared.

Bug: 59941
Change-Id: I2760416c48f2ceb7a0e0c874dd70ec07b4dccdfc

10 years agoSECURITY: Fix RevDel log entry information leaks
Brad Jorsch [Tue, 14 Jan 2014 06:19:21 +0000 (22:19 -0800)]
SECURITY: Fix RevDel log entry information leaks

DELETED_ACTION is supposed to hide the target of the log entry. But a
few places weren't doing this properly.

This fixes:
* API list=logevents no longer returns the pageid when the target is
  hidden.
* Enhanced RecentChanges no longer includes the log target page in the
  CSS class. This should also make the CSS class actually useful.
* Watchlist no longer shows log entries with DELETED_ACTION unless the
  user has deletedhistory, and with SUPPRESSED_ACTION unless the user
  has suppressrevision.

Bug: 58699
Change-Id: I57f13bfc970a33ffd5a399ffb450d9ed0b77902f

10 years agoSECURITY: Return error on invalid XML for SVGs
csteipp [Thu, 19 Dec 2013 20:52:18 +0000 (12:52 -0800)]
SECURITY: Return error on invalid XML for SVGs

Return an error from UploadBase::detectScriptInSvg when the svg has
XML that cannot be parsed. Usually the XML is invalid, or the parser has
run out of memory trying to parse the file.

This patch is rebased on top of bug 57550.

Bug: 58553
Change-Id: I32661a27d7417cc2c69b844c805b190d6486d17a

10 years agoSECURITY: Disallow -o-link in styles
csteipp [Tue, 14 Jan 2014 06:12:28 +0000 (22:12 -0800)]
SECURITY: Disallow -o-link in styles

Opera will execute javascript from -o-link css attributes.

Bug: 58472
Change-Id: I3b640282ca1feeb175b095e9fdc4dc3ceff05e0f

10 years agoSECURITY: Don't normalize U+FF3C to \
csteipp [Fri, 6 Dec 2013 21:34:30 +0000 (13:34 -0800)]
SECURITY: Don't normalize U+FF3C to \

Bug: 58088
Change-Id: I10bf8dbce41bd617ddf16eb5fc20af1b1cb5f201

10 years agoSECURITY: Added missing auth check in img_auth.php
Aaron Schulz [Tue, 7 Jan 2014 19:32:40 +0000 (11:32 -0800)]
SECURITY: Added missing auth check in img_auth.php

For $wgImgAuthUrlPathMap in img_auth.php

Bug: 57016
Change-Id: I874878322a91bf14091500223d3520861a1556bb

10 years agoSpecialContributions: Avoid using 'contributions' slave for getParentLengths
Sean Pringle [Tue, 14 Jan 2014 03:36:29 +0000 (13:36 +1000)]
SpecialContributions: Avoid using 'contributions' slave for getParentLengths

Bug: 59987
Change-Id: I65d8eb14c7ea17fd732339e2e27a98a95e60cbd3

10 years agoSECURITY: Disallow stylesheets in svg
mglaser [Wed, 8 Jan 2014 22:39:52 +0000 (23:39 +0100)]
SECURITY: Disallow stylesheets in svg

Bug: 57550
Change-Id: I73d148519c077e628d82a89280faa088bac9bdf5

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 13 Jan 2014 21:26:51 +0000 (21:26 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib1d083cac1ff5d9a222b66966ef30a74b6d8170a

10 years agoMake PROTECTIONLEVEL count as expensive
Jackmcbarn [Mon, 13 Jan 2014 20:01:17 +0000 (15:01 -0500)]
Make PROTECTIONLEVEL count as expensive

When protection levels for a page have not previously loaded, make calls
to PROTECTIONLEVEL for that page count as expensive. Also, add new
accessors for the protection information.

Change-Id: Ic088a9f482154d5353ccf580bbe5c359371a8cdd

10 years agoMove MySQL-specific fakeMaster/fakeSlave stuff to DatabaseMysqlBase
Brad Jorsch [Mon, 13 Jan 2014 19:48:36 +0000 (14:48 -0500)]
Move MySQL-specific fakeMaster/fakeSlave stuff to DatabaseMysqlBase

Probably the fakeMaster/fakeSlave stuff was originally intended to be
generic, but the existing code in Database.php is making some very
MySQL-specific assumptions. So let's evict it from Database.php (except
for the minimal support functions) and put it in DatabaseMysqlBase where
it makes more sense.

This also takes care of fixing the breakage described in I5d2a1696 by
reverting Id6268193 and the problematic bit of I364e192e (again).

Change-Id: I3dc6ca216bf2c2f07d3090e86f2539292e1fa86b

10 years agoFixed temp URL breakage in Swift
Aaron Schulz [Fri, 10 Jan 2014 21:36:13 +0000 (13:36 -0800)]
Fixed temp URL breakage in Swift

* The API behavior is not well-documented in that it wants the HMAC
  to use the unencoded object name. CloudFiles had this same issue.

bug: 59894
Change-Id: I3f0c80eed55991bb85d0c12f98927efa19af6760

10 years agoMerge "Ensure a space of 0.5em between dt and dd in legend"
jenkins-bot [Mon, 13 Jan 2014 18:55:09 +0000 (18:55 +0000)]
Merge "Ensure a space of 0.5em between dt and dd in legend"

10 years agoAdd $wgFavicon to siteinfo API
Gergő Tisza [Mon, 13 Jan 2014 11:00:53 +0000 (11:00 +0000)]
Add $wgFavicon to siteinfo API

This would be used by MultimediaViewer to show an icon next to the
link to the description page (and probably makes sense to include
$wgFavicon if $wgLogo is there, anyway).

Bug: 59925
Change-Id: Ibdad9c3d2b515fbfdcd458db9b061f4d4d375180

10 years agoEnsure a space of 0.5em between dt and dd in legend
Fomafix [Mon, 13 Jan 2014 10:35:02 +0000 (10:35 +0000)]
Ensure a space of 0.5em between dt and dd in legend

In font Verdana the text "(+-123)" has a width of more than 3.5em.
With dd.mw-changeslist-legend-plusminus { margin-left: 3.5em; }
there is no space between "(+-123)" and the description.

Change-Id: Id8e4bc478cb00eaa9271c5a6cb580fd042d1c026

10 years agoMerge "Revert "Mechanism for renaming/aliasing classes""
jenkins-bot [Mon, 13 Jan 2014 04:25:38 +0000 (04:25 +0000)]
Merge "Revert "Mechanism for renaming/aliasing classes""

10 years agoMerge "Changed FOR UPDATE handling in Postgresql"
jenkins-bot [Mon, 13 Jan 2014 03:15:46 +0000 (03:15 +0000)]
Merge "Changed FOR UPDATE handling in Postgresql"

10 years agoRevert "Include short descriptions for extensions bundled in the release"
MaxSem [Sun, 12 Jan 2014 23:59:44 +0000 (23:59 +0000)]
Revert "Include short descriptions for extensions bundled in the release"

Contains var_dump(), self-merged non-trivial code.

This reverts commit 96b2c66e242954d8591e7b8ca7b9d6a2a4e1074a.

Change-Id: Ie630466ef50e6bcdabf01daff28c283c764aae35

10 years agoInclude short descriptions for extensions bundled in the release
Mark A. Hershberger [Fri, 11 Oct 2013 21:13:40 +0000 (21:13 +0000)]
Include short descriptions for extensions bundled in the release

Also fix styling for the list of extensions.

Bug: 43817
Change-Id: I5335225683ec8f1c163bb67f478787ebc52ee3a9

10 years agoRaw option of parser functions should match complete word
umherirrender [Tue, 17 Dec 2013 18:14:15 +0000 (19:14 +0100)]
Raw option of parser functions should match complete word

The MagicWord raw was not matched against the whole given string, which
result in a raw output, when this was not intented.
Fixing this by adding a new regex, which matches the string from start
to end.

Bug: 56199
Change-Id: I7781c415bd61447dd91872575877dd21f36fae9f

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sun, 12 Jan 2014 20:39:41 +0000 (20:39 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 12 Jan 2014 20:35:45 +0000 (20:35 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I3819b640ed499cdd677dd95b7e2b7c353b58a046

10 years agoMerge "rebuildrecentchanges.php leaves some rc_source empty"
jenkins-bot [Sun, 12 Jan 2014 20:28:00 +0000 (20:28 +0000)]
Merge "rebuildrecentchanges.php leaves some rc_source empty"

10 years agoMerge "mediawiki.searchSuggest: Blacklist Konqueror < 4.11"
TheDJ [Sun, 12 Jan 2014 13:22:29 +0000 (13:22 +0000)]
Merge "mediawiki.searchSuggest: Blacklist Konqueror < 4.11"

10 years agorebuildrecentchanges.php leaves some rc_source empty
umherirrender [Sun, 12 Jan 2014 12:43:45 +0000 (13:43 +0100)]
rebuildrecentchanges.php leaves some rc_source empty

Adding the missing field to some queries.

Change-Id: I04b228b06d94b79fd488b370694cdf698d1901a6

10 years agoMerge "Generate Utf8Case.ser directly from UnicodeData.txt"
jenkins-bot [Sun, 12 Jan 2014 03:10:50 +0000 (03:10 +0000)]
Merge "Generate Utf8Case.ser directly from UnicodeData.txt"

10 years agoSpecialWatchlist: JS enhancements to namespace selector (like RC)
Bartosz Dziewoński [Sun, 10 Nov 2013 17:17:13 +0000 (18:17 +0100)]
SpecialWatchlist: JS enhancements to namespace selector (like RC)

Just load the same modules SpecialRecentChanges does. We only need to
change an id on one form element for it to work.

Change-Id: I0bfad7776907a094335089f86dec1de6456d85c8

10 years agoSpecialWatchlist: Synchronise some code with newer versions from RC
Bartosz Dziewoński [Sun, 10 Nov 2013 13:50:49 +0000 (14:50 +0100)]
SpecialWatchlist: Synchronise some code with newer versions from RC

Change-Id: Ia6b883330083d05f7edbb6c2a36cb7e54463d05f

10 years agoCall Installer::getDBTypes() static
umherirrender [Sat, 11 Jan 2014 22:57:47 +0000 (23:57 +0100)]
Call Installer::getDBTypes() static

Change-Id: Ie819c7c6be39c4beab0fca30216632b3e87178a8

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sat, 11 Jan 2014 22:30:22 +0000 (22:30 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoMerge "WebInstaller: Don't call getSoftwareLink()"
jenkins-bot [Sat, 11 Jan 2014 21:55:50 +0000 (21:55 +0000)]
Merge "WebInstaller: Don't call getSoftwareLink()"

10 years agoRevert "Mechanism for renaming/aliasing classes"
PleaseStand [Sat, 11 Jan 2014 21:48:30 +0000 (21:48 +0000)]
Revert "Mechanism for renaming/aliasing classes"

Seems good in theory, though not quite usable in practice.
As with subclassing, the aliases would not work reliably
for code that uses type hints and/or instanceof.

See <https://bugs.php.net/bug.php?id=61422>, which I was
previously unaware of.

The best alternative is to add class_alias() calls to the
class files themselves, as well as duplicate entries to the
AutoLoader (just like when multiple classes are in the same
file).

There is no good way to show deprecation warnings, which
likely would have to be implemented in PHP itself. For now,
renamed classes should be indicated in RELEASE-NOTES. Maybe
I will file an RfC (at <https://wiki.php.net/rfc>) for this
and related improvements (e.g. making class names case
sensitive).

This reverts commit c61fdb4ef5dbe0c26a17e57203e0bf99aa0e2440.

Change-Id: I9771b4239543b543cfa078f357db1cd3918f081e

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 11 Jan 2014 21:17:25 +0000 (21:17 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic09df85dd1b9122a363c4c52435c99b9d65f1979

10 years agoRemove methods in Block deprecated in 1.18
Siebrand Mazeland [Sat, 11 Jan 2014 19:32:24 +0000 (20:32 +0100)]
Remove methods in Block deprecated in 1.18

One use found in core or Gerrit extensions which was replaced.

* Block::clear() (deprecated in 1.18)
* Block::decodeExpiry() (deprecated in 1.18)
* Block::encodeExpiry() (deprecated in 1.18)
* Block::forUpdate() (deprecated in 1.18)
* Block::infinity() (deprecated in 1.18)
* Block::load() (deprecated in 1.18)
* Block::newFromDB() (deprecated in 1.18)
* Block::normaliseRange() (deprecated in 1.18)
* Block::parseExpiryInput() (deprecated in 1.18)

Change-Id: Ia8ea6b5248111326f929062346f3868a0550421b

10 years agoRemove methods in Article deprecated in 1.18
Siebrand Mazeland [Sat, 11 Jan 2014 19:05:07 +0000 (20:05 +0100)]
Remove methods in Article deprecated in 1.18

No uses found in core or Gerrit extensions.

* Article::doRedirect() (deprecated in 1.18)
* Article::doUnwatch() (deprecated in 1.18)
* Article::doWatch() (deprecated in 1.18)
* Article::markpatrolled() (deprecated in 1.18)
* Article::unwatch() (deprecated in 1.18)
* Article::watch() (deprecated in 1.18)

Change-Id: I37772ee08baa1d3ee15247b1c869de1299e146a6

10 years agoRemove deprecated Article::forUpdate()
Siebrand Mazeland [Sat, 11 Jan 2014 18:53:09 +0000 (19:53 +0100)]
Remove deprecated Article::forUpdate()

Was deprecated in 1.18. No uses found in core or Gerrit extensions.

Change-Id: I2e145c323f645f963c8e07e1c9f25de9d2839ad7

10 years agoSpecialWatchlist: Reorder some stuff in #execute
Bartosz Dziewoński [Sun, 10 Nov 2013 13:49:26 +0000 (14:49 +0100)]
SpecialWatchlist: Reorder some stuff in #execute

In order to reduce the interconnectedness between parameter parsing,
database queries and building output, and to make later changes where
I'll start removing some of this code easier to understand.

Change-Id: I6f525506b0fc4c009989ed7dff838c4e21ec4860

10 years agoMerge "Correct return type doc for DatabaseBase::getLBInfo()"
jenkins-bot [Sat, 11 Jan 2014 11:47:38 +0000 (11:47 +0000)]
Merge "Correct return type doc for DatabaseBase::getLBInfo()"

10 years agoMerge "Composer: suggest does not take version, but description"
jenkins-bot [Sat, 11 Jan 2014 11:46:29 +0000 (11:46 +0000)]
Merge "Composer: suggest does not take version, but description"

10 years agoCorrect return type doc for DatabaseBase::getLBInfo()
Siebrand Mazeland [Sat, 11 Jan 2014 08:31:16 +0000 (09:31 +0100)]
Correct return type doc for DatabaseBase::getLBInfo()

This confused PHPStorm's code analyser.

Change-Id: If99abfa6ca9e52a39b6d2621441686ab564781c7

10 years agoComposer: suggest does not take version, but description
Niklas Laxström [Sun, 5 Jan 2014 12:47:47 +0000 (12:47 +0000)]
Composer: suggest does not take version, but description

Change-Id: I06b4fc1b23ac35dda1ab69769d773c8ab8d9aaf1

10 years agoMerge "rcfeed: Use wfWikiID() instead of $wgDBname"
jenkins-bot [Sat, 11 Jan 2014 06:14:42 +0000 (06:14 +0000)]
Merge "rcfeed: Use wfWikiID() instead of $wgDBname"

10 years agoMerge "Add XMLRCFeedFormatter"
jenkins-bot [Sat, 11 Jan 2014 06:13:32 +0000 (06:13 +0000)]
Merge "Add XMLRCFeedFormatter"

10 years agorcfeed: Use wfWikiID() instead of $wgDBname
Kunal Mehta [Sat, 11 Jan 2014 01:52:25 +0000 (17:52 -0800)]
rcfeed: Use wfWikiID() instead of $wgDBname

Change-Id: Id1f408a4c498f23f656298e3453d2a9264e3ac7c

10 years agoAdd XMLRCFeedFormatter
Kunal Mehta [Sat, 4 Jan 2014 08:44:50 +0000 (00:44 -0800)]
Add XMLRCFeedFormatter

Endpoints like XMPP natively support sending XML,
which can be advantageous in some cases.

Since most of the logic is the same as the existing
JSONRCFeedFormatter, it was moved into an abstract
MachineReadableRCFeedFormatter class, which simply
creates the array and lets the implementations format
it.

Change-Id: I44f22777cb55fc1ca6527b79ef40b340e2afbd58

10 years agoSpecialWatchlist: Don't overwrite context now that we don't have to
Bartosz Dziewoński [Thu, 7 Nov 2013 23:42:47 +0000 (00:42 +0100)]
SpecialWatchlist: Don't overwrite context now that we don't have to

Abstracted away backwards-compatibility URL parameter handling to
a separate method called before the options are fetched.

Change-Id: I54fd5f35262d86c936deac4d8cec0d2aebad10cd

10 years agoSpecialWatchlist: Use FormOptions for parameter handling
Bartosz Dziewoński [Fri, 11 Oct 2013 19:39:00 +0000 (21:39 +0200)]
SpecialWatchlist: Use FormOptions for parameter handling

The SpecialWatchlistQuery hook now gets a FormOptions object as the last
parameter instead of an array (which is not bad as bad as it sounds, since
the class implements ArrayAccess).

Change-Id: Iec4aab870b6e9aa98d2b118010e78e25b1dbe437

10 years agoVector: Rewrite search with nesting
jrobson [Wed, 8 Jan 2014 18:22:17 +0000 (10:22 -0800)]
Vector: Rewrite search with nesting

Change-Id: Id375b0f2036ea0fdc010712e7721b57fc4ebfa8f

10 years agoVector: Rewrite notifications.less with nesting
jrobson [Wed, 8 Jan 2014 18:18:34 +0000 (10:18 -0800)]
Vector: Rewrite notifications.less with nesting

Change-Id: Icec6a26633670aa059b1a73ee1e88af8b561c681

10 years agoVector: Rewrite navigation.less with nesting
jrobson [Wed, 8 Jan 2014 18:17:56 +0000 (10:17 -0800)]
Vector: Rewrite navigation.less with nesting

Change-Id: I93d9bf3f714dc9f3df5bbf91385cacbfaa991382

10 years agoVector: Rewrite vectorTabs with nesting
jrobson [Wed, 8 Jan 2014 17:59:18 +0000 (09:59 -0800)]
Vector: Rewrite vectorTabs with nesting

Change-Id: I598c90495b542996ab32209bfeaeb3d451d6d01e

10 years agoMerge "Vector: Rewrite footer styling with nesting"
jenkins-bot [Fri, 10 Jan 2014 23:31:27 +0000 (23:31 +0000)]
Merge "Vector: Rewrite footer styling with nesting"

10 years agoMerge "Vector: Rewrite p-personal with nesting."
jenkins-bot [Fri, 10 Jan 2014 23:31:25 +0000 (23:31 +0000)]
Merge "Vector: Rewrite p-personal with nesting."