lhc/web/wiklou.git
6 years agoAllow callback functions for creating jobs
Lucas Werkmeister [Thu, 4 May 2017 16:00:28 +0000 (18:00 +0200)]
Allow callback functions for creating jobs

$wgJobClasses can now specify a factory function for creating a job,
instead of a class to be instantiated directly. This makes it possible
to inject services in a job constructor, and register a factory function
that calls the constructor with default services.

This follows Ieb85493a7765 and Ia2107dc5af78, which introduced factory
functions for API modules and special pages.

Change-Id: I0461e59da2a8fa6681e3b1fcdfc38bfed7f3ac32

6 years agoMerge "Remove unused var assign in Parser::getTemplateDom"
jenkins-bot [Thu, 4 May 2017 15:54:49 +0000 (15:54 +0000)]
Merge "Remove unused var assign in Parser::getTemplateDom"

6 years agoMerge "Follow-up bac92e67ca0: make order of filter groups less misleading"
jenkins-bot [Thu, 4 May 2017 13:03:54 +0000 (13:03 +0000)]
Merge "Follow-up bac92e67ca0: make order of filter groups less misleading"

6 years agoMerge "Fix all the Doxygen for the RCFilters backend"
jenkins-bot [Thu, 4 May 2017 08:46:35 +0000 (08:46 +0000)]
Merge "Fix all the Doxygen for the RCFilters backend"

6 years agoMerge "Embed TinyRGB color profile when JPG EXIF Color Space = sRGB but no profile...
jenkins-bot [Thu, 4 May 2017 07:59:08 +0000 (07:59 +0000)]
Merge "Embed TinyRGB color profile when JPG EXIF Color Space = sRGB but no profile embedded"

6 years agoChange default $wgShellLocale to C.UTF-8, and use it to set LC_ALL
Brad Jorsch [Tue, 28 Jul 2015 16:17:40 +0000 (12:17 -0400)]
Change default $wgShellLocale to C.UTF-8, and use it to set LC_ALL

It's less likely to cause surprises than language-specific defaults.

Bug: T107128
Change-Id: Ife7673255798f3a3d72028a26607c56b9b7fb224

6 years agoRevert "Convert mwdoc-filter.php to Maintenance", rm wfShellWikiCmd
Matthew Flaschen [Thu, 4 May 2017 00:04:29 +0000 (20:04 -0400)]
Revert "Convert mwdoc-filter.php to Maintenance", rm wfShellWikiCmd

Revert a58948d64 and instead remove wfShellWikiCmd and escape
shell arguments directly.

This should be fine since mwdoc-filter.php does not depend on per-wiki
state.

Change-Id: Id9c6ca84bab827675b71ca16bf688fd3f5c993a1

6 years agoFix all the Doxygen for the RCFilters backend
Matthew Flaschen [Wed, 3 May 2017 02:47:41 +0000 (22:47 -0400)]
Fix all the Doxygen for the RCFilters backend

All the lists and sub-lists now render correctly,
and missing parameters have been added.

Bug: T163069
Change-Id: I7a8c95efaff7c844e32e4375dfe6af8c2e91923f

6 years agoMerge "RCFilters: Only register watchlist filter group when user is logged in"
jenkins-bot [Wed, 3 May 2017 22:20:33 +0000 (22:20 +0000)]
Merge "RCFilters: Only register watchlist filter group when user is logged in"

6 years agoMerge "RC Filters: always join with 'page'"
jenkins-bot [Wed, 3 May 2017 22:19:36 +0000 (22:19 +0000)]
Merge "RC Filters: always join with 'page'"

6 years agoFollow-up bac92e67ca0: make order of filter groups less misleading
Roan Kattouw [Tue, 2 May 2017 23:41:05 +0000 (16:41 -0700)]
Follow-up bac92e67ca0: make order of filter groups less misleading

The significance group comes before the lastRevision group in the UI
(because it has priority -6 vs -7), but we listed lastRevision first.
Swap them so the order in the definition matches the order in the UI.

Change-Id: I5d498bd8c7505f5cab3c89564650e0e8aaa4e117

