lhc/web/wiklou.git
9 years agoAdd namespace translations for nan
Niklas Laxström [Fri, 2 Jan 2015 22:59:31 +0000 (23:59 +0100)]
Add namespace translations for nan

Aliases added from fallback language cdo. Per request in
https://translatewiki.net/wiki/Thread:User_talk:Nike/outo_p%C3%A4tk%C3%A4_osoitteissa

Change-Id: Ic73d81cd9a477a9818aa0f0c8b596ab49850460a

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 2 Jan 2015 21:01:54 +0000 (22:01 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I7e5267badb3467b3f7b5e000efe6c37f8fd0c7d7

9 years agoMerge "jQuery.footHovzer: Fix scrolling issues"
jenkins-bot [Fri, 2 Jan 2015 17:51:18 +0000 (17:51 +0000)]
Merge "jQuery.footHovzer: Fix scrolling issues"

9 years agojQuery.footHovzer: Fix scrolling issues
gladoscc [Fri, 2 Jan 2015 16:02:48 +0000 (03:02 +1100)]
jQuery.footHovzer: Fix scrolling issues

Fix scrollbar appearing if the page does not fill the screen, and the
debug toolbar is enabled.

This patch also fixes an issue where the page will have a height of
~1000px if the CSS is loaded after the JS executes (display:none
isn't triggered before the outerHeight() calculation). I've only been
able to fix this by adding a setTimeout, which is a little bit hacky..
but can't figure out how to solve it any other way.

Bug: T38273
Change-Id: I1f92cb0681b7a82a5936267c120f85481a95a962

9 years agoFix @covers tags for includes/libs/composer
Kunal Mehta [Fri, 2 Jan 2015 06:18:40 +0000 (22:18 -0800)]
Fix @covers tags for includes/libs/composer

Change-Id: I90a39bce22f304eb06dd595eb845bb953e6937c3

9 years agoMerge "Don't replace user text with suggestion in searchbox"
jenkins-bot [Fri, 2 Jan 2015 11:26:34 +0000 (11:26 +0000)]
Merge "Don't replace user text with suggestion in searchbox"

9 years agoMerge "Clarifies the meaning of the function which tests the bug T34712"
jenkins-bot [Fri, 2 Jan 2015 09:52:58 +0000 (09:52 +0000)]
Merge "Clarifies the meaning of the function which tests the bug T34712"

9 years agoDon't replace user text with suggestion in searchbox
m4tx [Fri, 2 Jan 2015 01:26:26 +0000 (02:26 +0100)]
Don't replace user text with suggestion in searchbox

On Enter press, there was highlight() called, which also replaced the text.
Since it seems to have no use here (highlight() highlights the selected
suggestion in the box, but the box is immediately hidden, and there's
probably no case when the suggestion is chosen, but the text in searchbox
does not match it), it was removed.

Bug: T53900
Change-Id: I9fc2e954ae429ba166ddc7c713f9790a25a837c2

9 years agoClarifies the meaning of the function which tests the bug T34712
Robert Hoenig [Tue, 30 Dec 2014 08:26:18 +0000 (02:26 -0600)]
Clarifies the meaning of the function which tests the bug T34712

Change-Id: I17922b9bc6ac2ce5fef7aebc27020874d349f507

9 years agoDocument OutputPage::$mPreventClickjacking
gladoscc [Thu, 1 Jan 2015 11:19:06 +0000 (22:19 +1100)]
Document OutputPage::$mPreventClickjacking

Change-Id: I3b4f967743c810c5cbef094b3e30807cf0a668ca

9 years agoImplement support for a minimum log level in $wgDebugLogGroups
Kunal Mehta [Tue, 30 Dec 2014 01:42:48 +0000 (17:42 -0800)]
Implement support for a minimum log level in $wgDebugLogGroups

For some log groups, we only want to log them if they meet a certain
level of severity. An example of this is the current 'memcached-serious'
log group, which can be merged with the normal 'memcached' group
in the future, and report at a severity of ERROR.

This adds a 'level' parameter to the $wgDebugLogGroups, for example:
    $wgDebugLogGroups['memcached'] = array(
        'destination' => '/var/log/mw/memcached.log',
        'level' => \Psr\Log\LogLevel::ERROR,
    );

Bug: T85073
Change-Id: Ic53bc4c8e318ed188fe6f4e838e6789b3c3fd574

9 years agoMerge "Only return CORS headers in the response as required"
jenkins-bot [Wed, 31 Dec 2014 18:05:02 +0000 (18:05 +0000)]
Merge "Only return CORS headers in the response as required"

9 years agoOnly return CORS headers in the response as required
Derk-Jan Hartman [Thu, 4 Dec 2014 14:39:50 +0000 (15:39 +0100)]
Only return CORS headers in the response as required

- Split out responses of preflight and actual CORS requests
- If the request is not CORS valid, don't set the CORS response headers

Note that invalid CORS requests should not actually throw error
responses, the client should simply not handle the response because the
response does not have the right headers (it's a client side policy
error not an http error). We do throw a 403 for a mismatch with the
queryparam, but since that is 'outside' of the spec, that might be
appropriate.

Bug: T76701
Change-Id: Ib296c68babe5c0b380268ee7793b3d6d35b9c3e3

9 years agoKeep backend param to search API as long as there's a backend
Chad Horohoe [Wed, 31 Dec 2014 16:37:17 +0000 (08:37 -0800)]
Keep backend param to search API as long as there's a backend

Originally this was designed to only show up when there was
more than one backend. That's more likely to break for clients
though if you want to go back to only having one backend again.

Change-Id: I9009f2599f5bc6fa8f9c49370fd0ffb714e31755

9 years agoMerge "Use preview content when it transcludes itself"
jenkins-bot [Wed, 31 Dec 2014 16:19:24 +0000 (16:19 +0000)]
Merge "Use preview content when it transcludes itself"

9 years agoMerge "Use PHPUnit_Framework_TestCase in a few utils/ tests"
jenkins-bot [Wed, 31 Dec 2014 15:59:16 +0000 (15:59 +0000)]
Merge "Use PHPUnit_Framework_TestCase in a few utils/ tests"

9 years agoRemove normalizeAttributeValue()
Evan McIntire [Sun, 28 Dec 2014 04:09:51 +0000 (23:09 -0500)]
Remove normalizeAttributeValue()

Sanitizer::normalizeAttributeValue is completely unused and private, and
as such, should be removed

Change-Id: I655ef90fe97a775011f9d16c0b51feb2612aec26

9 years agoMoved getTitleInvalidRegex() from Title to MediaWikiTitleCodec
Evan McIntire [Sat, 27 Dec 2014 23:00:11 +0000 (18:00 -0500)]
Moved getTitleInvalidRegex() from Title to MediaWikiTitleCodec

Deprecated it in Title, and updated all current references to use the
non-deprecated version in MediaWikiTitleCodec

Change-Id: I2b9c36992028c97f695f2b95ba027fbb11904b57

9 years agoMerge "Documented the Classes ImportStringSource and ImportStreamSource"
jenkins-bot [Wed, 31 Dec 2014 02:00:57 +0000 (02:00 +0000)]
Merge "Documented the Classes ImportStringSource and ImportStreamSource"

9 years agoDocumented the Classes ImportStringSource and ImportStreamSource
Evan McIntire [Wed, 31 Dec 2014 01:13:05 +0000 (20:13 -0500)]
Documented the Classes ImportStringSource and ImportStreamSource

Added short descriptions for each class

Change-Id: I28d3dea76ab70326a1e16b7c41b1f3758f8648b8

9 years agoAdd JSON to docs/contenthandler.txt
wctaiwan [Wed, 31 Dec 2014 01:39:38 +0000 (20:39 -0500)]
Add JSON to docs/contenthandler.txt

Bug: T85580
Change-Id: I70edfbe4e50fec0701484d5004a5c673c0dd69b7

9 years agoFormat multiple autocomments in edit summaries
Brad Jorsch [Tue, 9 Sep 2014 15:25:10 +0000 (11:25 -0400)]
Format multiple autocomments in edit summaries

Before r39373, all autocomments in an edit summary were formatted. In
fixing a bug with page titles containing "/*" this was accidentally
broken.

To use a single preg_replace_callback call to replace multiple
autocomments, we need to make sure that the match of one autocomment
doesn't overlap the match of another, which means we can't have "(.*)"
before and after. But we do still need to detect whether there is
anything before or after. "(?=(.?))" and "(?<=(.?))" would do nicely,
except the latter isn't actually supported. "(?=(.))?" and "(?<=(.))?"
work too, but older versions of PCRE don't support that. They do,
however, support "(?:(?=(.)))?" and "(?:(?<=(.)))?", so that's what
we'll go with.

This change does change the values for $pre and $post passed to the
FormatAutocomments hook; extensions need to be updated to accept (and
not prepend/append) booleans for these parameters.

Bug: T18530
Bug: T70361
Change-Id: I36c3a9e548a4ef72f93974bb35f9add8c29e9287

9 years agoMerge "mediawiki.action.edit.preview: Restore trigger LivePreviewPrepare"
jenkins-bot [Tue, 30 Dec 2014 22:10:34 +0000 (22:10 +0000)]
Merge "mediawiki.action.edit.preview: Restore trigger LivePreviewPrepare"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 30 Dec 2014 19:20:15 +0000 (20:20 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I5d944ab07707d9a1a886ff6336f8136f9fa237ca

9 years agoMerge "Set mw.config wgFileExtensions only on Upload instead of site-wide"
jenkins-bot [Tue, 30 Dec 2014 18:14:45 +0000 (18:14 +0000)]
Merge "Set mw.config wgFileExtensions only on Upload instead of site-wide"

9 years agoMerge "Make TitleMethodsTest a LangTestCase"
jenkins-bot [Tue, 30 Dec 2014 18:13:34 +0000 (18:13 +0000)]
Merge "Make TitleMethodsTest a LangTestCase"

9 years agoUse preview content when it transcludes itself
Jackmcbarn [Tue, 3 Jun 2014 20:10:02 +0000 (16:10 -0400)]
Use preview content when it transcludes itself

When a page transcludes itself, such as <noinclude>foo
{{:{{FULLPAGENAME}}}}</noinclude><includeonly>bar</includeonly>, use the
preview content in its own transclusions. This code was basically ripped
straight from Extension:TemplateSandbox.

Bug: T85408
Bug: T7278
Change-Id: I1aa091a395a4f7b7b744e09e0bed59bc2e1176d0

9 years agoCorrect apihelp for show parameter for some modules
umherirrender [Tue, 30 Dec 2014 09:39:11 +0000 (10:39 +0100)]
Correct apihelp for show parameter for some modules

They mention "!redirects", but the value is called "!redirect"

Bug: T85431
Change-Id: I1034b56b659db0c1e0aaede92a373919a7878dfe

9 years agoMake TitleMethodsTest a LangTestCase
umherirrender [Tue, 30 Dec 2014 09:22:56 +0000 (10:22 +0100)]
Make TitleMethodsTest a LangTestCase

With I40a51c14ce07c301c15c6c2128cc18bb12e71103 a compare of namespaces
was added which fails when content language is not en.

Change-Id: I21466231e10e6cd5969c8c9bfd4824bf9c47e6d8

9 years agoUse PHPUnit_Framework_TestCase in a few utils/ tests
Chad Horohoe [Tue, 30 Dec 2014 04:56:47 +0000 (20:56 -0800)]
Use PHPUnit_Framework_TestCase in a few utils/ tests

IPTest, StringUtilsTest and ZipDirectoryReaderTest do not
need the extra overhead

Change-Id: Ic05afb1a3a094a57383d483f4e50bd1ed9a183e2

9 years agoConvert most libs/ tests to use PHPUnit_Framework_TestCase
Chad Horohoe [Tue, 30 Dec 2014 04:53:24 +0000 (20:53 -0800)]
Convert most libs/ tests to use PHPUnit_Framework_TestCase

They don't actually need any of the mess that MediaWikiTestCase provides

Change-Id: Ibd067480fc294096d1249132cb800e09889efb18

9 years agoMerge "Implemented hasRules()"
jenkins-bot [Tue, 30 Dec 2014 00:17:18 +0000 (00:17 +0000)]
Merge "Implemented hasRules()"

9 years agoExpose installed external libraries on Special:Version
Kunal Mehta [Mon, 29 Dec 2014 20:16:59 +0000 (12:16 -0800)]
Expose installed external libraries on Special:Version

Change-Id: Ic767a06ccfd938fbe519333bbd683f6116aaa262

9 years agoAdd checkComposerLockUpToDate.php script
Kunal Mehta [Mon, 8 Dec 2014 20:08:52 +0000 (12:08 -0800)]
Add checkComposerLockUpToDate.php script

Checks whether your composer.lock file is up to date
with the current composer.json file.

Bug: T77388
Change-Id: I528d63172c238cf1ea9bc02e8eb39b93225865de

9 years agoMerge "Apply time adjust on merge log"
jenkins-bot [Mon, 29 Dec 2014 22:22:19 +0000 (22:22 +0000)]
Merge "Apply time adjust on merge log"

9 years agoMerge "Allow querying for multiple MIME types in the allimages API"
jenkins-bot [Mon, 29 Dec 2014 22:04:16 +0000 (22:04 +0000)]
Merge "Allow querying for multiple MIME types in the allimages API"

9 years agoAllow querying for multiple MIME types in the allimages API
Ricordisamoa [Mon, 29 Dec 2014 10:53:37 +0000 (11:53 +0100)]
Allow querying for multiple MIME types in the allimages API

The 'aimime' parameter can now be a pipe-separated list of
MIME types. Also tweaked the English apihelp and added an
example for the new functionality.

Bug: T78690
Change-Id: I775ecae53c81eccb0a898081715d48589b53af15

9 years agoMerge "Fix warning on Special:ListGroupRights for group with invalid group page"
jenkins-bot [Mon, 29 Dec 2014 20:47:46 +0000 (20:47 +0000)]
Merge "Fix warning on Special:ListGroupRights for group with invalid group page"

9 years agoEscape word-separator in LogFormatter
Niklas Laxström [Sat, 6 Dec 2014 10:27:04 +0000 (11:27 +0100)]
Escape word-separator in LogFormatter

Change-Id: I9428f5ff5b95d09932b3588f0118d6992a384390

9 years agoAPI: Clean up uncaught exception backtrace output
Brad Jorsch [Mon, 29 Dec 2014 18:57:40 +0000 (13:57 -0500)]
API: Clean up uncaught exception backtrace output

The existing response seems to be designed to look good with
format=xmlfm, which doesn't make much sense now that format=jsonfm is
the default.

Change-Id: Ic3993aaf7e401d6233bbbe4522e77004099e3c40

9 years agoFix escaping of specialList and clarify comments
Niklas Laxström [Sat, 6 Dec 2014 11:16:16 +0000 (12:16 +0100)]
Fix escaping of specialList and clarify comments

Change-Id: I4bead5f5f310dd35e8dfee738f35a070e7bf869f

9 years agoMerge "Include log id in api error response"
jenkins-bot [Mon, 29 Dec 2014 18:28:28 +0000 (18:28 +0000)]
Merge "Include log id in api error response"

9 years agoFix warning on Special:ListGroupRights for group with invalid group page
umherirrender [Mon, 29 Dec 2014 18:24:20 +0000 (19:24 +0100)]
Fix warning on Special:ListGroupRights for group with invalid group page

Avoids
Notice: Linker::link: Requires $target to be a Title object. [Called
from SpecialListGroupRights::execute in
\includes\specials\SpecialListgrouprights.php at line 97]

Change-Id: Ie90ea33b0f57861985a296380e4ee7296dac79af

9 years agoRemove over/underescaping detected in Special:UserRights
Niklas Laxström [Sat, 6 Dec 2014 11:02:14 +0000 (12:02 +0100)]
Remove over/underescaping detected in Special:UserRights

Bug: T31340
Change-Id: I99823cd56e0a6f501101cb85be832d2925ce9779

9 years agoShorten lines to pass phpcs test
Amir E. Aharoni [Sun, 28 Dec 2014 20:16:05 +0000 (22:16 +0200)]
Shorten lines to pass phpcs test

Change-Id: I5588e1f16f1a23d77160cd180058bd2000a93ab6

9 years agoImplemented hasRules()
Evan McIntire [Mon, 29 Dec 2014 00:17:04 +0000 (19:17 -0500)]
Implemented hasRules()

hasRules() looks at $mRules and returns true for a non-empty string, and
false for an empty one

Change-Id: Ia7a1316498dc3f2753f61134705c9bd80fc9caeb

9 years agoMerge "Parser: Add <bdi> to the whitelist for TOC links"
jenkins-bot [Sun, 28 Dec 2014 20:12:47 +0000 (20:12 +0000)]
Merge "Parser: Add <bdi> to the whitelist for TOC links"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 28 Dec 2014 19:42:39 +0000 (20:42 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I82520452e4635c34348089fdf7cc605b32d95881

9 years agoApply time adjust on merge log
umherirrender [Sun, 28 Dec 2014 19:36:00 +0000 (20:36 +0100)]
Apply time adjust on merge log

The merge log params contains a revision timestamp in UTC, this needs
time adjust in case of users with a timezone in the settings.

Change-Id: I1612a33307667fa767e80a6061c013ea0f10b0a6

9 years agoMerge "Use a more generic DB Error wording"
jenkins-bot [Sun, 28 Dec 2014 15:43:14 +0000 (15:43 +0000)]
Merge "Use a more generic DB Error wording"

9 years agoMerge "Sort languages by code in Language::fetchLanguageNamesUncached"
jenkins-bot [Sun, 28 Dec 2014 15:29:43 +0000 (15:29 +0000)]
Merge "Sort languages by code in Language::fetchLanguageNamesUncached"

9 years agoSort languages by code in Language::fetchLanguageNamesUncached
Marius Hoch [Sun, 28 Dec 2014 11:51:12 +0000 (12:51 +0100)]
Sort languages by code in Language::fetchLanguageNamesUncached

This is being used in API output in ApiQuerySiteinfo so having
it sorted is nicer.

Bug: T85406
Change-Id: I796112187d17337a1cc12d6752839263b53f40e1

9 years agomediawiki.action.edit.preview: Restore trigger LivePreviewPrepare
Fomafix [Sat, 27 Dec 2014 23:49:01 +0000 (23:49 +0000)]
mediawiki.action.edit.preview: Restore trigger LivePreviewPrepare

CodeEditor needs this trigger.

Bug: T78838
Change-Id: Ibf355384b821ad98616671797f82dfa7410407e3

9 years agoUse a more generic DB Error wording
Florianschmidtwelzow [Mon, 1 Dec 2014 06:29:36 +0000 (07:29 +0100)]
Use a more generic DB Error wording

Not everytime there is a problem to _contact_ the database server (e.g. a false server),
sometimes (e.g. a false password or username) it's a problem of the user credentials
or that the database does not exist. So use a more generic wording, just saying,
that the database could not be accessed.

Bug: T76317
Change-Id: I502d5894acb855ac51c6f45ea91e5446b4b3aeb3

9 years agoInclude log id in api error response
umherirrender [Sat, 27 Dec 2014 21:16:29 +0000 (22:16 +0100)]
Include log id in api error response

For internal api error it is helpful for reporting when having the log
id under the exception was logged in the exception log.

Also use the redacted trace in the api error response instead of the
normal one to avoid leakage of function values if exception details are shown.

Change-Id: I7d917e532da1b1c7979a6599425f07d2f4f35aed

9 years agoParser: Add <bdi> to the whitelist for TOC links
Derk-Jan Hartman [Sun, 2 Nov 2014 17:19:56 +0000 (18:19 +0100)]
Parser: Add <bdi> to the whitelist for TOC links

Bug: 72884
Change-Id: Id5aa9a4eb32fb185881141e55de700ae36f806c5

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 27 Dec 2014 17:11:13 +0000 (18:11 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I4731cb83ad392d361cd9bfca154aa27a8278d9c1

9 years agoCleanup DatabaseBase::query implicit transaction code
Aaron Schulz [Thu, 18 Dec 2014 01:47:44 +0000 (17:47 -0800)]
Cleanup DatabaseBase::query implicit transaction code

* Add DatabaseBase::isTransactableQuery() for checking whether a query could
  benefit from being executed in a transaction.

Change-Id: Ie5b116bc726b47c68459e6525a1bb43b96bd9f30

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 25 Dec 2014 21:11:41 +0000 (22:11 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1ab91507623ac4c465066d73cc74658b35c8b534

9 years agoMerge "Add and use Title::getOtherPage()"
jenkins-bot [Thu, 25 Dec 2014 15:22:36 +0000 (15:22 +0000)]
Merge "Add and use Title::getOtherPage()"

9 years agoMerge "Remove meaningless default action name"
jenkins-bot [Thu, 25 Dec 2014 05:53:44 +0000 (05:53 +0000)]
Merge "Remove meaningless default action name"

9 years agoSpecialPage::execute doesn't return anything
Thiemo Mättig [Mon, 15 Dec 2014 16:45:30 +0000 (17:45 +0100)]
SpecialPage::execute doesn't return anything

Change-Id: I6f413a633b71739592aae8c8b2db61ad4abc2a79

9 years agoAdd use statement for type used in MWLoggerMonologSamplingHandler::setFormatter()
Reedy [Wed, 24 Dec 2014 12:25:01 +0000 (12:25 +0000)]
Add use statement for type used in MWLoggerMonologSamplingHandler::setFormatter()

Change-Id: I02629711eccfecdab77c5e6d80833806d48d07cf

9 years agoAdd lots of @throws
Reedy [Wed, 24 Dec 2014 13:49:20 +0000 (13:49 +0000)]
Add lots of @throws

Change-Id: I09d0c13070f966fcf23d2638d8fc1328279a5995

9 years agoMerge "Change to unix eol style"
jenkins-bot [Wed, 24 Dec 2014 12:42:57 +0000 (12:42 +0000)]
Merge "Change to unix eol style"

9 years agoChange to unix eol style
Reedy [Wed, 24 Dec 2014 12:32:33 +0000 (12:32 +0000)]
Change to unix eol style

Change-Id: I0a5f91ccdbeed28ce41614ba8721944de876056d

9 years agoMerge "mediawiki.feedback.js: Trim whitespace from message and subject"
jenkins-bot [Wed, 24 Dec 2014 12:13:16 +0000 (12:13 +0000)]
Merge "mediawiki.feedback.js: Trim whitespace from message and subject"

9 years agomediawiki.feedback.js: Trim whitespace from message and subject
Vivek Ghaisas [Wed, 24 Dec 2014 11:20:47 +0000 (14:20 +0300)]
mediawiki.feedback.js: Trim whitespace from message and subject

Remove leading and trailing whitespace from submitted feedback message
and subject.

Bug: T35192
Change-Id: Ie260e3b1b15092ea49dc7b8a1a06e0094a0178a3

9 years agoMerge "Consolidate mobile and desktop designs for login form"
jenkins-bot [Wed, 24 Dec 2014 11:28:21 +0000 (11:28 +0000)]
Merge "Consolidate mobile and desktop designs for login form"

9 years agoMerge "hygiene: small special:search refactor"
jenkins-bot [Tue, 23 Dec 2014 21:50:39 +0000 (21:50 +0000)]
Merge "hygiene: small special:search refactor"

9 years agoConsolidate mobile and desktop designs for login form
jdlrobson [Mon, 22 Dec 2014 23:53:39 +0000 (15:53 -0800)]
Consolidate mobile and desktop designs for login form

* Stop sign up button from being a button
* Move password reset to bottom of form

Bug: T85189
Change-Id: I175e9f515d962f9078845f25f9b96079819444c6

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Tue, 23 Dec 2014 20:23:02 +0000 (20:23 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoMerge "Improve testing for ApiFormatBase subclasses"
jenkins-bot [Tue, 23 Dec 2014 20:20:57 +0000 (20:20 +0000)]
Merge "Improve testing for ApiFormatBase subclasses"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 23 Dec 2014 20:12:07 +0000 (21:12 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I6178a460bc1f147ee26ecbe135182a7fd7c64ad9

9 years agoImprove testing for ApiFormatBase subclasses
Brad Jorsch [Wed, 17 Dec 2014 21:48:03 +0000 (16:48 -0500)]
Improve testing for ApiFormatBase subclasses

I7b37295e is going to be changing around how ApiResult works,
which is going to need corresponding changes in the formatters. So it
would probably be a good idea to have a decent starting point to catch
any breakage. The non-backwards-compatible changes to ApiFormatTestBase
shouldn't be a concern, as no extensions in Gerrit reference this class
or any /ApiFormat.*Test/ class.

This also fixes two small bugs in ApiFormatWddx (null handling and
spacing for non-fm slow path) discovered during testing, and works
around some HHVM wddx extension bugs.

Bug: T85236
Change-Id: I9cdf896e7070ed51e42625d61609ad9ef91cd567

9 years agoMerge "monolog: MWLoggerMonologSamplingHandler"
jenkins-bot [Tue, 23 Dec 2014 19:05:02 +0000 (19:05 +0000)]
Merge "monolog: MWLoggerMonologSamplingHandler"

9 years agoSpecial:Search Don't autofocus search bar unless it is empty
Namit [Wed, 17 Dec 2014 06:01:04 +0000 (11:31 +0530)]
Special:Search Don't autofocus search bar unless it is empty

This interferes with scrolling through the results using the arrow keys.The user would first
have to defocus the text box by clicking outside it or pressing Tab.

Bug: T78637
Change-Id: Ic88e70c8e2308797b39c707984d77405369ae46c

9 years agoAdd @since to classes and interface in title
Niklas Laxström [Tue, 23 Dec 2014 09:50:42 +0000 (10:50 +0100)]
Add @since to classes and interface in title

Follow-up to 154bcdc63f

Change-Id: I0c1dc41d29cc3b3c1938ed6df6bb11cc1b4a8e8f

9 years agoEscaped lastmodifiedat and laggedslavemode
Niklas Laxström [Sat, 6 Dec 2014 10:15:58 +0000 (11:15 +0100)]
Escaped lastmodifiedat and laggedslavemode

Change-Id: Ibcc1b49946bc91e12756eb3866448159493c61f4

9 years agoMerge "Use getHtmlCode() instead of getCode() to set the lang attribute"
jenkins-bot [Tue, 23 Dec 2014 11:49:25 +0000 (11:49 +0000)]
Merge "Use getHtmlCode() instead of getCode() to set the lang attribute"

9 years agoMerge "Escape message 'word-separator' on Special:FileDuplicateSearch"
jenkins-bot [Tue, 23 Dec 2014 11:48:16 +0000 (11:48 +0000)]
Merge "Escape message 'word-separator' on Special:FileDuplicateSearch"

9 years agoMerge "API: Allow for documenting individual values of 'prop' parameters"
jenkins-bot [Mon, 22 Dec 2014 21:54:45 +0000 (21:54 +0000)]
Merge "API: Allow for documenting individual values of 'prop' parameters"

9 years agoAPI: Allow for documenting individual values of 'prop' parameters
Brad Jorsch [Fri, 7 Nov 2014 23:57:14 +0000 (18:57 -0500)]
API: Allow for documenting individual values of 'prop' parameters

There are cases where the list of values for a 'prop' parameter may be
manipulated by a subclass or by a hook function of some sort. Rather
than requiring the subclass/hook to completely replace a monolithic i18n
message, let's add the possibility of separate messages for each value
in the list.

Bug: T77930
Change-Id: I0bb061c62ebeef125062460e26306c88390f7b31

9 years agoAPI: Add page properties to action=expandtemplates output
Brad Jorsch [Mon, 22 Dec 2014 21:17:46 +0000 (16:17 -0500)]
API: Add page properties to action=expandtemplates output

This allows for retrieving properties set by double-brace magic words
such as {{DEFAULTSORT:}}.

Bug: T78737
Change-Id: I971d233e4bed52a363144aa69c304e5672257a73

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 22 Dec 2014 21:23:17 +0000 (22:23 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1c089ee2bcee316ce087dd492d808e02f50bbab3

9 years agoMerge "Moved "nowait:" key code to PoolCounter in core"
jenkins-bot [Mon, 22 Dec 2014 19:26:20 +0000 (19:26 +0000)]
Merge "Moved "nowait:" key code to PoolCounter in core"

9 years agoReally allow Extensions to make a new gallery format
Florianschmidtwelzow [Mon, 22 Dec 2014 15:39:52 +0000 (16:39 +0100)]
Really allow Extensions to make a new gallery format

Adjust GalleryGetModes call to fit Hooks::run() signature.

Follow up: I33462a8b52502ed76aeb163b66e3704c8618ba23

Change-Id: I916dade31d6d67de4bb82582cc71585e83fec1c9

9 years agoMoved "nowait:" key code to PoolCounter in core
Aaron Schulz [Fri, 19 Dec 2014 23:27:59 +0000 (15:27 -0800)]
Moved "nowait:" key code to PoolCounter in core

Change-Id: I5286e6c6052289e1107314a04d72703b44a8fbc6

9 years agoFix NS invert on SpecialNewPages
Florianschmidtwelzow [Mon, 22 Dec 2014 18:25:58 +0000 (19:25 +0100)]
Fix NS invert on SpecialNewPages

Follow up: I5c03dc543b910aab27a26a5a223341be50893cf3

Bug: T85145
Change-Id: Ia5cec6db48c3e900ebb07169015e55a2fb72b792

9 years agoDon't allow embedded newlines in magic links, but do allow &nbsp;
C. Scott Ananian [Fri, 16 May 2014 00:35:59 +0000 (17:35 -0700)]
Don't allow embedded newlines in magic links, but do allow &nbsp;

This continues the work started in T67278 to make magic link parsing
more consistent with wiki text parsing in general, and closes two
long-standing bugs.

Bug: T30950
Bug: T31025
Change-Id: I71f8b337543163569c64bbfdec154eb9b69d7264

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 21 Dec 2014 16:02:52 +0000 (17:02 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I27b0e2b659c880905f9bc6988d0c41f84616b480

9 years agoFix AutoloadGenerator to work on MediaWiki-Vagrant (again)
Bryan Davis [Sat, 20 Dec 2014 19:05:29 +0000 (12:05 -0700)]
Fix AutoloadGenerator to work on MediaWiki-Vagrant (again)

The patch set from I5d502b5 re-introduced the use of realpath() within
AutoloadGenerator::readFile() as part of a set of changes to ensure that
path separators are normalized across Unix and Windows systems. As noted
previously in I4623b3d, the use of realpath() in this function will
cause fatal exceptions to be thrown when a file such as
LocalSettings.php is a symlink to a file outside to $IP.

This patch separates the path normalization functionality from
realpath() expansion and uses only the path normalization component
within AutoloadGenerator::readFile(). It also introduces a cautionary
comment in AutoloadGenerator::readFile() that will hopefully keep
realpath() from being reintroduced there.

Change-Id: I4923dfa8370a7bd6077f42ff4c437d7293fdad66

9 years agoEscape message 'word-separator' on Special:FileDuplicateSearch
umherirrender [Sat, 20 Dec 2014 21:36:43 +0000 (22:36 +0100)]
Escape message 'word-separator' on Special:FileDuplicateSearch

Change-Id: Ib00cbca264d5723434e5db476293364267a13a85

9 years agomonolog: MWLoggerMonologSamplingHandler
Bryan Davis [Sat, 20 Dec 2014 21:15:59 +0000 (14:15 -0700)]
monolog: MWLoggerMonologSamplingHandler

Introduce the MWLoggerMonologSamplingHandler which can
be used to probabilistically sample the log event stream.

Bug: T85067
Change-Id: Icd14fc8c44ca9eef0f3f5cc4f1d1d8b68d517f07

9 years agoMerge "Fix redirect page for RTL"
jenkins-bot [Sat, 20 Dec 2014 21:26:21 +0000 (21:26 +0000)]
Merge "Fix redirect page for RTL"

9 years agoEscape retrievedfrom message in the skin
Niklas Laxström [Sat, 6 Dec 2014 09:52:47 +0000 (10:52 +0100)]
Escape retrievedfrom message in the skin

Change-Id: Ifd696ecd93c76e56cb21b3f2645367beeeeb5ba0

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 20 Dec 2014 20:45:39 +0000 (21:45 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic37ef1c92e555d471595a05c2d4b0d7b520d3e0c

9 years agoFix redirect page for RTL
Ebrahim Byagowi [Sat, 20 Dec 2014 19:47:00 +0000 (19:47 +0000)]
Fix redirect page for RTL

Change-Id: Ic101356245247c745daa2f58428de22b08be5289

9 years agoMerge "Remove unneeded fields from query in Special:ListUsers"
jenkins-bot [Sat, 20 Dec 2014 10:10:59 +0000 (10:10 +0000)]
Merge "Remove unneeded fields from query in Special:ListUsers"

9 years agoMerge "Ensure integer compare in Special:WantedCategories"
jenkins-bot [Sat, 20 Dec 2014 10:02:47 +0000 (10:02 +0000)]
Merge "Ensure integer compare in Special:WantedCategories"