lhc/web/wiklou.git
8 years agoMerge "Added a tombstone comment to WANObjectCache"
jenkins-bot [Wed, 19 Aug 2015 00:46:12 +0000 (00:46 +0000)]
Merge "Added a tombstone comment to WANObjectCache"

8 years agoSync up with Parsoid parserTests.
C. Scott Ananian [Tue, 18 Aug 2015 23:24:27 +0000 (19:24 -0400)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit e2aa4e4159b9c7b5350567f26f5f14780843a368

Change-Id: I64b4e901ece0e66011b5110312885fab9c8b9cb8

8 years agoMerge "Migrate move protect log to new log system"
jenkins-bot [Tue, 18 Aug 2015 23:17:03 +0000 (23:17 +0000)]
Merge "Migrate move protect log to new log system"

8 years agoT106578: Update Sanitizer to match legal HTML5 character entities.
C. Scott Ananian [Wed, 22 Jul 2015 20:07:27 +0000 (15:07 -0500)]
T106578: Update Sanitizer to match legal HTML5 character entities.

Invalid HTML5 character entities become instances of UTF8_REPLACEMENT,
so we also ensure that checkCSS notices this and emits the proper
human-friendly sanitization notice.

Change-Id: I76cef7c772b1e3eba0af8dab6403e9100beab03a

8 years agoSupport IPv6 URLs in bracketed and auto links.
C. Scott Ananian [Thu, 8 Jan 2015 22:00:54 +0000 (17:00 -0500)]
Support IPv6 URLs in bracketed and auto links.

The corresponding patch for Parsoid is
Ibb33188cdfe2004e469c3f6ee6f30d34d1923283.

Task: T23261
Change-Id: Iff077bf31168b431febb243e2e62f2c6502616bc

8 years agoMigrate move protect log to new log system
umherirrender [Tue, 7 Jul 2015 20:36:41 +0000 (22:36 +0200)]
Migrate move protect log to new log system

Migrate the move protect log as first sub type of the protection log,
because it does not have complex log parameter, which needs some way of
handling/migration.
It also keeps the gerrit change smaller and hopefully makes review
easier.
The other sub types of the protection log will be migrated in a later
patch set.

This allows use of gender on Special:Log. Old message is kept for use
in IRC. A test was added to ensure an unchanged IRC message.

Bug: T47988
Change-Id: I57b3bd8a7dc823acdbb56520d2364f5542283373

8 years agoRevert "Localisation updates from https://translatewiki.net."
Raimond Spekking [Tue, 18 Aug 2015 19:40:43 +0000 (19:40 +0000)]
Revert "Localisation updates from https://translatewiki.net."

Previous changes in includes/api/i18n/qqq.json are overwritten now

This reverts commit 70a8ddb78ce354b780828e2a6c70aa3dcee791bd.

Change-Id: I783d4333843d02359af623cd0f18362963f03d0c

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 18 Aug 2015 18:58:57 +0000 (20:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1efd504c98c539d26753e01d501fb1d8a88a7a11

8 years agoMerge "Add American sign language (ase)"
jenkins-bot [Tue, 18 Aug 2015 18:47:44 +0000 (18:47 +0000)]
Merge "Add American sign language (ase)"

8 years agoMerge "Prevent the jumbling up of autocomments in RTL"
jenkins-bot [Tue, 18 Aug 2015 18:42:03 +0000 (18:42 +0000)]
Merge "Prevent the jumbling up of autocomments in RTL"

8 years agomediawiki.Upload, mediawiki.Upload.Dialog: Tweak documentation
Bartosz Dziewoński [Tue, 18 Aug 2015 16:11:50 +0000 (18:11 +0200)]
mediawiki.Upload, mediawiki.Upload.Dialog: Tweak documentation

Mostly whitespace changes, since my editor insists on highlighting
mixed tabs and spaces as errors.

Change-Id: I17ccff4ea80c15015fb156547abd0db87c1ab8a1

8 years agoPrevent the jumbling up of autocomments in RTL
Amir E. Aharoni [Tue, 18 Aug 2015 09:41:03 +0000 (12:41 +0300)]
Prevent the jumbling up of autocomments in RTL

Change-Id: I75f66dcd839ead0759f4c6e90ab0ddbc905a07d9

8 years agoMerge "Revert "resourceloader: Add must-revalidate to Cache-Control""
jenkins-bot [Tue, 18 Aug 2015 07:00:00 +0000 (07:00 +0000)]
Merge "Revert "resourceloader: Add must-revalidate to Cache-Control""

8 years agoMerge "Avoid some possible deadlocks on account creation"
jenkins-bot [Tue, 18 Aug 2015 05:25:59 +0000 (05:25 +0000)]
Merge "Avoid some possible deadlocks on account creation"

8 years agoAvoid some possible deadlocks on account creation
Aaron Schulz [Mon, 27 Jul 2015 19:28:59 +0000 (12:28 -0700)]
Avoid some possible deadlocks on account creation

* This uses a non-blocking $wgMemc lock to reserve the user
  name in question. This should prevent two threads from
  reaching LOCK IN SHARE MODE and getting stuck on INSERT.
  The lock is global to better cover auth plugins.
* This adds a BagOStuff::getScopedLock() convenience method.
  It uses less queries than LockManager by being EX only.
* Avoid extra lock attempt in lock() in non-blocking mode.
* Removed (un)lock() HashBagOStuff overrides that made it
  behave differently than other caches (wrt to re-entrance).

Bug: T106850
Change-Id: Iecf95206d712367f5d202f76ab0eaa9d7bdabf2b

8 years agoMerge "API: Use message-per-value for apihelp-query+protectedtitles-param-prop"
jenkins-bot [Tue, 18 Aug 2015 04:00:47 +0000 (04:00 +0000)]
Merge "API: Use message-per-value for apihelp-query+protectedtitles-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+usercontribs-param-prop"
jenkins-bot [Tue, 18 Aug 2015 00:09:28 +0000 (00:09 +0000)]
Merge "API: Use message-per-value for apihelp-query+usercontribs-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+recentchanges-param-prop"
jenkins-bot [Tue, 18 Aug 2015 00:05:03 +0000 (00:05 +0000)]
Merge "API: Use message-per-value for apihelp-query+recentchanges-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+alllinks-param-prop"
jenkins-bot [Tue, 18 Aug 2015 00:04:45 +0000 (00:04 +0000)]
Merge "API: Use message-per-value for apihelp-query+alllinks-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+allusers-param-prop"
jenkins-bot [Tue, 18 Aug 2015 00:03:08 +0000 (00:03 +0000)]
Merge "API: Use message-per-value for apihelp-query+allusers-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+blocks-param-prop"
jenkins-bot [Tue, 18 Aug 2015 00:03:05 +0000 (00:03 +0000)]
Merge "API: Use message-per-value for apihelp-query+blocks-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+categorymembers-param-prop"
jenkins-bot [Tue, 18 Aug 2015 00:03:01 +0000 (00:03 +0000)]
Merge "API: Use message-per-value for apihelp-query+categorymembers-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+exturlusage-param-prop"
jenkins-bot [Tue, 18 Aug 2015 00:02:57 +0000 (00:02 +0000)]
Merge "API: Use message-per-value for apihelp-query+exturlusage-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+filearchive-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:58:13 +0000 (23:58 +0000)]
Merge "API: Use message-per-value for apihelp-query+filearchive-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+iwbacklinks-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:57:22 +0000 (23:57 +0000)]
Merge "API: Use message-per-value for apihelp-query+iwbacklinks-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+iwlinks-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:56:55 +0000 (23:56 +0000)]
Merge "API: Use message-per-value for apihelp-query+iwlinks-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+langbacklinks-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:55:30 +0000 (23:55 +0000)]
Merge "API: Use message-per-value for apihelp-query+langbacklinks-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+langlinks-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:54:51 +0000 (23:54 +0000)]
Merge "API: Use message-per-value for apihelp-query+langlinks-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+linkshere-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:53:42 +0000 (23:53 +0000)]
Merge "API: Use message-per-value for apihelp-query+linkshere-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+logevents-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:53:38 +0000 (23:53 +0000)]
Merge "API: Use message-per-value for apihelp-query+logevents-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+pageswithprop-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:52:45 +0000 (23:52 +0000)]
Merge "API: Use message-per-value for apihelp-query+pageswithprop-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+search-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:46:22 +0000 (23:46 +0000)]
Merge "API: Use message-per-value for apihelp-query+search-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+siteinfo-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:46:10 +0000 (23:46 +0000)]
Merge "API: Use message-per-value for apihelp-query+siteinfo-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+tags-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:45:37 +0000 (23:45 +0000)]
Merge "API: Use message-per-value for apihelp-query+tags-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+users-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:44:04 +0000 (23:44 +0000)]
Merge "API: Use message-per-value for apihelp-query+users-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+userinfo-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:43:42 +0000 (23:43 +0000)]
Merge "API: Use message-per-value for apihelp-query+userinfo-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+watchlistraw-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:39:03 +0000 (23:39 +0000)]
Merge "API: Use message-per-value for apihelp-query+watchlistraw-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+allcategories-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:38:48 +0000 (23:38 +0000)]
Merge "API: Use message-per-value for apihelp-query+allcategories-param-prop"

8 years agoMerge "API: Use message-per-value for apihelp-query+categories-param-prop"
jenkins-bot [Mon, 17 Aug 2015 23:38:01 +0000 (23:38 +0000)]
Merge "API: Use message-per-value for apihelp-query+categories-param-prop"

8 years agoMerge "Pass user to WikiPage::doEditContent from EditPage"
jenkins-bot [Mon, 17 Aug 2015 23:22:53 +0000 (23:22 +0000)]
Merge "Pass user to WikiPage::doEditContent from EditPage"

8 years agoMerge "Expose ICU version on Special:Version"
jenkins-bot [Mon, 17 Aug 2015 23:08:16 +0000 (23:08 +0000)]
Merge "Expose ICU version on Special:Version"

8 years agoMerge "Cleanup after extraction of utfnormal library"
jenkins-bot [Mon, 17 Aug 2015 22:57:53 +0000 (22:57 +0000)]
Merge "Cleanup after extraction of utfnormal library"

8 years agoMerge "mediawiki.api: Small code quality and documentation tweaks"
jenkins-bot [Mon, 17 Aug 2015 22:57:14 +0000 (22:57 +0000)]
Merge "mediawiki.api: Small code quality and documentation tweaks"

8 years agoMerge "CSSMin: version URLs based on content, not mtime"
jenkins-bot [Mon, 17 Aug 2015 22:55:07 +0000 (22:55 +0000)]
Merge "CSSMin: version URLs based on content, not mtime"

8 years agoMerge "Fixed IDE warning in doIsRootJobOldDuplicate()"
jenkins-bot [Mon, 17 Aug 2015 22:36:41 +0000 (22:36 +0000)]
Merge "Fixed IDE warning in doIsRootJobOldDuplicate()"

8 years agoMerge "Include job UUID in doAck() error message"
jenkins-bot [Mon, 17 Aug 2015 22:35:35 +0000 (22:35 +0000)]
Merge "Include job UUID in doAck() error message"

8 years agoMerge "Made WANObjectCache::get() comments more accurate"
jenkins-bot [Mon, 17 Aug 2015 22:35:19 +0000 (22:35 +0000)]
Merge "Made WANObjectCache::get() comments more accurate"

8 years agoCSSMin: version URLs based on content, not mtime
Ori Livneh [Mon, 17 Aug 2015 02:15:40 +0000 (19:15 -0700)]
CSSMin: version URLs based on content, not mtime

The content of these files is more stable than their mtimes, which change
every time we roll out a new branch. Because MD5 avalanches well[0], using
the first five hexadecimal digits is sufficient to ensure that the chance
of two successive versions colliding is improbably small (roughly one in a
million).

[0]: https://en.wikipedia.org/wiki/Avalanche_effect

Change-Id: I1bdf94c58786d2545311b238476b48217a5a60af

8 years agomediawiki.feedback: Use .parent instead of .super
Bartosz Dziewoński [Mon, 17 Aug 2015 20:49:30 +0000 (22:49 +0200)]
mediawiki.feedback: Use .parent instead of .super

'super' is a reserved keyword and using it like this causes a syntax
error on IE 8.

Change-Id: I1ec22a7d0d61b5731ecba7653c9189eb702f968c

8 years agoAdd American sign language (ase)
Federico Leva [Mon, 17 Aug 2015 21:01:37 +0000 (23:01 +0200)]
Add American sign language (ase)

* Was added in 5fac9aa71974db71e161fb233bde42d0990167b4
* Quite a non-standard locale, but apparently there are clients
  that can make sense out of it.

Change-Id: I0a7acc185d8c035fdb3dd649eb74f7e70bc2304e

8 years agoSync up with Parsoid parserTests.
C. Scott Ananian [Mon, 17 Aug 2015 20:52:33 +0000 (16:52 -0400)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 48617c40c2eb9c7a421bb9c5b3ba0907fdec9c21

Change-Id: I565886079e64985844fc0a7c67ab74340b42f84a

8 years agoMerge "Only convert boolean true/false to !0/!1"
jenkins-bot [Mon, 17 Aug 2015 19:17:11 +0000 (19:17 +0000)]
Merge "Only convert boolean true/false to !0/!1"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 17 Aug 2015 18:53:28 +0000 (20:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Idea3aef13a224782cf99204aad0426aefe29fde4

8 years agomediawiki.api: Small code quality and documentation tweaks
Bartosz Dziewoński [Fri, 14 Aug 2015 23:35:08 +0000 (01:35 +0200)]
mediawiki.api: Small code quality and documentation tweaks

Change-Id: I70380e8f821c66ad08bfe12e242b204ffed9071d

8 years agoMerge "Fix return value comment on wfMemoryLimit()"
jenkins-bot [Mon, 17 Aug 2015 15:55:08 +0000 (15:55 +0000)]
Merge "Fix return value comment on wfMemoryLimit()"

8 years agoFix return value comment on wfMemoryLimit()
Brad Jorsch [Mon, 17 Aug 2015 15:42:10 +0000 (11:42 -0400)]
Fix return value comment on wfMemoryLimit()

It was changed incorrectly in I893ddd77.

Change-Id: I1f1e3c53a2cefe69b42ef338aa2a6b126e3d5526

8 years agoRename variable to avoid collisions
Brad Jorsch [Mon, 17 Aug 2015 15:01:49 +0000 (11:01 -0400)]
Rename variable to avoid collisions

The overwriting of $status in one switch case looks like a likely cause
of T109193, so let's rename one of the two.

Bug: T109193
Change-Id: I373f0e01d349883c7735c8e6acf9d258900c166e

8 years agoMerge "Remove unnecessary ZWNJ character [azb]"
jenkins-bot [Mon, 17 Aug 2015 12:23:28 +0000 (12:23 +0000)]
Merge "Remove unnecessary ZWNJ character [azb]"

8 years agoi18n: Make noarticletext direction aware
Ebrahim [Sun, 2 Aug 2015 23:08:37 +0000 (23:08 +0000)]
i18n: Make noarticletext direction aware

Currently https://fa.wikipedia.org/wiki/MediaWiki:TEST.js?uselang=fa
is displaying "noarticletext" in LTR which is wrong.

Bug: T60685
Change-Id: I4dc76dc1c5134c0dbe0988d6d0a3286a0e52242f

8 years agoSpecialAllPages: Fix a few subtle "Previous page" link bugs
Kevin Israel [Sat, 10 Jan 2015 11:44:19 +0000 (06:44 -0500)]
SpecialAllPages: Fix a few subtle "Previous page" link bugs

* When finding the start of the previous page, exclude redirects if
  "Hide redirects" is checked. Otherwise, if some of the previous 345
  wiki pages were redirects, an equal number of results would be
  repeated when going back.
* Use the DB key form of the title (not the unprefixed text form)
  when building the query.
* Don't select unnecessary rows beyond the start of the previous page.
  At the same time, fix a bug that could cause results close to the
  beginning to be skipped when going back.
* When finding the start of the first page, don't omit ORDER BY for
  MySQL and SQLite.
* Don't suppress the link when the unprefixed title is "0" or similar
  or is numerically equal to the "from" parameter value.
* Suppress the link when the title would come after the "from"
  parameter value, not just when it would be equal to that value.

Change-Id: I2cc6958b894afa824a5345871b5a27b01f9fcc73

8 years agoCleanup after extraction of utfnormal library
Kevin Israel [Mon, 17 Aug 2015 06:10:45 +0000 (02:10 -0400)]
Cleanup after extraction of utfnormal library

* Delete includes/compat/normal/.gitignore, which excluded files
  now located in various directories within the utfnormal repo.
* Remove "For NFC see includes/compat/normal" comments from
  maintenance/language, replacing them with a note that "This
  data file is used after normalizing to NFC."

Change-Id: I0ac990ec1a547b4c454ed738ce1dfffce0f53ba4

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 16 Aug 2015 19:39:27 +0000 (21:39 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I8752df5f72fd7ba63aeb440cd8203c46a1318c80

8 years agoRename mediawiki.legacy.feeds to mediawiki.feedlink
Bartosz Dziewoński [Sun, 16 Aug 2015 14:06:46 +0000 (16:06 +0200)]
Rename mediawiki.legacy.feeds to mediawiki.feedlink

Follow-up to d51317ccc24940b77f4f7226d9455c801c09b457. There's nothing
"legacy" about this newly added module.

Also updated comments and marked the copy in shared.css for removal
when cached page renders expire.

Change-Id: Iabaebe9bf1e11a06bb951769693b1be4404e5b00

8 years agoMerge "mediawiki.legacy.common: don't embed legacy images"
jenkins-bot [Sat, 15 Aug 2015 21:46:10 +0000 (21:46 +0000)]
Merge "mediawiki.legacy.common: don't embed legacy images"

8 years agoMerge "Add mediawiki.legacy.feeds"
jenkins-bot [Sat, 15 Aug 2015 21:24:36 +0000 (21:24 +0000)]
Merge "Add mediawiki.legacy.feeds"

8 years agoOnly convert boolean true/false to !0/!1
Ori Livneh [Sat, 15 Aug 2015 01:00:30 +0000 (18:00 -0700)]
Only convert boolean true/false to !0/!1

Fix-up for I5ab29b686b8. If we encounter stupid code like
`a.true = 1;` or `a = { true: 1 }`, we should not convert that to !0/!1.
Because JSMin barfs on such input, it is necessary to add another parameter to
the test method which specifies whether or not the minified JavaScript is
supposed to be valid JavaScript by the standards of JSMin.

Change-Id: Ib78c628147fdb95982d6e33e0ab298584fb63d0b

8 years agoAlways call setValidationHash() in MessageCache::saveToCaches()
Aaron Schulz [Sat, 15 Aug 2015 19:50:09 +0000 (12:50 -0700)]
Always call setValidationHash() in MessageCache::saveToCaches()

* This avoids constant churn when $wgUseLocalMessageCache is set to false
* Follow up to db464b8a847a

Bug: T109183
Change-Id: I8da324c53527da32d09964be6c3a92176af4ee7b

8 years agoMade WANObjectCache::get() comments more accurate
Aaron Schulz [Sat, 15 Aug 2015 19:33:58 +0000 (12:33 -0700)]
Made WANObjectCache::get() comments more accurate

Change-Id: I531c2dca6b552a6b3732d2506e7373c7d17b4b4c

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 15 Aug 2015 19:19:45 +0000 (21:19 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4bb5aeb31faebf7981341ce5ba49df8401739a7e

8 years agomediawiki.legacy.common: don't embed legacy images
Ori Livneh [Sat, 15 Aug 2015 03:53:23 +0000 (20:53 -0700)]
mediawiki.legacy.common: don't embed legacy images

This drops the /* @embed */ directive for the images referenced by the
mediawiki.legacy.common stylesheet. The images themselves and the styles which
apply them remain. They will simply not be pre-loaded as data URIs within the
stylesheet, which is fantastic because mediawiki.legacy.common is top-loaded on
all pages and embedded images make up nearly half of its weight. With this
change, the gzipped size of mediawiki.legacy.common drops from 27.6k to 15.6k.

Affected classes:

* `.mw-icon-question`: Used for tooltips generated by Preferences::getOptionFromUser.
* `.mw-help-field-hint`: Not in use since I8e092e9d.
* `.mw-small-spinner`: Not in use since I2a2556a0.
* `.mw-ajax-loader`: Not in use.

Change-Id: I6c7e592a502ae14b9f81165f10a1d4240e592649

8 years agoAdd mediawiki.legacy.feeds
Ori Livneh [Sat, 15 Aug 2015 19:01:58 +0000 (12:01 -0700)]
Add mediawiki.legacy.feeds

Instead of embedding feed icons in mediawiki.legacy.shared, which is loaded on
every page, embed them only in mediawiki.legacy.feeds, which is loaded only on
pages which have feedlinks.

Change-Id: Ife5d84fb95944cb24939936785f3d8c4d9c2c187

8 years agoMerge "mediawiki.legacy.config: use own help-field styling"
jenkins-bot [Sat, 15 Aug 2015 18:22:50 +0000 (18:22 +0000)]
Merge "mediawiki.legacy.config: use own help-field styling"

8 years agoMerge "Make PPFrame::RECOVER_COMMENTS actually work"
jenkins-bot [Sat, 15 Aug 2015 11:04:26 +0000 (11:04 +0000)]
Merge "Make PPFrame::RECOVER_COMMENTS actually work"

8 years agoFix some space-related phpcs warnings in includes/
Ricordisamoa [Fri, 14 Aug 2015 21:17:01 +0000 (23:17 +0200)]
Fix some space-related phpcs warnings in includes/

Change-Id: I7cf7206696a5e77bc02e3630d1d88d4c176ea844

8 years agoRemove unused globals
Ricordisamoa [Fri, 14 Aug 2015 21:46:12 +0000 (23:46 +0200)]
Remove unused globals

* $wgLogExceptionBacktrace from MWExceptionHandler
  unused since 77a397125fd1b901c3141cbfe7084a7534ff881b

* $wgPasswordPolicy from WebInstallerName
  unused since 6a69a4eb733bd6129533c93b7a1ca4564b16ac32

Change-Id: Ibaac1bad05f4326a2602958a93d4d46135bdca63

8 years agoMake PPFrame::RECOVER_COMMENTS actually work
Kevin Israel [Wed, 13 May 2015 11:54:12 +0000 (07:54 -0400)]
Make PPFrame::RECOVER_COMMENTS actually work

Because of a missing condition, it generally only had an effect on
output type Parser::OT_WIKI, and thus {{msgnw:}} would strip comments
except when substituted during a pre-save transform.

Bug: T98841
Change-Id: I1e47696434fe87475f9902e6bfb8990566456e2f

8 years agomediawiki.legacy.config: use own help-field styling
Ori Livneh [Sat, 15 Aug 2015 04:24:26 +0000 (21:24 -0700)]
mediawiki.legacy.config: use own help-field styling

Instead of using .mw-help-field-container from mediawiki.legacy to style help
tooltips, use a class that is specific to the WebInstaller and which is styled
in its stylesheet. This allows us to stop embedding it in mediawiki.legacy
(which is loaded on every page).

The CSS is copied directly from the styles for mw-help-field-container et al.
in mediawiki.legacy.

Change-Id: I8e092e9d2c91b5f70499d93c1134f43f2e96348c

8 years agomediawiki.special.upload: use spinner from jquery.spinner
Ori Livneh [Sat, 15 Aug 2015 04:13:53 +0000 (21:13 -0700)]
mediawiki.special.upload: use spinner from jquery.spinner

mediawiki.special.upload already depends on jquery.spinner, which supplies its
own spinner CSS classes which utilize the same image (spinner.gif) that
.mw-small-spinner uses. Both are /* @embed */-ed, which causes unnecessary
bloat. By using the class from jquery.spinner, we can stop embedding the one in
mediawiki.legacy. (This will happen in a follow-up patch.)

Change-Id: I2a2556a0a46b134a3e83f63733d988bbd8890323

8 years agoInclude job UUID in doAck() error message
Aaron Schulz [Fri, 14 Aug 2015 23:47:55 +0000 (16:47 -0700)]
Include job UUID in doAck() error message

Change-Id: Ib84a55bd92802684b98cc1cf06e5414bd1bd9fd6

8 years agoFixed IDE warning in doIsRootJobOldDuplicate()
Aaron Schulz [Fri, 14 Aug 2015 23:32:04 +0000 (16:32 -0700)]
Fixed IDE warning in doIsRootJobOldDuplicate()

Change-Id: I95110dff0755336d9bb245503e4ae856171064fc

8 years agoAdd pear/mail_mime-decode to composer suggests
Reedy [Fri, 14 Aug 2015 18:58:04 +0000 (19:58 +0100)]
Add pear/mail_mime-decode to composer suggests

Change-Id: Ieb8f2c9d007a9d97956f42354180745e4698a8c4

8 years agoMerge "Adding release note for category changes in watchlists"
jenkins-bot [Fri, 14 Aug 2015 22:47:48 +0000 (22:47 +0000)]
Merge "Adding release note for category changes in watchlists"

8 years agoAdd simplified storage API
jdlrobson [Tue, 11 Aug 2015 18:16:21 +0000 (11:16 -0700)]
Add simplified storage API

Provide a standard mechanism for accessing localStorage.

It may seems simplistic right now, but to give an idea of the why:
* We already have jquery.jStorage.js which is a much more heavyweight
approach to storing non-essential values.
* We are repeating ourselves a lot in extensions by having
to do localStorage detection and then deal with full localStorage.
In MobileFrontend we have a settings module. This is one of the reasons Gather
depends on MobileFrontend and I'm keen to remove that dependency.
* We might want to move to indexdb in future. Having a single API makes moving
this easier - we don't have to update everywhere that uses localStorage
* Saving non-string support would be useful. The API could be adjusted to take a
mixed second parameter that stringifys JSON objects.
* Cookie fallbacks are a possible alternative when localStorage is not supported. This allows
us to be agnostic of the storage mechanism going forward.

Note:
This doesn't reuse the handling in mediawiki.js as at this point
I am not sure there is value. mw.loader.store.enabled is false when
$wgResourceLoaderStorageEnabled is not true and this should work even
without that case. We can review this at a latter point.

See:
Id5c32bb7a662dda8d153490f7c47e972cabc1efd
I3fd44b0ae6633a7053aee247bc3c4704ba987bc8

Bug: T96155
Change-Id: Idb37352acecd745beb53aa8d77ea050851448e0d

8 years agoMessageCache: derive the hash from the cache contents
Ori Livneh [Thu, 13 Aug 2015 04:40:49 +0000 (21:40 -0700)]
MessageCache: derive the hash from the cache contents

Follow-up for I020617d, where I got this wrong. It is probable that multiple
application servers will try to build a local cache at the same time, in which
case they will cause the cache key to thrash. It is necessary that two
application servers building a local cache from the database generate the same
hash for a given set of messages.

Change-Id: Ieeefc2094a83be9401c466bec859c1588ddfbcdf

8 years agoMerge "ResourceLoader: apply minify-js filter to config scripts"
jenkins-bot [Fri, 14 Aug 2015 19:47:36 +0000 (19:47 +0000)]
Merge "ResourceLoader: apply minify-js filter to config scripts"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 14 Aug 2015 19:40:57 +0000 (21:40 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib58e7609fd477b4f763c9a7d2a982a56535a026f

8 years agoMerge "Optimize the order of styles and scripts in <head>"
jenkins-bot [Fri, 14 Aug 2015 19:26:33 +0000 (19:26 +0000)]
Merge "Optimize the order of styles and scripts in <head>"

8 years agoOptimize the order of styles and scripts in <head>
Ori Livneh [Thu, 13 Aug 2015 21:30:31 +0000 (14:30 -0700)]
Optimize the order of styles and scripts in <head>

Emit styles and scripts in the following order:
* Inline <script>...</script> tags.
* External stylesheets.
* External script tags.

I have attempted this before in I98d383a6, and subsequently reverted (in
I151f74a41) when it failed to show a performance improvement. Our ability
to measure performance were substantially poorer then, so I would like to
give this another try and see if it makes a dent in first render times.

Change-Id: I5e6c79c7041aa77bcdc6130e91e77aa538334c42

8 years agoResourceLoader: apply minify-js filter to config scripts
Ori Livneh [Fri, 14 Aug 2015 18:49:33 +0000 (11:49 -0700)]
ResourceLoader: apply minify-js filter to config scripts

Minify the JavaScript generated in ResourceLoader::makeConfigSetScript() unless
debug mode is set.

Change-Id: I45b5839803546c8e35e74b72c679777815294315

8 years agoAdding release note for category changes in watchlists
Kaldari [Fri, 14 Aug 2015 18:21:51 +0000 (11:21 -0700)]
Adding release note for category changes in watchlists

Bug: T9148
Change-Id: If49bc9dc7385b1bb87933d47643f21444824e3b1

8 years agoAdd descriptions for composer.json suggested packages
Bryan Davis [Fri, 14 Aug 2015 18:04:47 +0000 (12:04 -0600)]
Add descriptions for composer.json suggested packages

The value for a suggested package is intended to be a description of why
the library might be desired.
<https://getcomposer.org/doc/04-schema.md#suggest>

Change-Id: Ic9e7cc884baf82c493b72ef405cfd5ded810dded

8 years agoMerge "JavaScriptMinifier: minify booleans"
jenkins-bot [Fri, 14 Aug 2015 18:02:02 +0000 (18:02 +0000)]
Merge "JavaScriptMinifier: minify booleans"

8 years agoJavaScriptMinifier: minify booleans
Ori Livneh [Fri, 14 Aug 2015 05:31:22 +0000 (22:31 -0700)]
JavaScriptMinifier: minify booleans

Minify true to !0 and false to !1, like Google Closure Compiler and UglifyJS2.

Change-Id: I5ab29b686b812d64a2913611be091084c06d630b

8 years agoUserMailer comment cleanup
Bryan Davis [Fri, 14 Aug 2015 17:44:35 +0000 (11:44 -0600)]
UserMailer comment cleanup

Use `//` line comment markers.

Change-Id: I327bf2de17bd5996f3bf1b8e74c55f7067df3336

8 years agoAdd PEAR's Mail and Mail_Mime to composer.json's suggestions
Chad Horohoe [Wed, 29 Apr 2015 14:56:20 +0000 (07:56 -0700)]
Add PEAR's Mail and Mail_Mime to composer.json's suggestions

Bug: T97454
Change-Id: Ib9f0f5329249b504814d08638f5b7fbde091344c

8 years agoMore multi-DC tweaks to MessageCache::load()
Aaron Schulz [Wed, 12 Aug 2015 02:53:03 +0000 (19:53 -0700)]
More multi-DC tweaks to MessageCache::load()

* Use hash key volatility to propagate invalidations over DCs
  in addition to memcached->APC instances.
* Make use of stale APC cache due to hash mismatch instead
  of waiting around in some cases. This is similar to the
  TTL expiry and volatility cases.
* Renamed $hashExpired and added some comments for clarity.

Change-Id: I8890fb174cae72c4ce8872df64f52f5cbd55183b

8 years agoFix some newlines in en.json of API
umherirrender [Thu, 6 Aug 2015 09:09:54 +0000 (11:09 +0200)]
Fix some newlines in en.json of API

The api modules are grouped with newlines, but some newlines where
misplaced.

Change-Id: I8ba1fc9cffe0466721b9b96ddd958a23aa65cf1b

8 years agoPass user to WikiPage::doEditContent from EditPage
umherirrender [Fri, 14 Aug 2015 12:51:32 +0000 (14:51 +0200)]
Pass user to WikiPage::doEditContent from EditPage

This avoids the use of $wgUser inside of WikiPage::doEditContent.
It does not avoid the use of $wgUser in general, because EditPage does
not know about context, but it will make the indirect use visible and a
rewrite of EditPage can address the issue better.

Change-Id: Ifbcf52f2f076dc5c177bea22f90eb3b9fb8e3224

8 years agoIgnore tagfilter url parameter on Special:EditTags for log items
umherirrender [Fri, 14 Aug 2015 08:09:36 +0000 (10:09 +0200)]
Ignore tagfilter url parameter on Special:EditTags for log items

There is no need to pre-filter the seleteced log items for a tag.
This avoids use of $wgRequest in ChangeTags::modifyDisplayQuery

Similar to I5899a66ad8c500f058ce006c623d3e20c5bf8508

Change-Id: I36c2e2c638dc2418b9fb5b07c46a24235746d99f

8 years agoMerge "Enable users to watch category membership changes"
jenkins-bot [Fri, 14 Aug 2015 06:58:48 +0000 (06:58 +0000)]
Merge "Enable users to watch category membership changes"