6 years agoRCFilters: Only register watchlist filter group when user is logged in
Stephane Bisson [Tue, 2 May 2017 23:39:21 +0000 (16:39 -0700)]
RCFilters: Only register watchlist filter group when user is logged in

Follow-up to 9a97cb6.

Bug: T164314
Change-Id: If1af0816b5b37857060b87db8e4e798b4824b5a5

6 years agoRC Filters: always join with 'page'
Stephane Bisson [Wed, 3 May 2017 18:58:22 +0000 (14:58 -0400)]
RC Filters: always join with 'page'

The 'last revision' filter group relies on
the 'page' table to filter and highlight.

Bug: T163561
Change-Id: I29be21596ce02270859936203c921777c952e3a4

6 years agoFix typo in comment
Fomafix [Wed, 3 May 2017 20:14:44 +0000 (22:14 +0200)]
Fix typo in comment

Change-Id: I3c5f3e66e2bca5b1629ee2fc54992a81e36d71cb

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 3 May 2017 20:00:21 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie59fc60d2680bc9ed62230834e1930f16c32fb14

6 years agoMerge "Use IGNORE INDEX(ls_log_id) instead of FORCE INDEX(ls_field_val)"
jenkins-bot [Wed, 3 May 2017 19:35:45 +0000 (19:35 +0000)]
Merge "Use IGNORE INDEX(ls_log_id) instead of FORCE INDEX(ls_field_val)"

6 years agoMerge "Upstream transition-transform mixin from MobileFrontend"
jenkins-bot [Wed, 3 May 2017 18:26:33 +0000 (18:26 +0000)]
Merge "Upstream transition-transform mixin from MobileFrontend"

6 years agoUpstream transition-transform mixin from MobileFrontend
jdlrobson [Wed, 3 May 2017 00:16:31 +0000 (17:16 -0700)]
Upstream transition-transform mixin from MobileFrontend

This specialised usage of transition allows hardware accelerated
transitions on mobile devices and is commonly used in MobileFrontend.

Change-Id: Iaa622043fdbb5be965716c88b48f30f61d259c8b

6 years agoMerge "mw.special.apisandbox: Specify auto width on PopupButtonWidgets' popups"
jenkins-bot [Wed, 3 May 2017 16:48:56 +0000 (16:48 +0000)]
Merge "mw.special.apisandbox: Specify auto width on PopupButtonWidgets' popups"

6 years agoMerge "ApiSandbox: Specify a $overlay for menu-using widgets"
jenkins-bot [Wed, 3 May 2017 16:44:13 +0000 (16:44 +0000)]
Merge "ApiSandbox: Specify a $overlay for menu-using widgets"

6 years agoAdd quick shorthand for SVG generation
jdlrobson [Wed, 3 May 2017 00:48:01 +0000 (17:48 -0700)]
Add quick shorthand for SVG generation

Change-Id: Ic2a68d2fa62dc079743de641ada4c7f4dd294f2f

6 years agoUse IGNORE INDEX(ls_log_id) instead of FORCE INDEX(ls_field_val)
Roan Kattouw [Wed, 3 May 2017 15:00:08 +0000 (08:00 -0700)]
Use IGNORE INDEX(ls_log_id) instead of FORCE INDEX(ls_field_val)

ls_field_val was renamed to PRIMARY, but this is only partially
complete in WMF production. There is only one other index on the
log_search table, so ignoring that one is equivalent to forcing
the other one.

Bug: T17441
Change-Id: I63182a9f94eabb4cc47414d86b02c82bde1e58b0

6 years agoMerge "Add mw-content-ltr|rtl to file redirect pages"
jenkins-bot [Wed, 3 May 2017 14:21:38 +0000 (14:21 +0000)]
Merge "Add mw-content-ltr|rtl to file redirect pages"

6 years agoMerge "Fix small typo in documentation of IDatabase"
jenkins-bot [Wed, 3 May 2017 14:10:55 +0000 (14:10 +0000)]
Merge "Fix small typo in documentation of IDatabase"

6 years agoMake "eval.php -d 2" work again
Tim Starling [Fri, 28 Apr 2017 01:50:10 +0000 (11:50 +1000)]
Make "eval.php -d 2" work again

