lhc/web/wiklou.git
9 years agoMerge "Prepare repository for running RuboCop after every push to Gerrit"
jenkins-bot [Tue, 4 Nov 2014 14:55:55 +0000 (14:55 +0000)]
Merge "Prepare repository for running RuboCop after every push to Gerrit"

9 years agoMerge "mediawiki.ui: Remove dead code from checkbox"
Prtksxna [Tue, 4 Nov 2014 12:10:39 +0000 (12:10 +0000)]
Merge "mediawiki.ui: Remove dead code from checkbox"

9 years agomediawiki.ui: Remove dead code from checkbox
Bartosz Dziewoński [Tue, 4 Nov 2014 10:14:06 +0000 (11:14 +0100)]
mediawiki.ui: Remove dead code from checkbox

This element has 'position: absolute;', which means that 'display' is
explicitly ignored and 'margin-right' doesn't do anything.

Change-Id: Id71193a522f023f30120da6742c2d05397e76fdf

9 years agoMerge "jquery.getAttrs: Replace deprecated nodeName/nodeValue with Attr.name/value"
jenkins-bot [Tue, 4 Nov 2014 09:53:11 +0000 (09:53 +0000)]
Merge "jquery.getAttrs: Replace deprecated nodeName/nodeValue with Attr.name/value"

9 years agoMerge "jquery.getAttrs: Remove compat code for IE6/IE7"
jenkins-bot [Tue, 4 Nov 2014 09:50:45 +0000 (09:50 +0000)]
Merge "jquery.getAttrs: Remove compat code for IE6/IE7"

9 years agoMerge "mw.ui:checkbox: Fix indentation and add zero before decimal"
jenkins-bot [Tue, 4 Nov 2014 09:48:57 +0000 (09:48 +0000)]
Merge "mw.ui:checkbox: Fix indentation and add zero before decimal"

9 years agoMerge "Clear DeferredUpdates state via setUp()"
jenkins-bot [Tue, 4 Nov 2014 08:39:12 +0000 (08:39 +0000)]
Merge "Clear DeferredUpdates state via setUp()"

9 years agomw.ui:checkbox: Fix indentation and add zero before decimal
Prateek Saxena [Tue, 4 Nov 2014 08:38:33 +0000 (14:08 +0530)]
mw.ui:checkbox: Fix indentation and add zero before decimal

'margin: 0 .4em;' can easily be misread as '0.4em'

Change-Id: I8cc8ad76ed9da9907809ac6c39b614ce5b0451b7

9 years agoMerge "Fix fatal error in I0349cfe0e322"
jenkins-bot [Tue, 4 Nov 2014 06:53:31 +0000 (06:53 +0000)]
Merge "Fix fatal error in I0349cfe0e322"

9 years agoFix fatal error in I0349cfe0e322
This, that and the other [Tue, 4 Nov 2014 06:44:19 +0000 (17:44 +1100)]
Fix fatal error in I0349cfe0e322

Change-Id: I4ac41d56c2e0f98cd8f026c7deac1e8ab69e8d54

9 years agoMerge "Update article count when pages are moved"
jenkins-bot [Tue, 4 Nov 2014 06:25:07 +0000 (06:25 +0000)]
Merge "Update article count when pages are moved"

9 years agoUpdate article count when pages are moved
This, that and the other [Tue, 4 Nov 2014 06:13:21 +0000 (17:13 +1100)]
Update article count when pages are moved

If a page is no longer countable (or becomes newly countable) after a move,
we need to update the site statistics (count of content pages).

Bug: 64333
Change-Id: I0349cfe0e32229706e01d654aacf8ccbe5ebabf3

9 years agoMerge "Split doc for $wgHKDFSecret/$wgHKDFAlgorithm in DefaultSettings.php"
jenkins-bot [Tue, 4 Nov 2014 05:18:44 +0000 (05:18 +0000)]
Merge "Split doc for $wgHKDFSecret/$wgHKDFAlgorithm in DefaultSettings.php"

9 years agoMerge "die() with explanation when \Psr\Log\LoggerInterface is missing"
jenkins-bot [Tue, 4 Nov 2014 02:14:12 +0000 (02:14 +0000)]
Merge "die() with explanation when \Psr\Log\LoggerInterface is missing"

9 years agoMerge "Always return string on HTMLTagFilter::getInputHTML"
jenkins-bot [Tue, 4 Nov 2014 00:44:46 +0000 (00:44 +0000)]
Merge "Always return string on HTMLTagFilter::getInputHTML"

