lhc/web/wiklou.git
8 years agoMerge "Skip adding wikitext test pages in PrefixSearchTest if NS_MAIN is not wikitext"
jenkins-bot [Thu, 20 Aug 2015 17:18:37 +0000 (17:18 +0000)]
Merge "Skip adding wikitext test pages in PrefixSearchTest if NS_MAIN is not wikitext"

8 years agomediawiki.api.upload: Clean up the iframe and form when done
Bartosz Dziewoński [Tue, 18 Aug 2015 22:10:59 +0000 (00:10 +0200)]
mediawiki.api.upload: Clean up the iframe and form when done

Bug: T107620
Change-Id: I91da424cf9e10d751cfe160fdd650ba9f56ad9f3

8 years agoMerge "Add public keywords to QueryPage subclasses"
jenkins-bot [Thu, 20 Aug 2015 14:16:24 +0000 (14:16 +0000)]
Merge "Add public keywords to QueryPage subclasses"

8 years agoMerge "CSSMin: remove dot segments in relative local URLs"
jenkins-bot [Thu, 20 Aug 2015 14:11:36 +0000 (14:11 +0000)]
Merge "CSSMin: remove dot segments in relative local URLs"

8 years agoAdd public keywords to QueryPage subclasses
Ricordisamoa [Thu, 20 Aug 2015 13:02:54 +0000 (15:02 +0200)]
Add public keywords to QueryPage subclasses

Follows a5c9c9607e034a00edc79146ec778e3d9c05e50a

Change-Id: I81b1d49e017792dea2c7eb0d98e99656576cf497

8 years agoReplace 'emailpage' with 'emailuser'
mjbmr [Thu, 20 Aug 2015 10:41:09 +0000 (10:41 +0000)]
Replace 'emailpage' with 'emailuser'

Bug: T109614
Change-Id: I345d0091b17ef61499dc7d8c170308fd8194dc00

8 years agoSwitched job run time profiling to context getStats()
Aaron Schulz [Sat, 15 Aug 2015 21:29:39 +0000 (14:29 -0700)]
Switched job run time profiling to context getStats()

* This replaces the scoped profiling calls

Change-Id: I73caffad0e0d31d9ffbd3c0decfe31e17ea85398

8 years agoMerge "API i18n: Split existing non-English prop messages for param-per-value"
jenkins-bot [Wed, 19 Aug 2015 19:45:14 +0000 (19:45 +0000)]
Merge "API i18n: Split existing non-English prop messages for param-per-value"

8 years agoFixed BagOStuff getScopedLock() docs
Aaron Schulz [Wed, 19 Aug 2015 18:31:09 +0000 (11:31 -0700)]
Fixed BagOStuff getScopedLock() docs

Change-Id: I4d6d3211e93ee1c279728ff787acff558a47fbee

8 years agoAPI i18n: Split existing non-English prop messages for param-per-value
Brad Jorsch [Wed, 19 Aug 2015 19:24:40 +0000 (15:24 -0400)]
API i18n: Split existing non-English prop messages for param-per-value

A series of recent patches split many prop messages for param-per-value
mode. Per request, do the same for the existing non-English messages.

Bug: T109541
Change-Id: I80bcfc0e0680d71f59373c6bc12ed91168ced16a

8 years agoMerge "Escape return of {{int:}} if message not exists"
jenkins-bot [Wed, 19 Aug 2015 17:31:48 +0000 (17:31 +0000)]
Merge "Escape return of {{int:}} if message not exists"

8 years agoMerge "Remove maintenance script fixSlaveDesync.php"
jenkins-bot [Wed, 19 Aug 2015 17:12:03 +0000 (17:12 +0000)]
Merge "Remove maintenance script fixSlaveDesync.php"

8 years agoRemove maintenance script fixSlaveDesync.php
Kevin Israel [Wed, 19 Aug 2015 10:26:01 +0000 (06:26 -0400)]
Remove maintenance script fixSlaveDesync.php

Though this script was run on Wikimedia sites years ago (see T8399), there
are enough reasons to doubt it will be run again:

* There is a hardcoded maximum page_id value, which would have to be
  changed or removed before reuse.