Instead of iterating through load balancer info, just set the flag in
the master and replica connections, since that seems more robust.

Deprecate LoadBalancer::setServerInfo() and
LoadBalancer::getServerInfo(), no remaining callers in core or
in-tree extensions, I think I added the function just for this feature.

Do a service reset, since Logger instances are injected into
LoadBalancer by ServiceWiring (via MWLBFactory::applyDefaultConfig()).
Similarly CryptRand, MimeAnalyzer.

Fix the usage text for shell.php

Change-Id: I3e85a6e8cfa1243a0371cfb3ce1c18665e8c711d

6 years agoFix small typo in documentation of IDatabase
Amir Sarabadani [Wed, 3 May 2017 13:30:38 +0000 (18:00 +0430)]
Fix small typo in documentation of IDatabase

Change-Id: Ic9ac07700ded26e8a14f457428a7fd52a693923f

6 years agoAdd mw-content-ltr|rtl to file redirect pages
Derk-Jan Hartman [Tue, 26 Jan 2016 19:35:29 +0000 (20:35 +0100)]
Add mw-content-ltr|rtl to file redirect pages

28ea73bc3a07a4588f1b5fde4f5c41522eaa9518 added NS_FILE to the list,
because most of the content is user language. That does not
really apply for #REDIRECT, however.

As a side effect, this also makes the redirect arrows visible on File
redirect pages, because their CSS depends on these classes.

Another side effect is that now "additional" content will show for the
redirect as reported broken in T29857.

Bug: T60955
Change-Id: I6b14c17a4b74ff5964ea61554aa3afb197d206bf

6 years agoMerge "Convert mwdoc-filter.php to Maintenance class so --wiki works"
jenkins-bot [Wed, 3 May 2017 03:45:05 +0000 (03:45 +0000)]
Merge "Convert mwdoc-filter.php to Maintenance class so --wiki works"

6 years agoConvert mwdoc-filter.php to Maintenance class so --wiki works
Matthew Flaschen [Wed, 3 May 2017 02:02:06 +0000 (22:02 -0400)]
Convert mwdoc-filter.php to Maintenance class so --wiki works

Change-Id: Ie2fc4109bc2e7a23a6549d9705be44cf2eb858b9

6 years agoMerge "maintenance/resources/update-oojs-ui: Copy across map files for debug mode"
jenkins-bot [Wed, 3 May 2017 00:09:47 +0000 (00:09 +0000)]
Merge "maintenance/resources/update-oojs-ui: Copy across map files for debug mode"

6 years agoMerge "Move RELEASE-NOTES-1.29 to HISTORY"
jenkins-bot [Wed, 3 May 2017 00:08:10 +0000 (00:08 +0000)]
Merge "Move RELEASE-NOTES-1.29 to HISTORY"

6 years agoMerge "Follow-up 14cffee7: Correct deprecation version comment"
jenkins-bot [Wed, 3 May 2017 00:06:21 +0000 (00:06 +0000)]
Merge "Follow-up 14cffee7: Correct deprecation version comment"

6 years agoMerge "EditPage: Vary 'save button' label for appropriate i18n"
jenkins-bot [Wed, 3 May 2017 00:03:16 +0000 (00:03 +0000)]
Merge "EditPage: Vary 'save button' label for appropriate i18n"

6 years agoRCFilters: Override highlighted background
Moriel Schottlender [Tue, 2 May 2017 23:41:13 +0000 (16:41 -0700)]
RCFilters: Override highlighted background

Muted state has overridden the 'highlighted' state which meant that
arrow movement weren't visible on items that were muted. This fix
corrects that.

Bug: T159768
Change-Id: I9d853eb3de1e482bd01e27635e92af505176eef5

6 years agoMove RELEASE-NOTES-1.29 to HISTORY
James D. Forrester [Thu, 27 Apr 2017 21:02:10 +0000 (14:02 -0700)]
Move RELEASE-NOTES-1.29 to HISTORY

Changes to master that are going to be immediately backported to
REL1_29 before release should write changes to HISTORY directly.

Change-Id: Ia3e02293b13406e7a4741ef14897dd83bca98d46

