lhc/web/wiklou.git
7 years agoMerge "DateTimeInputWidget: Only show calendar when focusing date components, not...
jenkins-bot [Tue, 3 Jan 2017 20:27:47 +0000 (20:27 +0000)]
Merge "DateTimeInputWidget: Only show calendar when focusing date components, not time components"

7 years agoApiClearHasMsg: Clean up after I341b395e
Brad Jorsch [Tue, 3 Jan 2017 19:23:32 +0000 (14:23 -0500)]
ApiClearHasMsg: Clean up after I341b395e

Since I341b395e, $this->getRequest()->wasPosted() should never be false.
So don't bother testing for it.

Change-Id: Iccc60424ed5442d950f4968297fdd18001b3a02a

7 years agoMerge "tests: speed up fetchTextTest"
jenkins-bot [Tue, 3 Jan 2017 16:54:45 +0000 (16:54 +0000)]
Merge "tests: speed up fetchTextTest"

7 years agoProper instantiating of QueryPage special pages in QueryAllSpecialPagesTest
Amir Sarabadani [Tue, 3 Jan 2017 15:59:16 +0000 (19:29 +0330)]
Proper instantiating of QueryPage special pages in QueryAllSpecialPagesTest

Change-Id: If4420067011da756b8a36917f1c35fd2d380dae9

7 years agoMerge "Remove unused static methods in LanguageConverter subclasses"
jenkins-bot [Tue, 3 Jan 2017 15:21:50 +0000 (15:21 +0000)]
Merge "Remove unused static methods in LanguageConverter subclasses"

7 years agoMerge "Do not try to change directory when running Phan tests with no params"
jenkins-bot [Tue, 3 Jan 2017 15:15:58 +0000 (15:15 +0000)]
Merge "Do not try to change directory when running Phan tests with no params"

7 years agoDisable statistics update on import with maintenance/importDump.php
Subin Siby [Tue, 3 Jan 2017 14:35:34 +0000 (20:05 +0530)]
Disable statistics update on import with maintenance/importDump.php

Disable updating statistics in importDump.php to quickly finish imports from command line.

Bug: T144600
Change-Id: Ib827c068fb20cc03aab47e3106d489f18be1dac6

7 years agotests: speed up fetchTextTest
Antoine Musso [Tue, 3 Jan 2017 14:39:27 +0000 (15:39 +0100)]
tests: speed up fetchTextTest

The test is adding/resetting database data on every tests, however it is
not necessary.

Switch from addDBData to addDBDataOnce.
Drop the tablesUsed[] additions, they are not needed and trigger a
resetDB().
Change the textId### variables tracking created revisions to static
variables so they are kept between tests.

On my setup the test run time goes down from 1.7 sec to 0.5 sec.

Change-Id: Ibd3183b7fbf7dcf2c0c6d1268e1b94b11919cbf3

7 years agoAdd reciprocal language fallback for nn and nb (Norwegian)
Federico Leva [Fri, 30 Dec 2016 16:14:10 +0000 (17:14 +0100)]
Add reciprocal language fallback for nn and nb (Norwegian)

https://translatewiki.net/wiki/Thread:Portal_talk:Nb/Language_fallbacks

Change-Id: I597e317ef33758dba8eaa9d6dd458ea3922e3f33

7 years agoRemove unused static methods in LanguageConverter subclasses
Leszek Manicki [Tue, 3 Jan 2017 14:13:51 +0000 (15:13 +0100)]
Remove unused static methods in LanguageConverter subclasses

It seems LanguageConverter::parseManualRule was removed by
69dbeb97f15b65dd5773852d76c3bc93caefc862 (2008),
and LanguageConverter::parserConvert by
c568220e610177114e71973375514d33871d6345 (2010),
so it seems safe and reasonable to remove their implementations
from few remaining language-specific Converter classes.

Change-Id: I7092f5c8856723fabd2b1f99944451344feb5711

7 years agoDo not try to change directory when running Phan tests with no params
Leszek Manicki [Tue, 3 Jan 2017 10:22:05 +0000 (11:22 +0100)]
Do not try to change directory when running Phan tests with no params

When running tests with:
PHAN=/path/to/phan/phan /path/to/mediawiki-core/tests/phan/bin/phan
the script changes to the home dir (does "cd" with no param),
which results in git error message (unless the home dir happens
to be a git repository).