* It scans the entire page table in a single SELECT query and stores all
  values of page_id and page_latest in a PHP array, which might not be
  feasible on a large wiki.
* It writes directly to slaves. In contrast, the manual page for
  pt-table-sync (from Percona Toolkit) says in general, "[...] it always
  makes the changes on the replication master, never the replication slave
  directly. This is in general the only safe way to bring a replica back
  in sync [...]".
* It only works on the page/revision/text tables. In contrast, pt-table-sync
  can work on any table having a primary key.
* It does try to detect whether revisions are missing on the master (instead
  of on the slave). However, this won't work because of a bug introduced in
  r91243 / bb1df74f8715 (it actually queries the master twice and puts the
  second result set in $slaveIDs).

Change-Id: I85c98821af308abf7dde8068d7cbca17d06b1362

8 years agoMerge "Set 'List-Help' header for watchlist emails"
jenkins-bot [Wed, 19 Aug 2015 10:26:22 +0000 (10:26 +0000)]
Merge "Set 'List-Help' header for watchlist emails"

8 years agoMerge "Avoid full RC table scans in ChangeTags::updateTags()"
jenkins-bot [Wed, 19 Aug 2015 09:46:42 +0000 (09:46 +0000)]
Merge "Avoid full RC table scans in ChangeTags::updateTags()"

8 years agoSet 'List-Help' header for watchlist emails
Kunal Mehta [Tue, 7 Jul 2015 18:44:25 +0000 (11:44 -0700)]
Set 'List-Help' header for watchlist emails

Added an option to UserMailer::sendMail() to allow adding arbitrary
headers to emails.

Bug: T58315
Change-Id: I01a60430bf39f6bd104269b7246767f016eb9cd5

8 years agoAvoid full RC table scans in ChangeTags::updateTags()
Aaron Schulz [Wed, 19 Aug 2015 09:25:18 +0000 (02:25 -0700)]
Avoid full RC table scans in ChangeTags::updateTags()

* Various hooks that add change tags hit this code path now

Change-Id: I0b1fe7bef1e691699b2f6462ba7ac22b23253807

8 years agoMerge "Fixed BufferingStatsdDataFactory::timing() callers to use ms"
jenkins-bot [Wed, 19 Aug 2015 08:55:14 +0000 (08:55 +0000)]
Merge "Fixed BufferingStatsdDataFactory::timing() callers to use ms"

8 years agoMerge "RC: Handle getLine returning null, which breaks Redis engine (at least HHVM)"
jenkins-bot [Wed, 19 Aug 2015 03:24:44 +0000 (03:24 +0000)]
Merge "RC: Handle getLine returning null, which breaks Redis engine (at least HHVM)"

8 years agoRC: Handle getLine returning null, which breaks Redis engine (at least HHVM)
Matthew Flaschen [Wed, 19 Aug 2015 02:57:39 +0000 (22:57 -0400)]
RC: Handle getLine returning null, which breaks Redis engine (at least HHVM)

Bug: T109544
Change-Id: I02dcfc7a10a74571232a898f1ef348f8dbc48b45

8 years agoUpdate OOjs UI to v0.12.5
James D. Forrester [Wed, 19 Aug 2015 02:12:16 +0000 (19:12 -0700)]
Update OOjs UI to v0.12.5

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.12.5/History.md

Change-Id: Ica420fcc44f7dd91cb40d487d3f4301c9836c220

8 years agoFixed BufferingStatsdDataFactory::timing() callers to use ms
Aaron Schulz [Tue, 18 Aug 2015 20:20:39 +0000 (13:20 -0700)]
Fixed BufferingStatsdDataFactory::timing() callers to use ms

* The interface actually demands this

Change-Id: I1e334c2696a8a8eca73a6ae7f71428190cad3107

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 agoCSSMin: remove dot segments in relative local URLs
Ori Livneh [Sun, 16 Aug 2015 17:32:13 +0000 (10:32 -0700)]
CSSMin: remove dot segments in relative local URLs

Call wfRemoveDotSegments() (if available) on relative local URLs, so that
relative dot segments are collapsed.

Change-Id: Icc1c23a2a7d96c869412965bd8c3730d3c3b3a53

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