6 years agoMerge "RC Filters: watch filter highlight"
jenkins-bot [Tue, 2 May 2017 21:26:38 +0000 (21:26 +0000)]
Merge "RC Filters: watch filter highlight"

6 years agoMerge "Document "What's This" group UI feature"
jenkins-bot [Tue, 2 May 2017 20:16:54 +0000 (20:16 +0000)]
Merge "Document "What's This" group UI feature"

6 years agoMerge "Toggle logo preloading via the skin"
jenkins-bot [Tue, 2 May 2017 20:13:36 +0000 (20:13 +0000)]
Merge "Toggle logo preloading via the skin"

6 years agoRC Filters: watch filter highlight
Stephane Bisson [Tue, 2 May 2017 20:09:27 +0000 (16:09 -0400)]
RC Filters: watch filter highlight

When checking if lines are 'watchednew' for highlight purposes,
make sure 'rc_timestamp' and 'wl_notificationtimestamp' are truthy.

Bug: T163964
Change-Id: I3cd6cc9835db01229b8d1cc6ccfc371a36709ef2

6 years agoDocument "What's This" group UI feature
Matthew Flaschen [Tue, 2 May 2017 20:06:37 +0000 (16:06 -0400)]
Document "What's This" group UI feature

Bug: T163069
Change-Id: I1100dbea1549ee208dc0a1e9bcd56d8c93775302

6 years agoMerge "RC Filters: Support multiple tag filters"
jenkins-bot [Tue, 2 May 2017 20:02:02 +0000 (20:02 +0000)]
Merge "RC Filters: Support multiple tag filters"