9 years agojquery.getAttrs: Replace deprecated nodeName/nodeValue with Attr.name/value
Timo Tijhof [Tue, 4 Nov 2014 00:00:20 +0000 (00:00 +0000)]
jquery.getAttrs: Replace deprecated nodeName/nodeValue with Attr.name/value

Chrome emits the following warning:
> 'Attr.nodeValue' is deprecated. Please use 'value' instead.

Attr.nodeName and nodeValue are not part of the DOM standard.
https://dom.spec.whatwg.org/#interface-attr

Attr.name and Attr.value are supported since at least IE8.
Confirmed the unit tests passing in IE8.

Simplify and improve the unit tests for jquery.getAttrs.

Change-Id: Ic086ece34b214dede26371cbc03ede0f2af37c54

9 years agojquery.getAttrs: Remove compat code for IE6/IE7
Timo Tijhof [Mon, 3 Nov 2014 23:46:03 +0000 (23:46 +0000)]
jquery.getAttrs: Remove compat code for IE6/IE7

These browsers are given a javascriptless environment as of
MediaWiki 1.24, so these fixes are obsolete.

Change-Id: I4174c87abfa68fea7a2efce5c3cccd9dfba12922

9 years agoMerge "SpecialSearch: Use CSS instead of cellpadding and cellspacing"
jenkins-bot [Mon, 3 Nov 2014 22:03:33 +0000 (22:03 +0000)]
Merge "SpecialSearch: Use CSS instead of cellpadding and cellspacing"

9 years agoMade LogEventsList use the log bloom filter, not just the Article class
Aaron Schulz [Fri, 31 Oct 2014 21:16:06 +0000 (14:16 -0700)]
Made LogEventsList use the log bloom filter, not just the Article class

Change-Id: I6c523d4ecd60dab080537cabc5aa1c632950e018

9 years agoClear DeferredUpdates state via setUp()
Erik Bernhardson [Mon, 3 Nov 2014 21:40:49 +0000 (13:40 -0800)]
Clear DeferredUpdates state via setUp()

Best practices for phpunit say 'more setUp, less tearDown' which typically means
that tests are not responsible for cleaning up after themselves, rather tests
are in charge of setting the world up exactly as they expect it.  Part of this
expectation is that mediawiki does not maintain state between tests.

This patch clears DeferredUpdates from MediaWikiTestCase::setUp() because it has
internal global state.  This prevents state from leaking between test cases.