Change-Id: Ib11e419fb5cca51ceaed0e9c7c86ae9c5c4ae0f2

7 years agoMerge "Converted Special:Tags to OOUI"
jenkins-bot [Tue, 3 Jan 2017 09:36:38 +0000 (09:36 +0000)]
Merge "Converted Special:Tags to OOUI"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 3 Jan 2017 08:41:42 +0000 (09:41 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I3c2e46f88790b464af07c50531fecaa8bb378ab5

7 years agoMerge "Added $wgHTTPImportTimeout setting"
jenkins-bot [Tue, 3 Jan 2017 06:54:56 +0000 (06:54 +0000)]
Merge "Added $wgHTTPImportTimeout setting"

7 years agoAdded $wgHTTPImportTimeout setting
rlot [Mon, 2 Jan 2017 19:00:53 +0000 (20:00 +0100)]
Added $wgHTTPImportTimeout setting

Bug: T17000
Change-Id: Ic97ae4faec173c32af38df4554831dca7068226b

7 years agoFully deprecate 'ContentAction' hook
rlot [Mon, 2 Jan 2017 13:48:31 +0000 (14:48 +0100)]
Fully deprecate 'ContentAction' hook

Bug: T54027
Change-Id: Ia765e25a9f76b34f7b10125d3b6e0c8e00fac2ca

7 years agoAdd tags support to userrights
Yuriy Shnitkovskiy [Mon, 2 Jan 2017 11:26:36 +0000 (13:26 +0200)]
Add tags support to userrights

Bug: T97720
Change-Id: I4f6dacd0ddf7b45d62aff6f85c329bc15be27daf

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 2 Jan 2017 08:52:49 +0000 (09:52 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I25c8759845c580058ec97bd49dfe6189ef671c36

7 years agoMerge "mediawiki.requestIdleCallback: Improve documentation"
jenkins-bot [Mon, 2 Jan 2017 08:08:21 +0000 (08:08 +0000)]
Merge "mediawiki.requestIdleCallback: Improve documentation"

7 years agoMerge "RaggettWrapper: Don't use ReplacementArray"
jenkins-bot [Mon, 2 Jan 2017 08:06:00 +0000 (08:06 +0000)]
Merge "RaggettWrapper: Don't use ReplacementArray"

7 years agoMerge "Add `showThumbnails` option to slideshow galleries"
jenkins-bot [Mon, 2 Jan 2017 07:06:52 +0000 (07:06 +0000)]
Merge "Add `showThumbnails` option to slideshow galleries"

7 years agoConverted Special:Tags to OOUI
awu42 [Sun, 1 Jan 2017 23:16:30 +0000 (18:16 -0500)]
Converted Special:Tags to OOUI

Updated forms to use OOUI with HTMLForm::factory()

Bug: T117742
Change-Id: I6ec8dd59af482ed22ac3bee29c35d4a056540ac2

7 years agoAvoid passing $this by reference in hooks
Yuriy Shnitkovskiy [Sun, 1 Jan 2017 23:07:11 +0000 (01:07 +0200)]
Avoid passing $this by reference in hooks

Renamed $this passed by reference usages in hooks inside includes directory

Bug: T153505
Change-Id: Ib3e6a288a423958e75b5c1bfe53dc29e0f3fee6d

7 years agoMerge "Replace mocks of DatabaseMysql by DatabaseMysqli"
jenkins-bot [Sun, 1 Jan 2017 20:16:50 +0000 (20:16 +0000)]
Merge "Replace mocks of DatabaseMysql by DatabaseMysqli"

7 years agoMerge "jquery.tablesorter: Sort invalid elements as -Infinity"
jenkins-bot [Sun, 1 Jan 2017 18:56:09 +0000 (18:56 +0000)]
Merge "jquery.tablesorter: Sort invalid elements as -Infinity"

7 years agojquery.tablesorter: Sort invalid elements as -Infinity
Derk-Jan Hartman [Fri, 30 Dec 2016 13:10:32 +0000 (14:10 +0100)]
jquery.tablesorter: Sort invalid elements as -Infinity

NaN is problematic when sorting. We used 0 before, but that means that
these items get mixed in between 0 elements or in the middle of a column
when it has both negative and positive numbers. Therefore sort as
-Infinity instead, which is a proper number and will always sort to the
edge.

Bug: T154307
Change-Id: I4837669205a6c6d470f19b26d721efd2ccdcc3a0

7 years agoRemoved deprecated Title::moveNoAuth function
awu42 [Sat, 31 Dec 2016 19:14:43 +0000 (14:14 -0500)]
Removed deprecated Title::moveNoAuth function

(deprecated since 1.25)

Bug: T61113
Change-Id: I7a007dd87ea3bcbb1121738c84b0e654ba17ccbf

7 years agoRemoved deprecated class ImageGallery
divadsn [Sat, 31 Dec 2016 13:16:03 +0000 (13:16 +0000)]
Removed deprecated class ImageGallery

Bug: T61113
Change-Id: If315002ef7d1a3937f150d0dda930976c1d95f57

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 1 Jan 2017 09:30:42 +0000 (10:30 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iedf2413090c44a301cae52973264cc35f81a0f7b

7 years agoRemove WebRequest::checkSessionCookie() method as being deprecated
Victor Barbu [Wed, 28 Dec 2016 21:41:30 +0000 (23:41 +0200)]
Remove WebRequest::checkSessionCookie() method as being deprecated

Bug: T61113
Change-Id: I5285dbfc47d6429e16b7e7839bf55d48320d0bf0

7 years agoFix wrong class name for ImageGalleryBase in comments
divadsn [Sat, 31 Dec 2016 13:37:59 +0000 (13:37 +0000)]
Fix wrong class name for ImageGalleryBase in comments

This change is part of change 329773.

Change-Id: I2766e2ff3e64a84f52a5d7fa065bbc38280866c1

7 years agoReplace mocks of DatabaseMysql by DatabaseMysqli
Seb35 [Sat, 31 Dec 2016 11:52:16 +0000 (12:52 +0100)]
Replace mocks of DatabaseMysql by DatabaseMysqli

The class DatabaseMysql corresponds to the PHP extension 'mysql' which is
deprecated since PHP 5.5, and the class DatabaseMysqli corresponds to the
PHP extension 'mysqli' which is the current MySQL driver. Given the class
DatabaseMysql is likely to be removed in the future, this change is a
first step towards this.

Bug: T120333
Change-Id: I7b8363838449cae09b360221d8f50ace3a008f11

7 years agoMerge "TitleValue: Include the invalid DB key in the message when throwing"
jenkins-bot [Sat, 31 Dec 2016 11:10:46 +0000 (11:10 +0000)]
Merge "TitleValue: Include the invalid DB key in the message when throwing"

7 years agoRemove doubled title on Special:MIMESearch
Florian [Tue, 24 May 2016 16:56:12 +0000 (18:56 +0200)]
Remove doubled title on Special:MIMESearch

Having a page title (from skin) and the same text in the first
form on that page (directly after the page title) is doubled
and doesn't look very good. This change removes the form title
completely, as it is obvious enough what the form does (the input
has it's own label and the page title is clearly visible).

Follow up: I6c8b0f3be92bc455fe62846508d0b21c778b993d

Change-Id: I56c2f05ebe5b15f50eba6297c39326e1504b8229

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 31 Dec 2016 08:34:10 +0000 (09:34 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I4d073c77288bda2ee9310aa43108a89b87d546cb

7 years agoTitleValue: Include the invalid DB key in the message when throwing
This, that and the other [Sat, 31 Dec 2016 05:30:32 +0000 (16:30 +1100)]
TitleValue: Include the invalid DB key in the message when throwing

The current output "Bad value for parameter $dbkey: invalid DB key" is
useless for actually working out which DB key is to blame.

Bug: T146778
Change-Id: Iaf57e25ab27b5065469c5dc5de0a1b881c48210c

7 years agoImprove strings for the contentmodel log
This, that and the other [Sat, 31 Dec 2016 04:38:47 +0000 (15:38 +1100)]
Improve strings for the contentmodel log

Consistent terminology ("content model" not "contentmodel" or
"Contentmodel"; "change" not "modification"; "non-default" not
"non-standard") and clearer wording.

Change-Id: Ia24f30713588a35d077f52e6b25f59cd8b1c7c2f

7 years agoAdd a 'ChangeUserGroups' hook in Special:Userrights
Justin Du [Sat, 31 Dec 2016 02:39:44 +0000 (20:39 -0600)]
Add a 'ChangeUserGroups' hook in Special:Userrights

Currently, there is no hook that runs before a user's groups are changed. Adding a hook here will allow for action before the groups are changed.

Bug: T49338
Change-Id: I87dbb6a8eb897f4a40215d33d1a0b24af7efa871

7 years agoAdd 'UnblockUser' and 'UnblockUserComplete' hooks to Special:Unblock
Justin Du [Sat, 31 Dec 2016 01:29:34 +0000 (19:29 -0600)]
Add 'UnblockUser' and 'UnblockUserComplete' hooks to Special:Unblock

Currently, there are two hooks ('BlockIP' and 'BlockIPComplete') that run when a user or IP is blocked in Special:Block, but no similar hooks when a user is unblocked in Special:Unblock. Adding these two hooks allows an extension to add and remove criteria about a user/IP unblock before it occurs and for possible action after an unblock is completed.

Bug: T50546
Change-Id: I9d9888dc5f1bb6a8bc62e90e6a423bf56b05173b

7 years agoReplaced &$this with $this
awu42 [Fri, 30 Dec 2016 16:55:28 +0000 (11:55 -0500)]
Replaced &$this with $this

Replaced &$this in includes/Title.php to avoid error in PHP 7.1

Bug: T153505
Change-Id: I76eaae609a817af42687d87bcf0d13da7ba01c05

7 years agoMerge "Make SpecialPage::getLinkRenderer() public"
jenkins-bot [Fri, 30 Dec 2016 15:47:39 +0000 (15:47 +0000)]
Merge "Make SpecialPage::getLinkRenderer() public"

7 years agoAdd ->text() to prevent double HTML escaping
Fomafix [Fri, 30 Dec 2016 15:01:03 +0000 (16:01 +0100)]
Add ->text() to prevent double HTML escaping

wfMessage() without ->text() makes an automatic HTML escaping.
Html::element() makes also a HTML escaping of the content.
This leads to a double escaping and raw HTML in shown on the rendered page.

Change-Id: I68165492c828837f842e7885f557644ca1bb0a8c

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 30 Dec 2016 09:03:31 +0000 (10:03 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I93d8f62640eb192034ac0caf523f1efa820caefe

7 years agoChange the punctuation of apierror-baddiff
Amire80 [Fri, 30 Dec 2016 06:46:56 +0000 (08:46 +0200)]
Change the punctuation of apierror-baddiff

A comma implies that one of three different things happened.
A full stop makes it clear that one thing happened, and one of
the two reasons in the next sentence was the reason for it.

Change-Id: I79aa8222dd0f6f1af74bc2017c4e058a559ef719

7 years agoMerge "Database: Avoid internal use of ignoreErrors()"
jenkins-bot [Thu, 29 Dec 2016 20:38:26 +0000 (20:38 +0000)]
Merge "Database: Avoid internal use of ignoreErrors()"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 29 Dec 2016 08:47:32 +0000 (09:47 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I09da6dbd70b11f52646813bd78e2e42ab61706cb

7 years agoMerge "Replace some usages of &$this in hook parameters"
jenkins-bot [Wed, 28 Dec 2016 21:30:23 +0000 (21:30 +0000)]
Merge "Replace some usages of &$this in hook parameters"

7 years agoReplace some usages of &$this in hook parameters
Victor Barbu [Sun, 25 Dec 2016 19:32:22 +0000 (21:32 +0200)]
Replace some usages of &$this in hook parameters

Affected classes:
- ApiBase
- ApiPageSet
- HistoryPager
- RawAction

Bug: T153505
Change-Id: I0862476a39a1c3206a84f79c1b8f7db41bc47959

7 years agoMerge "Add release notes for recent language fallback additions"
jenkins-bot [Wed, 28 Dec 2016 10:26:04 +0000 (10:26 +0000)]
Merge "Add release notes for recent language fallback additions"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 28 Dec 2016 09:19:21 +0000 (10:19 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic17ad3e58b95bee1275374e01d1e3dead7662320

7 years agoAdd release notes for recent language fallback additions
Federico Leva [Wed, 28 Dec 2016 08:19:55 +0000 (09:19 +0100)]
Add release notes for recent language fallback additions

Change-Id: Iead6f9160eb19b413104f65bbb9f23b4e65d9865

7 years agoMerge "EditPage: Avoid use of &$this in hooks"
jenkins-bot [Wed, 28 Dec 2016 07:47:35 +0000 (07:47 +0000)]
Merge "EditPage: Avoid use of &$this in hooks"

7 years agoEditPage: Avoid use of &$this in hooks
Justin Du [Tue, 27 Dec 2016 14:36:04 +0000 (08:36 -0600)]
EditPage: Avoid use of &$this in hooks

* This triggers warnings in PHP 7.1

Bug: T153505
Change-Id: I5324a6bfe9e8ed255975104c5de7e7a7011cb741

7 years agoFallback io (Ido) to eo (Esperanto)
Federico Leva [Thu, 1 Dec 2016 13:13:06 +0000 (14:13 +0100)]
Fallback io (Ido) to eo (Esperanto)

Ido is a variant of Esperanto and all its speakers are supposed
to also know Esperanto. Either way, all translators were notified.

https://translatewiki.net/wiki/Thread:Portal_talk:Ido/Use_Esperanto_when_no_translation

From eo, io will inherit the date format, usage of space as digit separator
(consistent with most European languages), hundreds of translations for
magic words and special pages. The namespace gender alias for eo is adapted
to match the io format.

All the io.wiki and io.wiktionary users as listed by WikiStats have been
notified of the discussion individually.

Change-Id: Ia85d2e4b007b523027891bf2c2bccde55916510c

7 years agoLanguage fallback from Pontic (pnt) to Greek (el)
Federico Leva [Tue, 6 Dec 2016 22:35:55 +0000 (23:35 +0100)]
Language fallback from Pontic (pnt) to Greek (el)

The (relative) majority of speakers is estimated to live in Greece
and know Greek; for the others, intelligibility seems assured.
The language fallback was probably forgotten for a mere oversight.

https://translatewiki.net/wiki/Thread:Portal_talk:Pnt/Use_Greek_when_no_translation

In addition to the discussion between translators, every pnt.wiki
user has been alerted individually.

From el, pnt will inherit hundreds of translations for magic words,
namespaces and special page names. $linkTrail, $separatorTransformTable
and $fallback8bitEncoding are currently defined in el but not pnt.
The "ISO 8601" date format will also change definition, but the default
date format is "pnt" which is defined only for pnt.

Change-Id: I0377fff9300a8314cb9172f3be710be5dbce6825

7 years agoReciprocal language fallback for Upper/Lower Sorbian (hsb, dsb)
Federico Leva [Tue, 6 Dec 2016 22:32:05 +0000 (23:32 +0100)]
Reciprocal language fallback for Upper/Lower Sorbian (hsb, dsb)

The two are closely related and are estimated to be 86 % mutually
intelligible in written form.

https://translatewiki.net/wiki/Thread:Portal_talk:Hsb/Fallback_to_dsb
https://translatewiki.net/wiki/Thread:Portal_talk:Dsb/Fallback_to_hsb

The two locales already have identical $dateFormats and largely
overlapping $namespaceGenderAliases and translations of namespaces,
magic words and special pages (often they differ only for diacritics
and only about a dozen of them are defined in one but not the other).

All the users with some edits on dsb.wiki, hsb.wiki, hsb.wiktionary
(as listed by WikiStats) have been notified individually.

Change-Id: Ib806387c875c1bbef180f2b85eae45c050824cb7

7 years agoMerge "mediawiki.ui: Explicitly define input text color"
jenkins-bot [Tue, 27 Dec 2016 12:47:44 +0000 (12:47 +0000)]
Merge "mediawiki.ui: Explicitly define input text color"

7 years agoMerge "Edit stash: Simplify with postWithToken"
jenkins-bot [Tue, 27 Dec 2016 12:30:28 +0000 (12:30 +0000)]
Merge "Edit stash: Simplify with postWithToken"

7 years agoMerge "Adding white background color to thumbimages (i.e. framed images)"
jenkins-bot [Tue, 27 Dec 2016 12:02:14 +0000 (12:02 +0000)]
Merge "Adding white background color to thumbimages (i.e. framed images)"

7 years agoRaggettWrapper: Don't use ReplacementArray
Kevin Israel [Thu, 21 Jul 2016 12:51:39 +0000 (08:51 -0400)]
RaggettWrapper: Don't use ReplacementArray

Instead, build the array and call strtr() directly.

Also did some other minor cleanup, such as making replaceCallback()
private now that we require at least PHP 5.5, and changing &$this
to $this.

Change-Id: If885df06710c76fdb35d3c7de78df7436ccb7abf

7 years agoDatabase: Avoid internal use of ignoreErrors()
Kevin Israel [Tue, 27 Dec 2016 10:20:30 +0000 (05:20 -0500)]
Database: Avoid internal use of ignoreErrors()

* Use $tempIgnore in DatabaseBase::tableExists() instead of ignoreErrors().
* DatabasePostgres::reportQueryError(), since 419221e4a71b, calls
  ignoreErrors() before and after rollback(). This is probably not effective
  as a recursion guard (reportQueryError() would be called regardless), and
  for suppressing any log entry or exception, it is redundant (doRollback()
  already sets $tempIgnore when calling query()).
* ignoreErrors(), now unused, can be removed in a separate change set.

Change-Id: Iee768abf996ece213146ab8f64a15a2b407a2e5e

7 years agoRemove incorrect deprecated notice from function WikiRevision::getText()
Subin Siby [Tue, 27 Dec 2016 06:57:06 +0000 (12:27 +0530)]
Remove incorrect deprecated notice from function WikiRevision::getText()

WikiRevision::getText() was wrongly marked deprecated in 1.21.
This has been fixed.

Bug: T152282
Bug: T61113
Change-Id: I3f0e0f7fe38bd4e2001efbe17cdba6bcc90b036f

7 years agomediawiki.ui: Explicitly define input text color
jo12bar [Mon, 26 Dec 2016 18:48:49 +0000 (10:48 -0800)]
mediawiki.ui: Explicitly define input text color

This fixes an issue where certain system themes (i.e. custom Gnome
themes) would set a default & often unreadable text color for any
.mw-ui-input's. The text color is now explicity set to
`@colorGray1`, fixing this issue.

Bug: T148457
Change-Id: I5b31fab317948d231bce5c242af65d6cc7d3f4aa

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 26 Dec 2016 21:05:43 +0000 (22:05 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I6ba2a0605d635d14f0ab659cd0931ecebffb91f2

7 years agoMerge "moved Exception classes from ContentHandler.php"
jenkins-bot [Mon, 26 Dec 2016 14:40:19 +0000 (14:40 +0000)]
Merge "moved Exception classes from ContentHandler.php"

7 years agomoved Exception classes from ContentHandler.php
mynk-96 [Sat, 24 Dec 2016 11:58:38 +0000 (17:28 +0530)]
moved Exception classes from ContentHandler.php

Bug: T153243
Change-Id: Ieb37b34e76441c5f68ec565c43421c50ac9be7e7

7 years agoReplace &$this with $this in MediaWiki/core hook system
divadsn [Sun, 25 Dec 2016 23:55:27 +0000 (23:55 +0000)]
Replace &$this with $this in MediaWiki/core hook system

Bug: T153505
Change-Id: Ie287adf8b1d384aa651c659a9d385877379a0f11

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 25 Dec 2016 21:02:13 +0000 (22:02 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I32d9a7aec18502403d80f5c48393c5d3abf6c5a9

7 years agoMerge "Add id attribute to error message "mw-error-cannotundelete""
jenkins-bot [Sun, 25 Dec 2016 19:17:20 +0000 (19:17 +0000)]
Merge "Add id attribute to error message "mw-error-cannotundelete""

7 years agoMerge "Fix rendering issues on RecentChanges Special page"
jenkins-bot [Sun, 25 Dec 2016 17:49:52 +0000 (17:49 +0000)]
Merge "Fix rendering issues on RecentChanges Special page"

7 years agoEdit stash: Simplify with postWithToken
Matt Russell [Mon, 27 Jun 2016 08:14:30 +0000 (18:14 +1000)]
Edit stash: Simplify with postWithToken

The original aborting issue in T102863 was fixed in 4a61bb8fb318.

Also moved early return to the top and added early return if the form is
missing, as well as moving code from the useless `onFormLoaded` function into
the main body.

Change-Id: Ie05d267f19ac2801754860fca1cec677167cd5d8

7 years agoMerge "Add populateInterwiki maintenance script"
jenkins-bot [Sun, 25 Dec 2016 11:13:30 +0000 (11:13 +0000)]
Merge "Add populateInterwiki maintenance script"

7 years agoAdd populateInterwiki maintenance script
aude [Thu, 28 Apr 2016 21:22:12 +0000 (17:22 -0400)]
Add populateInterwiki maintenance script

This has been in Wikibase since 2012, but is not at all
specific to Wikibase, and doesn't even require Wikibase
to be enabled.

Having this in core will make it available to more people
and without the hassle of having to clone Wikibase to
use the script.

Bug: T114577
Change-Id: Ib521a65e616bdc4b81206a084289cb4750f0d1f5

7 years agoMerge "Allow PHAN location to be read from PATH"
jenkins-bot [Sun, 25 Dec 2016 01:20:37 +0000 (01:20 +0000)]
Merge "Allow PHAN location to be read from PATH"

7 years agoMerge "Add missing properties to MailAddress class"
jenkins-bot [Sun, 25 Dec 2016 01:15:51 +0000 (01:15 +0000)]
Merge "Add missing properties to MailAddress class"

7 years agoAdd id attribute to error message "mw-error-cannotundelete"
divadsn [Fri, 23 Dec 2016 20:14:05 +0000 (20:14 +0000)]
Add id attribute to error message "mw-error-cannotundelete"

Bug: T20819
Change-Id: I65c241506d53ced2e714f3f6d431c2005263a1c0

7 years agoFix rendering issues on RecentChanges Special page
Phantom42 [Sat, 24 Dec 2016 22:23:23 +0000 (00:23 +0200)]
Fix rendering issues on RecentChanges Special page

Legend is rendered correctly now, fixed namespace checkboxes
behaviour, fixed styles of the changes list.

Bug: T112693
Change-Id: If2c5701587eee50a6d578459f6b38b6f16cd5fe9

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 24 Dec 2016 20:59:52 +0000 (21:59 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iebe696fe47becb1a8171efb29ed59d2afc35b748

7 years agoAdding white background color to thumbimages (i.e. framed images)
Kaldari [Sat, 24 Dec 2016 06:08:57 +0000 (22:08 -0800)]
Adding white background color to thumbimages (i.e. framed images)

Bug: T154077
Change-Id: I96d2225a9cab05f5e427bdb6a5ee11198af34ff5

7 years agoMake SpecialPage::getLinkRenderer() public
Kunal Mehta [Sat, 24 Dec 2016 01:14:05 +0000 (17:14 -0800)]
Make SpecialPage::getLinkRenderer() public

This makes it easier to be dependency injected and used in areas that
get SpecialPage instances like hooks.

Change-Id: I5cf823695cdc18c5dd9390244af5f3c6bc4f63c0

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 23 Dec 2016 21:00:18 +0000 (22:00 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: If0fcd4dfa00d5ef0d23155f66dddd7df8d563826

7 years agoAdd missing properties to MailAddress class
addshore [Fri, 23 Dec 2016 15:42:47 +0000 (15:42 +0000)]
Add missing properties to MailAddress class

Change-Id: I6f199cee22678391938637685a1a81771528eac4

7 years agoAllow PHAN location to be read from PATH
addshore [Fri, 23 Dec 2016 14:42:19 +0000 (14:42 +0000)]
Allow PHAN location to be read from PATH

Change-Id: I4ea64eab12f299a13559178c80fe6797d07a5f85

7 years agoRemove &$this usage
Subin Siby [Thu, 22 Dec 2016 10:31:10 +0000 (16:01 +0530)]
Remove &$this usage

Replaced &$this to avoid PHP 7.1 warning of passing $this by reference

Bug: T153505
Change-Id: I3e9bc59dc8cefac0108482afeb9cc9a274e2e54b

7 years agoMerge "Avoid pointless use of isset() in LBFactoryMulti()"
jenkins-bot [Fri, 23 Dec 2016 06:22:12 +0000 (06:22 +0000)]
Merge "Avoid pointless use of isset() in LBFactoryMulti()"

7 years agoRemove duplicate message movepage-max-pages
Brad Jorsch [Fri, 23 Dec 2016 03:55:45 +0000 (22:55 -0500)]
Remove duplicate message movepage-max-pages

Change-Id: I129a9b0e22236bd08daf7d9f7aaeb599a68b0108

7 years agoMerge "build: Karma proxy should convert Host header"
jenkins-bot [Fri, 23 Dec 2016 02:06:16 +0000 (02:06 +0000)]
Merge "build: Karma proxy should convert Host header"

7 years agobuild: Karma proxy should convert Host header
Antoine Musso [Tue, 20 Dec 2016 15:46:20 +0000 (16:46 +0100)]
build: Karma proxy should convert Host header

By default the Karma proxy does requests against 'localhost', however
if the target wiki server has strict host validation (e.g. multiple
virtual hosts or otherwise strictly verified) then requests may fail
since load.php is not found. An example is with MW_SERVER=devwiki.local.

MediaWiki-Vagrant and Wikimedia CI are not affected since they use
'localhost' as the virtual host.

Set Karma proxy to change the hostname accordingly.

Reference:
 https://github.com/karma-runner/karma/issues/1729
 https://github.com/karma-runner/karma/commit/ae05ea4

Bug: T153757
Change-Id: I317d5686aecd1fb6cf6921cdca77670cded85607

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 22 Dec 2016 20:54:42 +0000 (21:54 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8f7e0aa4d80a56ad1526ca949310fe81495bf9bb

7 years agoMerge "Fix tests that don't check composer's autoloader"
jenkins-bot [Thu, 22 Dec 2016 18:20:14 +0000 (18:20 +0000)]
Merge "Fix tests that don't check composer's autoloader"

7 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Thu, 22 Dec 2016 17:56:27 +0000 (17:56 +0000)]
Merge "Sync up with Parsoid parserTests."

7 years agoSync up with Parsoid parserTests.
Subramanya Sastry [Thu, 22 Dec 2016 17:29:32 +0000 (11:29 -0600)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 471eb1031510e06a82a18007222396934b34264f

Change-Id: I676b656c9d45c73cfb4e8fdddd23d9c3c85845cd

7 years agoDon't parse language converter markup as a cell parameter in tables.
C. Scott Ananian [Tue, 13 Dec 2016 22:22:25 +0000 (17:22 -0500)]
Don't parse language converter markup as a cell parameter in tables.

Bug: T153140
Change-Id: I799363727162a0f337652b26bb69fe35c61a8553

7 years agoMerge "Align mw.widgets.DateInputWidget to OOjs UI's MediaWiki theme widgets"
jenkins-bot [Thu, 22 Dec 2016 13:49:57 +0000 (13:49 +0000)]
Merge "Align mw.widgets.DateInputWidget to OOjs UI's MediaWiki theme widgets"

7 years agoMerge "Special:RC filter: userExpLevel"
jenkins-bot [Thu, 22 Dec 2016 12:41:45 +0000 (12:41 +0000)]
Merge "Special:RC filter: userExpLevel"

7 years agoAlign mw.widgets.DateInputWidget to OOjs UI's MediaWiki theme widgets
Volker E [Fri, 28 Oct 2016 02:23:49 +0000 (19:23 -0700)]
Align mw.widgets.DateInputWidget to OOjs UI's MediaWiki theme widgets

Aligning mw.widgets.DateInputWidget to improved color palette and to
similar MediaWiki theme widgets. Removing distinction of theme specific
styles for now. Introducing transitions in several places to improve
user experience and changing CalendarWidget to `box-sizing: border-box`
to enable border on IE 8.

Bug: T149270
Change-Id: I6b5b99f444a02f68933c85ccd2b8898d3a8758bf

7 years agoFix tests that don't check composer's autoloader
Aleksey Bekh-Ivanov (WMDE) [Wed, 21 Dec 2016 15:06:57 +0000 (16:06 +0100)]
Fix tests that don't check composer's autoloader

Tests were failing if class cannot be loaded using `\AutoLoader` but can be loaded by composer's autoloader.

Change-Id: I005c9d99245f4733a9666c4bfe9e39baeaad3960

7 years agoMerge "Title: Fix subpage move error reporting"
jenkins-bot [Thu, 22 Dec 2016 09:54:07 +0000 (09:54 +0000)]
Merge "Title: Fix subpage move error reporting"

7 years agoMerge "Remove FileRepoStatus references"
jenkins-bot [Thu, 22 Dec 2016 05:58:04 +0000 (05:58 +0000)]
Merge "Remove FileRepoStatus references"

7 years agoMerge "Add a caught_by context field to exceptions"
jenkins-bot [Thu, 22 Dec 2016 05:50:27 +0000 (05:50 +0000)]
Merge "Add a caught_by context field to exceptions"