6 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Tue, 2 May 2017 19:59:02 +0000 (19:59 +0000)]
Merge "Localisation updates from https://translatewiki.net."

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 2 May 2017 19:58:50 +0000 (21:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I036a25f9df1810a9a484e05389bd82a0a70e5457

6 years agoMerge "RC Filters: support multiple namespaces"
jenkins-bot [Tue, 2 May 2017 19:58:27 +0000 (19:58 +0000)]
Merge "RC Filters: support multiple namespaces"

6 years agoMerge "userExpLevel test: use $tables from function under tests"
jenkins-bot [Tue, 2 May 2017 19:58:22 +0000 (19:58 +0000)]
Merge "userExpLevel test: use $tables from function under tests"

6 years agoRC Filters: Support multiple tag filters
Stephane Bisson [Tue, 2 May 2017 19:29:24 +0000 (15:29 -0400)]
RC Filters: Support multiple tag filters

Bug: T164133
Change-Id: Id9404940644197bac235202a45324b201613303d

6 years agoRemove unused var assign in Parser::getTemplateDom
Umherirrender [Tue, 2 May 2017 19:18:39 +0000 (21:18 +0200)]
Remove unused var assign in Parser::getTemplateDom

Change-Id: If11d7a2568d4235df6888e4001500bdf45f58eae

6 years agoMerge "userExpLevel test: use a single time()"
jenkins-bot [Tue, 2 May 2017 18:43:45 +0000 (18:43 +0000)]
Merge "userExpLevel test: use a single time()"

6 years agoRC Filters: support multiple namespaces
Stephane Bisson [Tue, 2 May 2017 17:47:17 +0000 (13:47 -0400)]
RC Filters: support multiple namespaces

Make the namespace filter support multiple values separated by ','.

Bug: T164132
Change-Id: I6a83eafef69ea416dd9ba8cecc524efbd85db438

6 years agoMerge "RC Filters: watchlist"
jenkins-bot [Tue, 2 May 2017 17:42:04 +0000 (17:42 +0000)]
Merge "RC Filters: watchlist"

6 years agoMerge "RC Filters: group.allSelected consider subsets"
jenkins-bot [Tue, 2 May 2017 17:40:31 +0000 (17:40 +0000)]
Merge "RC Filters: group.allSelected consider subsets"

6 years agoMerge "RC Filters: don't bind onMenuToggle twice"
jenkins-bot [Tue, 2 May 2017 16:28:10 +0000 (16:28 +0000)]
Merge "RC Filters: don't bind onMenuToggle twice"

6 years agomw.special.apisandbox: Specify auto width on PopupButtonWidgets' popups
Brad Jorsch [Tue, 2 May 2017 16:08:26 +0000 (12:08 -0400)]
mw.special.apisandbox: Specify auto width on PopupButtonWidgets' popups

Bug: T133710
Change-Id: Id6b05aa3d589040efeb7baf4ac9d4176182f538b

6 years agoApiSandbox: Specify a $overlay for menu-using widgets
Brad Jorsch [Wed, 9 Mar 2016 21:12:15 +0000 (16:12 -0500)]
ApiSandbox: Specify a $overlay for menu-using widgets

This makes the menu work more sensibly when the widget is inside a
scrolling box of some sort.

Bug: T129308
Change-Id: Ic3b26883984030bb0ab37fcca8acd8b8c4535c2d

6 years agoRC Filters: don't bind onMenuToggle twice
Stephane Bisson [Tue, 2 May 2017 14:46:54 +0000 (10:46 -0400)]
RC Filters: don't bind onMenuToggle twice

Having 2 event handlers for onMenuToggle means
double-counting popup openings, which breaks
the highlight guided tour prompt schedule.

Bug: T164228
Change-Id: Ia6855e6b07e1364ff76c2bccd82c33b21b82619b

6 years agoRC Filters: group.allSelected consider subsets
Stephane Bisson [Tue, 2 May 2017 13:25:33 +0000 (09:25 -0400)]
RC Filters: group.allSelected consider subsets

Consider a group to be all selected if its unselected
items are subsets of selected items.

This allows the watchlist group to show as no-effect
when 'watched' and 'notwatched' are selected but
'watchednow' is not selected.

Bug: T163964
Change-Id: I40d2a02ab074bc87f8a6f2498834b89fbbe55771

6 years agoToggle logo preloading via the skin
Gilles Dubuc [Tue, 2 May 2017 12:58:06 +0000 (14:58 +0200)]
Toggle logo preloading via the skin

Bug: T100999
Change-Id: I0e18dc7fdbf133f3e4002f48f3040604687571dc

6 years agoRC Filters: watchlist
Stephane Bisson [Mon, 1 May 2017 20:38:35 +0000 (16:38 -0400)]
RC Filters: watchlist

Introducing filtering on watchlist status
  watchlist=watched|watchednew|notwatched

'watchednew' is a subset of 'watched

Bug: T163964
Change-Id: I04df40c8399e15a03a400b4a24afedf1df242a93

6 years agoMerge "Check supportsDirectEditing when suggesting page creation"
jenkins-bot [Tue, 2 May 2017 11:39:48 +0000 (11:39 +0000)]
Merge "Check supportsDirectEditing when suggesting page creation"

6 years agomediawiki.user: Remove deprecated mw.user.bucket
Fomafix [Wed, 19 Apr 2017 07:21:02 +0000 (09:21 +0200)]
mediawiki.user: Remove deprecated mw.user.bucket

The function mw.user.bucket is already deprecated since MediaWiki 1.23.

Change-Id: I2589dc7ce94004504a7aad080374877391f20057

6 years agoresourceloader: Bump severity of style queue violation to Warning
Timo Tijhof [Tue, 2 May 2017 00:28:32 +0000 (17:28 -0700)]
resourceloader: Bump severity of style queue violation to Warning

Previously it was only in debug logs (which are enabled in Jenkins,
MediaWiki-Vagrant, Beta, and for mwdebug hosts in wmf-production).

Turning it into a warning() will log it for regular requests as well
which is the last step before we can consider hard enforcement.

Bug: T92459
Change-Id: I87c7794c5cfe35521bf76cc42f94907001e9d24b

6 years agoMerge "Adding explantation for why to use User::incEditCount()"
jenkins-bot [Mon, 1 May 2017 23:49:26 +0000 (23:49 +0000)]
Merge "Adding explantation for why to use User::incEditCount()"

6 years agoMerge "RC Filters: Last revision filter group"
jenkins-bot [Mon, 1 May 2017 23:48:11 +0000 (23:48 +0000)]
Merge "RC Filters: Last revision filter group"

6 years agoMerge "RC Filters: Make filters header sticky"
jenkins-bot [Mon, 1 May 2017 23:48:06 +0000 (23:48 +0000)]
Merge "RC Filters: Make filters header sticky"

6 years agoMerge "config: Use less generic cache key, and not fragmented by wiki"
jenkins-bot [Mon, 1 May 2017 23:31:21 +0000 (23:31 +0000)]
Merge "config: Use less generic cache key, and not fragmented by wiki"

6 years agoMerge "config: Add unit tests for EtcdConfig"
jenkins-bot [Mon, 1 May 2017 23:30:49 +0000 (23:30 +0000)]
Merge "config: Add unit tests for EtcdConfig"

6 years agoMerge "Avoid master queries in loadAndLazyInit() for miser mode"
jenkins-bot [Mon, 1 May 2017 23:24:36 +0000 (23:24 +0000)]
Merge "Avoid master queries in loadAndLazyInit() for miser mode"

6 years agoEditPage: Vary 'save button' label for appropriate i18n
James D. Forrester [Tue, 18 Apr 2017 15:38:12 +0000 (08:38 -0700)]
EditPage: Vary 'save button' label for appropriate i18n

Change-Id: I0fd2995aa3178d383aa099cb0852336a1c67893d

6 years agoMerge "Use isSpecialPage() where possible"
jenkins-bot [Mon, 1 May 2017 23:08:07 +0000 (23:08 +0000)]
Merge "Use isSpecialPage() where possible"

6 years agoMerge "api: Use NS_SPECIAL instead of -1 in ApiPageSet"
jenkins-bot [Mon, 1 May 2017 23:07:37 +0000 (23:07 +0000)]
Merge "api: Use NS_SPECIAL instead of -1 in ApiPageSet"

6 years agoapi: Use NS_SPECIAL instead of -1 in ApiPageSet
Fomafix [Sat, 29 Apr 2017 20:50:33 +0000 (22:50 +0200)]
api: Use NS_SPECIAL instead of -1 in ApiPageSet

Follows-up e2055fe0a55c.

Change-Id: Ifd33f339a3c5ec475cc3c6b2fba57c35386bab8b

6 years agoUse IPSet for checking of wgProxyList
Florian Schmidt [Sat, 15 Apr 2017 23:52:23 +0000 (01:52 +0200)]
Use IPSet for checking of wgProxyList

Instead of using array_* functions, use the IPSet for checking, if a
specific IP address matches a set of addresses.

This also deprecates a backward-compatibility functionality, that
the wgProxyList array could also be an associative array, where the blocked
IP address is set as a key of the array insted of a value. All IP address
keys will be mved to values on-the-fly, however a deprecation warning will
be emitted. A notice in the Release notes was added, too.

Bug: T161580
Change-Id: I69d9534942c415ab044177969ecd54160079b593

6 years agoconfig: Use less generic cache key, and not fragmented by wiki
Timo Tijhof [Mon, 1 May 2017 21:51:57 +0000 (14:51 -0700)]
config: Use less generic cache key, and not fragmented by wiki

* Use makeGlobalKey instead of makeKey to avoid fragmenting
  the cache by the wiki-specific key space.

* Add "EtcdConfig" and $this->host to the cache key to make
  it less generic and less likely to conflict with unrelated values
  in case multiple instances exist somewhere in the MediaWiki run
  time (or during testing/debugging).

Adding $this->host should be fine given we were already including
the directory within that host. Although I do recognise that we
may want to encourage slow cache rollover instead of instance
cache rollover in case the host name needs to changed. Perhaps
we should have some kind of canonical name for the instance for
the purpose of caching so that directory or host can be changed
without changing the cache key, and thus have cache roll over
normally over the course of 10 seconds, instead of immediately.

On the other hand, deployment will likely already spread things
out a little bit.

In addition, due to the cache being kept indefinitely this means
the old key will stay indefinitely. Perhaps not an issue given
it's just one key, which will clear on restart eventually?

Bug: T156924
Change-Id: I622e6618f2d4171626e4b272bcb11a97a85cb770

6 years agoconfig: Add unit tests for EtcdConfig
Timo Tijhof [Thu, 27 Apr 2017 04:15:51 +0000 (21:15 -0700)]
config: Add unit tests for EtcdConfig

Change-Id: I6e647985b98724b5448831a6fae1b2d2521fd363

6 years agoMerge "Avoid implicit globals"
jenkins-bot [Mon, 1 May 2017 21:39:51 +0000 (21:39 +0000)]
Merge "Avoid implicit globals"

6 years agoAvoid implicit globals
Ed Sanders [Mon, 1 May 2017 14:03:40 +0000 (15:03 +0100)]
Avoid implicit globals

Wrap in IIFE if variables is not intended to be global, otherwise
explicitly assign to window for better readability, and avoiding
problems if code were to get wrapped in IIFE later.

Change-Id: I2313daeaf00f27b6ea9eb6b907c066844c5d3836

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 1 May 2017 19:56:47 +0000 (21:56 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If2d4e2b342645f88f166ff54ce9102439599e24c

6 years agoRC Filters: Last revision filter group
Stephane Bisson [Mon, 1 May 2017 17:21:56 +0000 (13:21 -0400)]
RC Filters: Last revision filter group

New filter group to show changes related to the last
revision of a page or show changes on previous revisions.

Bug: T163561
Change-Id: Ifc376a34bbe564714285894f93ffb80aa82f5fdf

6 years agoRC Filters: Make filters header sticky
Stephane Bisson [Mon, 1 May 2017 14:30:19 +0000 (10:30 -0400)]
RC Filters: Make filters header sticky

Bug: T163431
Change-Id: Id6d3b1be6d9655cd65ff924e95aa9a8d464771b7

6 years agoRemove unnecessary Function.binds
Ed Sanders [Mon, 1 May 2017 14:02:21 +0000 (15:02 +0100)]
Remove unnecessary Function.binds

Also fix ,->; typo

Change-Id: Icf87ae6e2aa111f3cb578c7355c92ffc6019df55

6 years agoSpread and indent string-concatenations
Ed Sanders [Mon, 1 May 2017 13:56:04 +0000 (14:56 +0100)]
Spread and indent string-concatenations

Avoids single lint string concatenations and multi-line strings.

Change-Id: Iada91c1019cda87d48b13bdcff963d1950b54874

6 years agoAdd GenderAliases for namespaces
Eugene Gvozdetsky [Mon, 1 May 2017 12:18:29 +0000 (14:18 +0200)]
Add GenderAliases for namespaces

Change-Id: I16b54e35c4212ccc26e7c9d23ee898e29c04a69f

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 30 Apr 2017 19:57:26 +0000 (21:57 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id132ebc6e31dd5ef9c4a5e774c39c393aa67e3d5

6 years agoUse isSpecialPage() where possible
Fomafix [Sat, 29 Apr 2017 20:22:46 +0000 (22:22 +0200)]
Use isSpecialPage() where possible

Change-Id: Ie4d0838acf96a7ed4a1fe4cfdc901c77d3312174

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 29 Apr 2017 20:31:33 +0000 (22:31 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id5d126cf626391b5f7d562758a8a2e1a603fed21

6 years agoAvoid master queries in loadAndLazyInit() for miser mode
Aaron Schulz [Sat, 29 Apr 2017 05:10:43 +0000 (22:10 -0700)]
Avoid master queries in loadAndLazyInit() for miser mode

Bug: T92357
Change-Id: Idaef633d9039cdbfa3bd123018f2339c6d489fe4

6 years agoMerge "SpecialJavaScriptTest: Make sure we don't catch our own exception"
jenkins-bot [Sat, 29 Apr 2017 04:07:48 +0000 (04:07 +0000)]
Merge "SpecialJavaScriptTest: Make sure we don't catch our own exception"

6 years agoImprove EtcdConfig fallback logic
Aaron Schulz [Fri, 28 Apr 2017 20:56:20 +0000 (13:56 -0700)]
Improve EtcdConfig fallback logic

If the cache is stale and the lock keeps being acquired, but the re-fetch
fails each time, the method would end up failing after the timeout was
reached. Instead, use the stale cache if available.

Change-Id: Ieafc9de17e6c60d8eea7b937923b4ad548e99be8

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 28 Apr 2017 21:19:02 +0000 (23:19 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id3c6419b44d67846ad7aaf882a635a3b41a98cf3

6 years agoAdding explantation for why to use User::incEditCount()
Kaldari [Fri, 28 Apr 2017 20:45:25 +0000 (13:45 -0700)]
Adding explantation for why to use User::incEditCount()

... rather than User::incEditCountImmediate() for most cases.

Change-Id: Ia16baabaeaca5c726e1dd1fc2506dc0b85500b6e

6 years agoMerge "Simplify Image/Video/Audio rules using LESS nesting"
jenkins-bot [Fri, 28 Apr 2017 15:23:34 +0000 (15:23 +0000)]
Merge "Simplify Image/Video/Audio rules using LESS nesting"

6 years agoSimplify Image/Video/Audio rules using LESS nesting
Ed Sanders [Fri, 28 Apr 2017 12:30:51 +0000 (13:30 +0100)]
Simplify Image/Video/Audio rules using LESS nesting

Also allow Video/Audio to contain img instead of video
for VE support.

Change-Id: Ic54662bbcd50de70133c6581cd7d8025c872a7f4

6 years agoMerge "EtcdConfig: use array_key_exists(), the value can be null"
jenkins-bot [Fri, 28 Apr 2017 12:27:28 +0000 (12:27 +0000)]
Merge "EtcdConfig: use array_key_exists(), the value can be null"

6 years agoMerge "Add space version of img_upright and img_page for language de"
jenkins-bot [Fri, 28 Apr 2017 12:24:57 +0000 (12:24 +0000)]
Merge "Add space version of img_upright and img_page for language de"

6 years agoEtcdConfig: use array_key_exists(), the value can be null
Tim Starling [Fri, 28 Apr 2017 05:14:57 +0000 (15:14 +1000)]
EtcdConfig: use array_key_exists(), the value can be null

Change-Id: Iae175401da8d49f5475d8c88cc5390b16e7cba32

6 years agoMerge "Document rationale or primary use case for many indexes"
jenkins-bot [Fri, 28 Apr 2017 02:29:21 +0000 (02:29 +0000)]
Merge "Document rationale or primary use case for many indexes"

6 years agoFix help text for --d on shell.php
Brion Vibber [Fri, 28 Apr 2017 01:22:31 +0000 (18:22 -0700)]
Fix help text for --d on shell.php

1 is stderr, not 0

Change-Id: Iaee4ffd5767f8ae693e8ef19371ce38fe6bd1817

6 years agoAdd ConsoleLogger, use it for eval.php -d
Tim Starling [Thu, 27 Apr 2017 23:56:38 +0000 (09:56 +1000)]
Add ConsoleLogger, use it for eval.php -d

eval.php previously set $wgDebugLogFile to /dev/stdout. This had the
following problems:

* It doesn't work if the maintenance script is executed via sudo, since
  /dev/stdout is typically owned by the original user, so MW can't open
  it. Using php://stdout worked on HHVM but not PHP.
* Setting $wgDebugLogFile has no effect if the wiki uses MonologSpi.
* Setting $wgDebugLogFile has no effect on channels configured with
  $wgDebugLogGroups.
* stderr is a more appropriate place to send logging output.
* Writing to configuration variables is discouraged.

So, add ConsoleSpi, which is a very simple logging service provider
which sends all messages to stderr. This should be suitable for
debugging with eval.php or shell.php in WMF production or beta.

Change-Id: Ib0d6ce45e0cbecd58263fc4e360c63d4149acb3a

6 years agoCleanup postEdit and match styles to mw.notification
Ed Sanders [Mon, 10 Apr 2017 12:59:19 +0000 (13:59 +0100)]
Cleanup postEdit and match styles to mw.notification

* Remove HTML template
* Add mw-notification class and dependency
* Fix variable scoping issues so firing two notifications
  doesn't cause one to become stuck

Bug: T58313
Change-Id: I9a702d23a8a9b5cc098cbb413213d73813bec097

6 years agoMerge "Expire the cache of a User object when a group membership is set to expire"
jenkins-bot [Thu, 27 Apr 2017 20:03:40 +0000 (20:03 +0000)]
Merge "Expire the cache of a User object when a group membership is set to expire"