Bug: 72922
Change-Id: I57e6e89aa51c78bbf9d7f5151122b9e267d1a03e

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 3 Nov 2014 21:37:46 +0000 (22:37 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib66157ca40c41a506889bbd0bd5be48d26f1e8a5

9 years agoUpdate OOjs UI to v0.1.0-pre (571f26d0ab)
James D. Forrester [Mon, 3 Nov 2014 21:02:19 +0000 (13:02 -0800)]
Update OOjs UI to v0.1.0-pre (571f26d0ab)

New changes:
8ada8cd OOUI PHP: Use 'OOUI' namespace instead of 'OoUi' class name prefix
4c56ad5 More random documentation fixes
3eb27b9 Recompute ComboBox selection when adding/removing items
e596cc5 Followup d3367bb: make FieldsetLayout <label>s display: block;

Change-Id: I5525a6285f4f24fa0fd997482c1735bef5639dc6

9 years agoUserLogin: Allow extensions to add valid error messages
Florianschmidtwelzow [Sat, 1 Nov 2014 16:09:58 +0000 (17:09 +0100)]
UserLogin: Allow extensions to add valid error messages

Add hook LoginFormValidErrorMessages to allow extensions, to add own valid
error messages to redirect to the login form.

Bug: 71769
Change-Id: I9e996a88e3972f09946726060916a21124de049c

9 years agoresourceloader: Document that WikiModule::getDB() may return IDatabase
Aaron Schulz [Mon, 3 Nov 2014 17:45:27 +0000 (09:45 -0800)]
resourceloader: Document that WikiModule::getDB() may return IDatabase

Change-Id: I97d604c5fab38f379adcc76412bd5ee23294b300

9 years agodie() with explanation when \Psr\Log\LoggerInterface is missing
Bryan Davis [Fri, 31 Oct 2014 00:51:06 +0000 (18:51 -0600)]
die() with explanation when \Psr\Log\LoggerInterface is missing

Add an explicit check for the \Psr\Log\LoggerInterface in the source
file that declares MWLogger and `die()` with an explanation and links to
documentation if the interface is not present.

MediaWiki requires the PSR-3 logging library to be present in the PHP
search path or via an autoloader after I1e5596d. The composer.json for
MediaWiki requires the necessary library, but usage of Composer with
MediaWiki is not wide spread yet and users may be caught unaware by the
new dependency. The default log messages generated when PHP fails to
load the required interfaces and classes are not instructive as to how
to correct the problem.

Bug: 72777
Change-Id: I3db489702ed5d7973c6b5963eac22f181ca28c72

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 2 Nov 2014 20:36:34 +0000 (21:36 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I27336a12f5060a5169499be5d8046441e65cc091

9 years agoTypo: atleast -> at least
umherirrender [Sun, 2 Nov 2014 17:53:00 +0000 (18:53 +0100)]
Typo: atleast -> at least

Change-Id: I088202fd93ecdf8a4ff8e9661166ffc933df4e87

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 1 Nov 2014 21:01:45 +0000 (22:01 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ica56c4b68c85b9acfe7b0653b9eba817c6b000ba

9 years agoRemove trailing whitespace from api.php's HTML output
MZMcBride [Sat, 1 Nov 2014 04:48:10 +0000 (00:48 -0400)]
Remove trailing whitespace from api.php's HTML output

Change-Id: Ib00948dfcb94272e0809d3f732b03f2b5365b65d

9 years agoSpecialSearch: Use CSS instead of cellpadding and cellspacing
Prateek Saxena [Fri, 31 Oct 2014 09:40:16 +0000 (15:10 +0530)]
SpecialSearch: Use CSS instead of cellpadding and cellspacing

Bug: 72458
Change-Id: I976a7046b5a1b3b5cd87241e283c87bcaac93c3f

9 years agoAdd test cases to SpecialPageFactoryTest for registration via callback
aude [Thu, 25 Sep 2014 16:05:19 +0000 (18:05 +0200)]
Add test cases to SpecialPageFactoryTest for registration via callback

Change-Id: I9785e64d8daf27abca063f2bc584297db275c2db

9 years agoUpdate OOjs UI to v0.1.0-pre (eee616d664)
James D. Forrester [Fri, 31 Oct 2014 23:24:10 +0000 (16:24 -0700)]
Update OOjs UI to v0.1.0-pre (eee616d664)

New changes:
f2e316a JS/PHP comparison test suite tweaks
d6dbeb1 [BREAKING CHANGE] Rename InlineMenuWidget → DropdownWidget
2c53fc3 ButtonElement: Add 'font-family: inherit;' to support ButtonInputWidgets
ac42c94 More documentation tweaks
71b3ebc FieldLayout: Add 'help' config option support to PHP
5265427 OOUI PHP: Support RTL text direction
9204727 Clean up horrible things in LookupInputWidget

Change-Id: Ifb7ffb180033422b5c3abfe56eb63a5b44d6789e

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 31 Oct 2014 20:19:30 +0000 (21:19 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I6ddeb1b9437ab29914407c76bcd9ab2b1d611d4e

9 years agoMerge "hhvm: fix FormatJsonTest::testParseTryFixing for lenient json parser"
jenkins-bot [Fri, 31 Oct 2014 17:54:01 +0000 (17:54 +0000)]
Merge "hhvm: fix FormatJsonTest::testParseTryFixing for lenient json parser"

9 years agohhvm: fix FormatJsonTest::testParseTryFixing for lenient json parser
Bryan Davis [Thu, 30 Oct 2014 23:22:08 +0000 (17:22 -0600)]
hhvm: fix FormatJsonTest::testParseTryFixing for lenient json parser

Bug: 72778
Change-Id: I147e0c2107c4d74d2d50ede91d329d524b1f0798

9 years agoChange position of <model> and <format> tags in XML dumps.
daniel [Fri, 24 Oct 2014 13:48:20 +0000 (15:48 +0200)]
Change position of <model> and <format> tags in XML dumps.

Bug: 72417
Change-Id: I1d11ce8147cf0bf0018e3931202f533afd4ea93e

9 years agoMerge "Allow /-/ in MediaWikiVersionFetcher::fetchVersion"
jenkins-bot [Fri, 31 Oct 2014 15:02:58 +0000 (15:02 +0000)]
Merge "Allow /-/ in MediaWikiVersionFetcher::fetchVersion"

9 years agoMerge "Remove double semicolon"
jenkins-bot [Fri, 31 Oct 2014 11:30:00 +0000 (11:30 +0000)]
Merge "Remove double semicolon"

9 years agoAlways return string on HTMLTagFilter::getInputHTML
umherirrender [Fri, 31 Oct 2014 10:58:57 +0000 (11:58 +0100)]
Always return string on HTMLTagFilter::getInputHTML

Follow-Up: I5c03dc543b910aab27a26a5a223341be50893cf3
Change-Id: I0bb0f2e2c95543089fbc3b12ebf45f93f9a90efc

9 years agoSplit doc for $wgHKDFSecret/$wgHKDFAlgorithm in DefaultSettings.php
umherirrender [Fri, 31 Oct 2014 10:54:44 +0000 (11:54 +0100)]
Split doc for $wgHKDFSecret/$wgHKDFAlgorithm in DefaultSettings.php

Each variable should have it own doc block.

Change-Id: Ided1073fddc17e80ddbc556c5f88c422d77cf120

9 years agoFix doc of WikiPageTest::newPage
umherirrender [Fri, 31 Oct 2014 10:44:16 +0000 (11:44 +0100)]
Fix doc of WikiPageTest::newPage

Change-Id: Id60db0ede2f2ead8a1cd524f26bcb87cfbd0b604

9 years agoAllow /-/ in MediaWikiVersionFetcher::fetchVersion
umherirrender [Fri, 31 Oct 2014 09:33:40 +0000 (10:33 +0100)]
Allow /-/ in MediaWikiVersionFetcher::fetchVersion

Alters MediaWikiVersionFetcher::fetchVersion() so that tests allow
versions to use Semantic Versioning (http://semver.org/)

See I2255ac2999ad207203fa6514f2e1b23f5d7965d7 for the fix in REL1_24

Change-Id: I6e9e154f864e771a02ae1da0e1530afe7f8a4cd0

9 years agoMerge "API: Fix simplified continuation module skipping"
jenkins-bot [Thu, 30 Oct 2014 23:23:47 +0000 (23:23 +0000)]
Merge "API: Fix simplified continuation module skipping"

9 years agoRemove collateOnly() from ProfilerStandard and subclasses
Chad Horohoe [Thu, 30 Oct 2014 22:18:22 +0000 (15:18 -0700)]
Remove collateOnly() from ProfilerStandard and subclasses

All implementations had this set to true, so remove the needless
abstraction and function calls. Child classes that do want to
differentiate here can just set the member variable on construction.

Change-Id: I81a4e6605bdec1fc1a977b5aa1ee1c5853d5ca5b

9 years agoMerge "Import.php: Use Config instead of globals"
jenkins-bot [Thu, 30 Oct 2014 22:42:00 +0000 (22:42 +0000)]
Merge "Import.php: Use Config instead of globals"

9 years agoRemove ProfileMwprof
Chad Horohoe [Thu, 30 Oct 2014 18:55:11 +0000 (11:55 -0700)]
Remove ProfileMwprof

An interesting experiment, but it was never completely fleshed out
and represents an anti-pattern as the only class that doesn't follow
the Profiler -> ProfilerStandard inheritance.

Since we want to refactor this to split profiling and profiling output
we need this unused but difficult to refactor code gone.

Maybe in the future after things are refactored and someone has the
time or inclination this could be dusted off again.

Change-Id: I1fd8813894e1fe88652b0c17b5ad8f42666bf776

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Thu, 30 Oct 2014 21:13:26 +0000 (21:13 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoMerge "mediawiki.api: Transform arrays with join('|') in query parameters"
jenkins-bot [Thu, 30 Oct 2014 21:09:23 +0000 (21:09 +0000)]
Merge "mediawiki.api: Transform arrays with join('|') in query parameters"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 30 Oct 2014 21:03:56 +0000 (22:03 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I44200ac58db6e3a43bf305b9ec16039af7cfb960

9 years agoMerge "Fixed spacing"
jenkins-bot [Thu, 30 Oct 2014 20:09:54 +0000 (20:09 +0000)]
Merge "Fixed spacing"

9 years agoMerge "Fully replace Title::moveTo() with MovePage"
jenkins-bot [Thu, 30 Oct 2014 20:06:27 +0000 (20:06 +0000)]
Merge "Fully replace Title::moveTo() with MovePage"

9 years agoMerge "Add LinkBatch to Special:LinkSearch"
jenkins-bot [Thu, 30 Oct 2014 19:56:02 +0000 (19:56 +0000)]
Merge "Add LinkBatch to Special:LinkSearch"

9 years agoAdd executable rights for executable (bash) files
Southparkfan [Thu, 30 Oct 2014 19:00:50 +0000 (15:00 -0400)]
Add executable rights for executable (bash) files

I hope these are the last ones.

Change-Id: I281531d8f90932b2cb4a8a99554d4b80607fbaee

9 years agoAPI: Add doc warning to ApiPageSet::populateFromQueryResult
Brad Jorsch [Thu, 30 Oct 2014 17:23:09 +0000 (13:23 -0400)]
API: Add doc warning to ApiPageSet::populateFromQueryResult

The cause of bug 72764 was an extension misusing
ApiPageSet::populateFromQueryResult(). Add a warning in the docs for
that method about proper usage.

Bug: 72764
Change-Id: I5b0a069d796f7f41ab0b16048d7b3d6600207383

9 years agochmod 755 bash & Perl files, chmod 644 .css file
Southparkfan [Fri, 24 Oct 2014 18:12:46 +0000 (14:12 -0400)]
chmod 755 bash & Perl files, chmod 644 .css file

Bug: 71972
Change-Id: I16d6ffde113838fc431bffaf00be1574d5a0303a

9 years agoAPI: Actually use api-help-param-no-description
Brad Jorsch [Tue, 28 Oct 2014 17:23:34 +0000 (13:23 -0400)]
API: Actually use api-help-param-no-description

If $description is array( '' ), that should still trigger display of the
message.

Change-Id: Ifeb62d3c139e457ad6cfaddadc2a99d39f99948f

9 years agoMerge "Require PHP >= 5.3.3"
Kunal Mehta [Thu, 30 Oct 2014 17:56:08 +0000 (17:56 +0000)]
Merge "Require PHP >= 5.3.3"

9 years agoMerge "Update OOjs UI to v0.1.0-pre (da4b0d5c14)"
jenkins-bot [Thu, 30 Oct 2014 17:46:30 +0000 (17:46 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (da4b0d5c14)"

9 years agoAPI: Fix simplified continuation module skipping
Brad Jorsch [Thu, 30 Oct 2014 17:30:45 +0000 (13:30 -0400)]
API: Fix simplified continuation module skipping

The simplified continuation includes a continuation parameter to
indicate when the prop/list/meta modules are complete, so it can skip
executing them.

But if someone submitted a malformed value for 'continue', it might
decide that the generator was complete but still try to uselessly
execute the prop modules.

Bug: 72764
Change-Id: I6af24e5d4f30e64782fb7dd1c2211ebdd4ec2317

9 years agoRequire PHP >= 5.3.3
Kunal Mehta [Fri, 24 Oct 2014 01:21:50 +0000 (18:21 -0700)]
Require PHP >= 5.3.3

Bug: T839
Change-Id: Iac827ef8505ff0653a40e45d759b0f79619351ee

9 years agoRemove double semicolon
umherirrender [Thu, 30 Oct 2014 16:58:21 +0000 (17:58 +0100)]
Remove double semicolon

Change-Id: I96b6210d24ee110327feef01907d81630c9fb330

9 years agoFixed spacing
umherirrender [Thu, 30 Oct 2014 16:50:19 +0000 (17:50 +0100)]
Fixed spacing

- Changed spaces to tabs for indentation
- space after 'function'/'if'
- Added/Removed space after parenthesis/brackets/end of line
- Removed space after cast

Change-Id: I0e8e6a19b84b5e1308b632a0266cb78f688494ee

9 years agoParse 'upload_source_url' message on SpecialUpload
Marius Hoch [Tue, 28 Oct 2014 20:30:34 +0000 (21:30 +0100)]
Parse 'upload_source_url' message on SpecialUpload

Commons wants to use wikitext over there:
https://commons.wikimedia.org/wiki/MediaWiki:Upload_source_url

Change-Id: I7625fb58388de901b93744aa6d21de433f671483

9 years agoMerge "Add a note when the return value was added to mediawiki.loader.using"
jenkins-bot [Thu, 30 Oct 2014 09:05:51 +0000 (09:05 +0000)]
Merge "Add a note when the return value was added to mediawiki.loader.using"

9 years agoMerge "Support for message function in confirmCloseWindow"
jenkins-bot [Thu, 30 Oct 2014 08:43:15 +0000 (08:43 +0000)]
Merge "Support for message function in confirmCloseWindow"

9 years agoAdd a note when the return value was added to mediawiki.loader.using
Niklas Laxström [Thu, 30 Oct 2014 07:59:24 +0000 (08:59 +0100)]
Add a note when the return value was added to mediawiki.loader.using

Change-Id: I090b0cdb7be57d6cd93318ee28cab434a0d484f4

9 years agoAdd LinkBatch to Special:LinkSearch
umherirrender [Fri, 26 Sep 2014 18:47:42 +0000 (20:47 +0200)]
Add LinkBatch to Special:LinkSearch

When building the result list, each link results in a database query.
The select is on the page table, so it is known, that each page exists,
but using Linker::linkKnown does not prepare the link for stubthreshold
or redirect marker.

Change-Id: I8f73d398f510f252ac8d5a0fd04ccb0feaf79cc4

9 years agoMerge "Fix creating non-parameterized hashes in ParameterizedPassword"
jenkins-bot [Thu, 30 Oct 2014 00:17:07 +0000 (00:17 +0000)]
Merge "Fix creating non-parameterized hashes in ParameterizedPassword"

9 years agoUpdate OOjs UI to v0.1.0-pre (da4b0d5c14)
James D. Forrester [Thu, 30 Oct 2014 00:10:22 +0000 (17:10 -0700)]
Update OOjs UI to v0.1.0-pre (da4b0d5c14)

New changes:
e830a4d Conf for doxygen based PHP doc
80ecf60 Semiautomatically compare and synchronise JS and PHP docs
521fa21 Move 'readOnly' from InputWidget to TextInputWidget
9130eb3 OoUiTag: HTML-escape everything by default
0488141 Generate and run a JS/PHP comparison test suite
c552fea ButtonInputWidget: Explicitly disallow setting value when using <input/>
ab69d96 Apex, MediaWiki themes: Move colour definitions into LESS variables
d3367bb Turn FieldLayout into a <label/>
8a38c10 Provide abstract getLookupCacheItemFromData in LookupInputWidget
da4b0d5 Set input/menu widgets to have a max-width expanding to 100% rather than hard-coded

Change-Id: Id3e280a03fc305dc5cb706bc1208246275d169cb

9 years agoFixed possible db error log spam when cluster=* in wfWaitForSlaves()
Aaron Schulz [Wed, 29 Oct 2014 23:36:55 +0000 (16:36 -0700)]
Fixed possible db error log spam when cluster=* in wfWaitForSlaves()

Change-Id: Idd385cddb0fa9f56bddc46d41ae584ca65bc45ed

9 years agoMerge "resourceloader: Add support for delivering templates"
jenkins-bot [Wed, 29 Oct 2014 20:58:57 +0000 (20:58 +0000)]
Merge "resourceloader: Add support for delivering templates"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 29 Oct 2014 20:37:18 +0000 (21:37 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I7ffe726ba42ee3e2ab55cc9088017c84348ed9c9

9 years agotest: Check banana status for includes/api/i18n/* too
James D. Forrester [Wed, 29 Oct 2014 20:07:10 +0000 (13:07 -0700)]
test: Check banana status for includes/api/i18n/* too

Change-Id: I9244130eea50abe200abd06a4576a001067919f1

9 years agoresourceloader: Add support for delivering templates
jdlrobson [Fri, 10 Oct 2014 00:07:14 +0000 (17:07 -0700)]
resourceloader: Add support for delivering templates

A base ResourceLoaderModule::getTemplates() exists for subclasses
to override. An implementation is provided for ResourceLoaderFileModule.

For file modules, templates can be specified in the following manner:

'example' => array(
'templates' => array(
'bar' => 'templates/foo.html',
),
'scripts' => 'example.js',
),

The delivery system is template language agnostic, and currently
only supports "compiling" plain HTML templates.

This also adds template support to the following modules as a POC:
* mediawiki.feedback
* mediawiki.action.view.postEdit
* mediawiki.special.upload

Works with $wgResourceLoaderStorageEnabled

Change-Id: Ia0c5c8ec960aa6dff12c9626cee41ae9a3286b76

9 years agoUse MWLogger logging for legacy logging methods
Bryan Davis [Fri, 21 Mar 2014 05:01:24 +0000 (23:01 -0600)]
Use MWLogger logging for legacy logging methods

Send wfDebug, wfDebugLog, wfLogDBError and wfLogDBError log messages to
the new MWLogger PSR-3 logger subsystem. Compatibility with the historic
logging operations of wfLogDBError are provided by MWLoggerLegacyLogger
and the MWLoggerLegacySpi logger factory.

Requires the MWLogger system introduced in I5c82299 and the Composer
managed libraries from Ie667944.

Change-Id: I1e5596d590144fbfdfd5f18bc42cf1ef0dbcac12

9 years agoSupport for message function in confirmCloseWindow
Mark Holmquist [Wed, 29 Oct 2014 18:30:54 +0000 (13:30 -0500)]
Support for message function in confirmCloseWindow

Change-Id: Iffe106cfc5430aaeb2c56b83316116b2c5dd5835

9 years agoMerge "Add more detailed upload stash error messages"
jenkins-bot [Wed, 29 Oct 2014 17:40:53 +0000 (17:40 +0000)]
Merge "Add more detailed upload stash error messages"

9 years agoFix spelling mistake: s/databses/database
Southparkfan [Wed, 29 Oct 2014 17:12:45 +0000 (13:12 -0400)]
Fix spelling mistake: s/databses/database

Change-Id: Id532b3724792eff5849813888533c251b99edc82

9 years agoAPI: Fix access on getExamplesMessages
Brad Jorsch [Tue, 28 Oct 2014 17:17:02 +0000 (13:17 -0400)]
API: Fix access on getExamplesMessages

ApiBase declares it protected, but for some reason I had made it public
in all subclasses.

Change-Id: I8a50d4f47e66c7f09137968d3941dc5cdc1d28e4

9 years agoSwitch to LOCK IN SHARE MODE in recordUpload2()
Aaron Schulz [Sun, 19 Oct 2014 02:47:22 +0000 (19:47 -0700)]
Switch to LOCK IN SHARE MODE in recordUpload2()

* We just need the latest data; the advisory locking in lock()
  already manages mutual exclusion.

Change-Id: I9af7a892b2dcafd30149332b0084f61d117c9cad

9 years agoRemove back-compat profiling configuration
Chad Horohoe [Wed, 29 Oct 2014 00:20:39 +0000 (17:20 -0700)]
Remove back-compat profiling configuration

This old style was deprecated like 3 or 4 releases ago

Change-Id: Ic61424aacb376151019a08ade214fea655d82a3f

9 years agomediawiki.api: Transform arrays with join('|') in query parameters
saper [Sun, 5 Oct 2014 23:52:19 +0000 (01:52 +0200)]
mediawiki.api: Transform arrays with join('|') in query parameters

Bug: 64570
Change-Id: Ie8ea48712dc7b726266e25080b2931aebe659f0d

9 years agoMerge "Deprecate internal ORMTable::unprefixFieldName(s)"
jenkins-bot [Tue, 28 Oct 2014 21:41:19 +0000 (21:41 +0000)]
Merge "Deprecate internal ORMTable::unprefixFieldName(s)"

9 years agoMerge "CoreTagHooks: Use parse() for output to HTML rather than text()"
jenkins-bot [Tue, 28 Oct 2014 20:46:44 +0000 (20:46 +0000)]
Merge "CoreTagHooks: Use parse() for output to HTML rather than text()"

9 years agoCoreTagHooks: Use parse() for output to HTML rather than text()
Bartosz Dziewoński [Tue, 28 Oct 2014 19:57:47 +0000 (20:57 +0100)]
CoreTagHooks: Use parse() for output to HTML rather than text()

Change-Id: I9f28afe185a24883fb575dd6df8a23c4ab233b64

9 years agoFully replace Title::moveTo() with MovePage
Kunal Mehta [Sat, 11 Oct 2014 05:43:02 +0000 (22:43 -0700)]
Fully replace Title::moveTo() with MovePage

* AbortMove hook is removed in favor of two more specificly focused
  hooks: MovePageCheckPermissions and MovePageIsValidMove.
** MovePageIsValidMove is for extensions to specify whether a page
   cannot be moved for technical reasons, and should not be
   overridden.
** MovePageCheckPermissions is for checking whether the given user
   is allowed to make the move.

* Title::moveNoAuth() deprecated
* Title::moveTo() deprecated
* Title::isValidMoveOperation() broken down into
  MovePage::isValidMove() and MovePage::checkPermissions().

* Title::getTitleProtection() is now public, and returns
  unprefixed fields

Change-Id: Ic5026384b92a0d68d628397ffe1de6e5b6183f02

9 years agoMerge "Update OOjs UI to v0.1.0-pre (deccd11549)"
jenkins-bot [Tue, 28 Oct 2014 17:30:55 +0000 (17:30 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (deccd11549)"

9 years agoMerge "Localisation updates from https://translatewiki.net."
jenkins-bot [Tue, 28 Oct 2014 17:30:52 +0000 (17:30 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 28 Oct 2014 17:22:52 +0000 (18:22 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I56c63f14f34232741d1f6a3bdb3b64b2cd45e609

9 years agoUpdate OOjs UI to v0.1.0-pre (deccd11549)
James D. Forrester [Tue, 28 Oct 2014 16:52:31 +0000 (09:52 -0700)]
Update OOjs UI to v0.1.0-pre (deccd11549)

New changes:
be1f468 Localisation updates from https://translatewiki.net.
de6d500 Localisation updates from https://translatewiki.net.
049b28f Localisation updates from https://translatewiki.net.
a926d7d Fix a number of documentation syntax issues throughout the codebase
df625c4 Use primary colours for progress bar
d721cc1 Localisation updates from https://translatewiki.net.
c3aa4e1 [BREAKING CHANGE] Apply font-size: 0.8em; to non-isolated windows too
140509d [BREAKING CHANGE] If no $overlay is specified, default to this.$element
deccd11 Localisation updates from https://translatewiki.net.

Change-Id: Idf1f1c047dd414edc8cb80a6187055fc811dc95e

9 years agoMerge "ApiHelp: Fix PHP notice when "wrap" parameter is provided"
jenkins-bot [Tue, 28 Oct 2014 15:15:55 +0000 (15:15 +0000)]
Merge "ApiHelp: Fix PHP notice when "wrap" parameter is provided"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 28 Oct 2014 14:08:16 +0000 (15:08 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I24b13302922d658dc555df91bd1a460027f7f76d

9 years agoMerge "Update plural data to CLDR 26"
jenkins-bot [Tue, 28 Oct 2014 08:52:21 +0000 (08:52 +0000)]
Merge "Update plural data to CLDR 26"

9 years agoApiHelp: Fix PHP notice when "wrap" parameter is provided
Kevin Israel [Tue, 28 Oct 2014 06:48:49 +0000 (02:48 -0400)]
ApiHelp: Fix PHP notice when "wrap" parameter is provided

An incorrect variable name was used, so the "help" property of
the "help" object in the output was merely encoded as null.

Change-Id: Ia1a8c8ad4515e216998d4975aad3555f87d24380

9 years agodocs/database.txt: Don't mention $wgAntiLockFlags
Kevin Israel [Tue, 28 Oct 2014 03:32:22 +0000 (23:32 -0400)]
docs/database.txt: Don't mention $wgAntiLockFlags

Setting was removed in 12757b50f8da and is no longer used
on the Wikimedia cluster.

Change-Id: I0a6e0c029d3246f7a5a229411e66949469ab941e

9 years agoMerge "HTMLForm: Only apply cloner click event to form elements, not containing divs"
jenkins-bot [Mon, 27 Oct 2014 21:38:03 +0000 (21:38 +0000)]
Merge "HTMLForm: Only apply cloner click event to form elements, not containing divs"

9 years agoMerge "Maintenance script to clean up mismatched user names in ipblocks"
jenkins-bot [Mon, 27 Oct 2014 21:00:49 +0000 (21:00 +0000)]
Merge "Maintenance script to clean up mismatched user names in ipblocks"

9 years agoMerge "Use Parser::OT_PREPROCESS class const"
jenkins-bot [Mon, 27 Oct 2014 19:59:03 +0000 (19:59 +0000)]
Merge "Use Parser::OT_PREPROCESS class const"

9 years agoAdd more detailed upload stash error messages
Mark Holmquist [Fri, 24 Oct 2014 19:33:05 +0000 (14:33 -0500)]
Add more detailed upload stash error messages

There are seven (used) error types in the stash class, and we umbrella'd
them all into one error message, which is mighty silly. This should give
us more information.

Also added to the mw.Api.errors list so UploadWizard can handle them.

Change-Id: I79bf0c29a4cef19363d111cc1128e35256ae572a

9 years agoMerge "Validate cmstarthexsortkey/cmendhexsortkey to be valid hex"
jenkins-bot [Mon, 27 Oct 2014 19:17:13 +0000 (19:17 +0000)]
Merge "Validate cmstarthexsortkey/cmendhexsortkey to be valid hex"