Kunal Mehta [Fri, 25 Sep 2015 17:56:34 +0000 (10:56 -0700)]
Add // @codingStandardsIgnoreFile to FormatMetadata
PHPCS can't handle the level of nesting in this file and the tokenizer
dies.
Change-Id: Ib660e034ad21202303dd443e573e54dd8ed05a43
Kunal Mehta [Fri, 25 Sep 2015 17:54:30 +0000 (10:54 -0700)]
Fix spacing in ReplacementArray
Change-Id: I8cb23892a06ebd8ad0f0726e8a6f4c853d0eb4c3
Kunal Mehta [Fri, 25 Sep 2015 16:54:12 +0000 (09:54 -0700)]
Add @codingStandardsIgnoreFile to ConsecutiveParametersMatcher.php
It was apparently copied from upstream, and doesn't match our coding
conventions.
Change-Id: I6da7ce6f29c9dff007f81a6fbf07dcc6ad37f04c
addshore [Fri, 25 Sep 2015 15:22:22 +0000 (16:22 +0100)]
Move LogFormatter test comment block
This was missed in:
https://gerrit.wikimedia.org/r/#/c/239783/
Ia5016c82c00dd7c35a6f1253d6e385b587ec485e
Change-Id: Ibf537aaca2a0ca9d2c509499f6da5b9e51b06037
umherirrender [Sat, 22 Aug 2015 18:29:00 +0000 (20:29 +0200)]
Migrate protect log to new log system
This localize the protect type, level and expiry on Special:Log/protect.
To allow i18n there are some details stored in the log params of new log
items, these details also shown on API output.
The details cannot get from the old existing data, because there are
containing L10n strings therefore i18n works only for new items.
In the api and for IRC the old description text is still stored in the
log params for backward compatibility.
This allows use of gender on Special:Log. Old messages are kept for use
in IRC. Tests already exists to ensure an unchanged IRC message.
Bug: T47988
Change-Id: I3bb85c61b857972e66c99c499d7d785c88cafb25
Bartosz Dziewoński [Fri, 25 Sep 2015 14:23:09 +0000 (16:23 +0200)]
MovePageForm: Remove incorrectly copied line (dead code)
Follow-up to
5befb9b74790a99aec5514ad8f8784a4fb085288.
Change-Id: I46a6efcea701f3daccc874bd914cecc4f2db67bc
Glaisher [Fri, 25 Sep 2015 11:46:17 +0000 (16:46 +0500)]
MovePageForm: Add value attribute to reason field back again
Bug: T113718
Change-Id: Ie51a301a9d5e2c5865ae19b7c6113eb4bf24c8d4
jenkins-bot [Fri, 25 Sep 2015 09:49:55 +0000 (09:49 +0000)]
Merge "mediawiki.action.edit.preview: Remove use of deprecated 'modulemessages'"
jenkins-bot [Fri, 25 Sep 2015 07:08:53 +0000 (07:08 +0000)]
Merge "Replacing old references from Bugzilla to Phabricator"
jenkins-bot [Fri, 25 Sep 2015 05:20:59 +0000 (05:20 +0000)]
Merge "phpunit: Set $wgMainStash to 'hash' during test execution"
Timo Tijhof [Fri, 25 Sep 2015 04:51:01 +0000 (05:51 +0100)]
phpunit: Set $wgMainStash to 'hash' during test execution
Also clean up the other cache settings to match their order
as defined in DefaultSettings.php.
Don't disable MessageCacheType, ParserCacheType etc. This could
prevent bugs from happening during tests. They are enabled by default
in MediaWiki with CACHE_ANYTHING. At least let them use 'hash'
during tests to resemble a more realistic environment.
Change-Id: Id9edf33c600db3ac4d837e1674a8eb2f5363a4f8
Kunal Mehta [Fri, 25 Sep 2015 01:27:28 +0000 (18:27 -0700)]
Move FileContentsHasher into includes/utils/
The class only contains two dependencies upon MediaWiki (ObjectCache &
wfGlobalCacheKey) which are suitable for inclusion in the utils
directory.
Change-Id: I85b4c763be2670c40f26d93e75cedcb68eaa7987
jenkins-bot [Fri, 25 Sep 2015 00:43:23 +0000 (00:43 +0000)]
Merge "Add unit tests for FileContentsHasher"
jenkins-bot [Fri, 25 Sep 2015 00:32:55 +0000 (00:32 +0000)]
Merge "phpunit: Replace APC with HashBagOStuff during a test"
jenkins-bot [Thu, 24 Sep 2015 23:16:00 +0000 (23:16 +0000)]
Merge "CurlHttpRequest: Follow redirects even under open_basedir"
jenkins-bot [Thu, 24 Sep 2015 23:15:56 +0000 (23:15 +0000)]
Merge "Use wikimedia/cldr-plural-rule-parser"
Aaron Schulz [Thu, 24 Sep 2015 20:00:12 +0000 (13:00 -0700)]
Moved all load balancer classes to /loadbalancer
* Also split out LBFactory classes to their own files
Change-Id: I9e649878afcffdb736c09c0574e5f99b1e72382f
Derk-Jan Hartman [Sun, 9 Mar 2014 23:37:27 +0000 (00:37 +0100)]
jquery.tablesorter: Improve detection and handling of isoDate
Bug: T54842
Change-Id: I193870dcc97477a4fd52a75d3beb9db21e64f171
maurelio [Thu, 24 Sep 2015 21:23:13 +0000 (23:23 +0200)]
Replacing old references from Bugzilla to Phabricator
Change-Id: Ib1c4eba7317bba5a61d82f31cf43541cd45f64a4
jenkins-bot [Thu, 24 Sep 2015 20:19:35 +0000 (20:19 +0000)]
Merge "Remove $this reference in static method"
Niklas Laxström [Thu, 24 Sep 2015 07:15:49 +0000 (09:15 +0200)]
Use wikimedia/cldr-plural-rule-parser
Replaces the parser included in MediaWiki with same code in
a library.
Change-Id: I1d2675466a543269e17faf213aa68d2b7afaf78e
Translation updater bot [Thu, 24 Sep 2015 19:14:52 +0000 (21:14 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I3d916f4015f1885e3ac041c3f780209e0dee35d6
jenkins-bot [Thu, 24 Sep 2015 18:28:52 +0000 (18:28 +0000)]
Merge "oyejorge/less.php 1.7.0.5 → 1.7.0.8"
jenkins-bot [Thu, 24 Sep 2015 18:22:29 +0000 (18:22 +0000)]
Merge "Load module mediawiki.page.gallery.styles for all ImageGalleries"
jenkins-bot [Thu, 24 Sep 2015 18:20:25 +0000 (18:20 +0000)]
Merge "Lowered $wgUpdateRowsPerJob to avoid slave lag"
Ori Livneh [Thu, 24 Sep 2015 18:13:50 +0000 (11:13 -0700)]
oyejorge/less.php 1.7.0.5 → 1.7.0.8
Bug: T113187
Bug: T113112
Change-Id: I4b78f78e5427e09ca97f5ceb2dbf290d5ef71aa8
jenkins-bot [Thu, 24 Sep 2015 18:05:39 +0000 (18:05 +0000)]
Merge "Fix type hint in unprefixRow"
jenkins-bot [Thu, 24 Sep 2015 18:04:40 +0000 (18:04 +0000)]
Merge "Remove unused argument"
jenkins-bot [Thu, 24 Sep 2015 17:52:50 +0000 (17:52 +0000)]
Merge "Remove dead code"
Aaron Schulz [Thu, 24 Sep 2015 17:49:28 +0000 (10:49 -0700)]
Lowered $wgUpdateRowsPerJob to avoid slave lag
Bug: T95501
Change-Id: I3819391a55867aa60a6588336fe1c56ac991c2f9
jenkins-bot [Thu, 24 Sep 2015 17:34:32 +0000 (17:34 +0000)]
Merge "Remove unused $pageSet var"
jenkins-bot [Thu, 24 Sep 2015 17:27:31 +0000 (17:27 +0000)]
Merge "RollbackAction: Remove dead argument"
jeroendedauw [Thu, 24 Sep 2015 17:16:27 +0000 (19:16 +0200)]
Fix type hint in unprefixRow
Change-Id: Iba80cadfdb06b3f9b3f5a6e1d367260405bea1d0
jeroendedauw [Thu, 24 Sep 2015 17:08:38 +0000 (19:08 +0200)]
RollbackAction: Remove dead argument
Change-Id: Icd1584460e68422e50d4391bfbdf0d938ab1c1cf
jeroendedauw [Thu, 24 Sep 2015 17:10:45 +0000 (19:10 +0200)]
Remove unused argument
Change-Id: I7e7cf2b1f99834a140d0213c39cc67cfbc481ec9
jeroendedauw [Thu, 24 Sep 2015 17:06:59 +0000 (19:06 +0200)]
Remove unused $pageSet var
Change-Id: Ic9c8bf9ed840703128a4c0e873ef7d70b6155494
C. Scott Ananian [Thu, 24 Sep 2015 17:03:22 +0000 (13:03 -0400)]
Typo fix to phab reference in comment
This got inadvertently corrupted in the bugzilla->phab cleanup done
in
271da881279417.
Change-Id: Ic70a9bd167e76800466a00521f5564d9d13c7c2b
jeroendedauw [Thu, 24 Sep 2015 17:06:19 +0000 (19:06 +0200)]
Remove dead code
Change-Id: Iafcb15a8843889bf7fbfb191b64d86e9f8561185
Timo Tijhof [Thu, 24 Sep 2015 17:02:43 +0000 (18:02 +0100)]
mediawiki.action.edit.preview: Remove use of deprecated 'modulemessages'
Deprecated as of MediaWiki 1.26, replaced with an empty array.
Change-Id: Ie809b22629e0859ef86c0bdc0fc930e85c7eae93
jenkins-bot [Thu, 24 Sep 2015 15:49:25 +0000 (15:49 +0000)]
Merge "Some bugzilla.wikimedia.org -> phabricator.wikimedia.org changes"
jenkins-bot [Thu, 24 Sep 2015 15:32:24 +0000 (15:32 +0000)]
Merge "Don't attempt to render block if none of the lines can be shown"
jenkins-bot [Thu, 24 Sep 2015 15:31:23 +0000 (15:31 +0000)]
Merge "Fix PHP notice when logging the result of a DNS blacklist check."
umherirrender [Sat, 12 Sep 2015 13:54:13 +0000 (15:54 +0200)]
Some bugzilla.wikimedia.org -> phabricator.wikimedia.org changes
Changed some old bugzilla links to new phabricator links in comments,
test data and error message. This reduces the need for redirects from
old bugzilla to new phabricator from our source code.
Change-Id: Id98278e26ce31656295a23f3cadb536859c4caa5
jenkins-bot [Thu, 24 Sep 2015 15:13:21 +0000 (15:13 +0000)]
Merge "Sync up with Parsoid parserTests."
umherirrender [Wed, 23 Sep 2015 19:40:51 +0000 (21:40 +0200)]
Load module mediawiki.page.gallery.styles for all ImageGalleries
Move the added module from Parser.php to TraditionalImageGallery,
because there the gallerybox class is added to the html and at the
moment all core image galleries are extending the traditional one.
That brings the styles back for special pages like Special:NewFiles,
Special:MostImages and also on category pages with media files.
Follows Ib1aef04dc4fece78e6615386ecaef6a9f368f49e
Bug: T113511
Change-Id: I32697c2c65824d7622c1840330d6074ebb68b488
jenkins-bot [Thu, 24 Sep 2015 14:38:58 +0000 (14:38 +0000)]
Merge "tests: add structure and less tests to 'skins' suite"
jenkins-bot [Thu, 24 Sep 2015 12:47:40 +0000 (12:47 +0000)]
Merge "Skip ImportTest if allow_url_fopen disabled"
jenkins-bot [Thu, 24 Sep 2015 12:41:09 +0000 (12:41 +0000)]
Merge "Fix exception in Import, when import of a revision fails"
Ori Livneh [Thu, 24 Sep 2015 06:29:29 +0000 (23:29 -0700)]
Add unit tests for FileContentsHasher
Adds two unit tests for the FileContentsHasher class introduced in I1ff61153.
Change-Id: I711db6bb25c018d36fd89c8ab2dbe8d11ed94537
Timo Tijhof [Thu, 24 Sep 2015 12:23:15 +0000 (13:23 +0100)]
phpunit: Replace APC with HashBagOStuff during a test
* Ensures values don't survive the unit test run.
* Ensures a clean state for each test.
Change-Id: I94e1ac14096fb4c4071fe9960d9465e60f27a89d
jenkins-bot [Thu, 24 Sep 2015 12:07:18 +0000 (12:07 +0000)]
Merge "Add language 'olo' Livvi-Karelian"
jenkins-bot [Thu, 24 Sep 2015 12:07:14 +0000 (12:07 +0000)]
Merge "resourceloader: Keep module_deps handling inside module base class"
Raimond Spekking [Mon, 14 Sep 2015 20:25:55 +0000 (20:25 +0000)]
Add language 'olo' Livvi-Karelian
First export with I4893e65a430118dbe35f90144afa492899f90150
Change-Id: I8b77182c0c09058d7361785bc1af0194bcc80ae6
saper [Tue, 11 Nov 2014 22:53:45 +0000 (23:53 +0100)]
Skip ImportTest if allow_url_fopen disabled
Workaround for:
Bug: 73283
Change-Id: I7afbf4dba358c89f9ba78042d82c35df1d2258e8
jenkins-bot [Thu, 24 Sep 2015 11:13:25 +0000 (11:13 +0000)]
Merge "i18n: mw.Upload.BookletLayout: Update message names"
Prateek Saxena [Thu, 24 Sep 2015 10:25:50 +0000 (15:55 +0530)]
i18n: mw.Upload.BookletLayout: Update message names
The messages that are no longer in the upload dialog still have the
'upload-dialog-' prefix. Replacing those with 'upload-process-' and
'upload-form-' where appropriate.
Change-Id: If02482f06f6bb634079a9311150fc15e0c95fd4b
Arlo Breault [Thu, 24 Sep 2015 08:25:52 +0000 (10:25 +0200)]
Sync up with Parsoid parserTests.
This now aligns with Parsoid commit
6619409e60a3208144836970773f191e7a6d147f
Change-Id: Iea6199d2d6a314f118febdc2308be1723a9970d2
haritha28 [Mon, 14 Sep 2015 07:08:32 +0000 (12:38 +0530)]
Add GENDER support
The message Emailuserfooter has been modified
by adding the GENDER support with the parameters
$1 and $2.
Bug: T111944
Change-Id: I7df3027d0cac203f0147de845b49b1a3b6ce1c10
Timo Tijhof [Thu, 17 Sep 2015 22:14:46 +0000 (23:14 +0100)]
resourceloader: Keep module_deps handling inside module base class
Most of it was already there (SELECT in preloadInfo, and in-class holder via
setFileDependencies) but the logic to write to the database was within
the file module class.
Moving it the other way around may make more sense in the future, but for
the moment ResourceLoader.php makes assumptions about all modules being
able to store setFileDependencies as read from the database. Whether or not
a class currently implements a way to write to that table.
Change-Id: I06b5da4144798197478c66e8b9ccd4cc62cf6fb6
jenkins-bot [Thu, 24 Sep 2015 06:52:35 +0000 (06:52 +0000)]
Merge "Use 'Create account' for button in Special:UserLogin/Signup"
Devi Krishnan [Sat, 12 Sep 2015 14:31:41 +0000 (20:01 +0530)]
Use 'Create account' for button in Special:UserLogin/Signup
'Create another account' button in the Special:UserLogin/Signup section
changed to 'Create account'.
Bug: T91614
Change-Id: Ib7cb81c89e2a922ac9029c167c09e28a12207372
jenkins-bot [Thu, 24 Sep 2015 01:14:35 +0000 (01:14 +0000)]
Merge "Set $wgBlockAllowsUTEdit = true; by default"
jenkins-bot [Thu, 24 Sep 2015 01:02:05 +0000 (01:02 +0000)]
Merge "Make $file->getLength() return duration of GIF and APNG files."
jenkins-bot [Thu, 24 Sep 2015 01:00:17 +0000 (01:00 +0000)]
Merge "resourceloader: Use FileContentsHasher in safeFileHash()"
Brian Wolff [Sun, 15 Jun 2014 00:42:13 +0000 (21:42 -0300)]
Set $wgBlockAllowsUTEdit = true; by default
This setting allows blocked users to edit their talk page, unless
talk page editing is specificly revoked in the Special:Block screen.
Almost all Wikimedia wikis do this, to the point where many people
don't even realize it's a config option.
Note: Existing blocks will not be affected by this setting change.
Change-Id: I05194f3fb313098284c474c948d7d26541ab6094
Ori Livneh [Wed, 23 Sep 2015 08:11:58 +0000 (01:11 -0700)]
resourceloader: Use FileContentsHasher in safeFileHash()
Replace the one-off code for APC-assisted file content hashing from I5ceb8537c
with a call to the FileContentsHasher class introduced in I1ff61153.
Change-Id: I8e4c3d5a5e7cdf6455a43769261d742b0255622c
Brian Wolff [Sun, 14 Sep 2014 21:26:05 +0000 (18:26 -0300)]
Make $file->getLength() return duration of GIF and APNG files.
Its not just ogg files that have a duration, animated GIFs
and APNGs do too.
After If172a1cba is merged, this will show up in the api.
Change-Id: Ie7cf00df34950ae404fcf655dd16397a273e5523
jenkins-bot [Thu, 24 Sep 2015 00:44:39 +0000 (00:44 +0000)]
Merge "resourceloader: Improve caching for LESS file compilation"
Ori Livneh [Wed, 23 Sep 2015 07:47:40 +0000 (00:47 -0700)]
resourceloader: Improve caching for LESS file compilation
Caching the output of a LESS compiler is tricky, because a LESS file may
include additional LESS files via @imports, in which case the cache needs
to vary as the contents of those files vary (and not just the contents of
the primary LESS file).
To solve this, we first introduce a utility class, FileContentsHasher. This
class is essentially a smart version of md5_file() -- given one or more file
names, it computes a hash digest of their contents. It tries to avoid
re-reading files by caching the hash digest in APC and re-using it as long as
the files' mtimes have not changed. This is the same approach I used in
I5ceb8537c.
Next, we use this class in ResourceLoaderFileModule in the following way:
whenever we compile a LESS file, we cache the result as an associative array
with the following keys:
* `files` : the list of files whose contents influenced the compiled CSS.
* `hash` : a hash digest of the combined contents of those files.
* `css` : the CSS output of the compiler itself.
Before using a cached value, we verify that it is still current by asking
FileContentHasher for a hash of the combined contents of all referenced files,
and we compare that against the value of the `hash` key of the cached entry.
Bug: T112035
Change-Id: I1ff61153ddb95ed17e543bd4af7dd13fa3352861
jenkins-bot [Thu, 24 Sep 2015 00:27:18 +0000 (00:27 +0000)]
Merge "Improvements to WANObjectCache::getWithSetCallback()"
Erik Bernhardson [Wed, 23 Sep 2015 21:24:21 +0000 (14:24 -0700)]
Fix stray literal \n in output
Bug: T113518
Change-Id: Ia4591849f7675ad062210f21ff6273077a198704
Erik Bernhardson [Wed, 23 Sep 2015 21:07:44 +0000 (14:07 -0700)]
Remove $this reference in static method
Adds a couple tests to demonstrate the problem and fixes
it.
Change-Id: Ib15088e83ad333fb126446fad86f97ae12ff6e74
jenkins-bot [Wed, 23 Sep 2015 20:53:50 +0000 (20:53 +0000)]
Merge "Add MWTimestamp::getTimezoneString(), use it in file revert message"
jenkins-bot [Wed, 23 Sep 2015 20:52:14 +0000 (20:52 +0000)]
Merge "Remove closing PHP tag from MediaWiki\Tidy\RaggettWrapper"
jenkins-bot [Wed, 23 Sep 2015 20:52:11 +0000 (20:52 +0000)]
Merge "Use tab instead of spaces in ParsoidVirtualRESTService"
jenkins-bot [Wed, 23 Sep 2015 20:46:58 +0000 (20:46 +0000)]
Merge "OOUIHTMLForm: s/else if/elseif/"
gladoscc [Fri, 26 Dec 2014 01:57:14 +0000 (12:57 +1100)]
Add MWTimestamp::getTimezoneString(), use it in file revert message
MWTimestamp::getTimezoneString() returns the timezone name as a message,
that supports wiki localization. The code is moved from Parser::pstPass2.
The default file revert message is currently always in UTC.
This patch sets the default timestamp to be in the wiki timezone (similar
to ~~~~). The timezone is passed as a new parameter to the message, with
the date / time parameters being merged and handled by
$wgContentLang->timeanddate
Bug: T36948
Change-Id: I48772f5f3b1635d33b6185776cedfc4ee1882494
jenkins-bot [Wed, 23 Sep 2015 20:36:53 +0000 (20:36 +0000)]
Merge "Terminate free external link on (and numeric versions of <>)"
Kunal Mehta [Wed, 23 Sep 2015 20:35:31 +0000 (13:35 -0700)]
Remove closing PHP tag from MediaWiki\Tidy\RaggettWrapper
Change-Id: Id90cb99862eb9997f56506db99aa2ca6e2885516
Kunal Mehta [Wed, 23 Sep 2015 20:31:04 +0000 (13:31 -0700)]
Use tab instead of spaces in ParsoidVirtualRESTService
Spotted by phpcs
Change-Id: Iab3b1e7aa69f84d0655d54c7c64d2681e0662af4
Kunal Mehta [Wed, 23 Sep 2015 20:29:30 +0000 (13:29 -0700)]
OOUIHTMLForm: s/else if/elseif/
Spotted by phpcs.
Change-Id: I1a0b7a08a17849b270a262063744198d81d36de1
jenkins-bot [Wed, 23 Sep 2015 20:26:59 +0000 (20:26 +0000)]
Merge "Added support for enqueueable DataUpdates"
jenkins-bot [Wed, 23 Sep 2015 20:03:17 +0000 (20:03 +0000)]
Merge "Revert "Do not double load gallery styles now cache has expired""
C. Scott Ananian [Wed, 23 Sep 2015 19:16:24 +0000 (15:16 -0400)]
Terminate free external link on (and numeric versions of <>)
Bug: T84937
Change-Id: Ic74d8d069e08c0597c7b26755e0d942bf3a510cc
jenkins-bot [Wed, 23 Sep 2015 19:57:15 +0000 (19:57 +0000)]
Merge "Remove oversight references from i18n"
Ori.livneh [Wed, 23 Sep 2015 19:32:33 +0000 (19:32 +0000)]
Revert "Do not double load gallery styles now cache has expired"
This reverts commit
0fc3b0850c0def14a213dc7f0278444948762f82.
Bug: T113511
Change-Id: I62afd734432c4e7432fe04b146809423090df9fe
Translation updater bot [Wed, 23 Sep 2015 19:14:28 +0000 (21:14 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I8ae3ae761cc2dd0e418bc584d8b1c0328a1a9dbb
Aaron Schulz [Tue, 22 Sep 2015 18:43:33 +0000 (11:43 -0700)]
Added support for enqueueable DataUpdates
* Updates can now declare themselves as having enqueueUpdate()
as an alternative to doUpdate(). This lets more expensive
or slave lag producing updates use the job queue if desired.
* Added a $mode flag to DataUpdate::runUpdates() to prefer
pushing jobs over calling doUpdate().
* Made page deletions defer deletion updates when possible.
Bug: T95501
Change-Id: Ic6f50f92768089ba0fbc223b8d178f5a91512959
Alex Monk [Tue, 15 Sep 2015 22:52:10 +0000 (23:52 +0100)]
Remove oversight references from i18n
Change-Id: Ie1c81e0e54cf8cb36c83b8e11932ca8917fdd07b
Fomafix [Fri, 24 Jul 2015 15:24:03 +0000 (15:24 +0000)]
Feed.php: Apply wfBCP47 to language code
Change-Id: Ibaf771f6348bd5c25a39d6e6ae328251191454e2
Ori Livneh [Wed, 23 Sep 2015 18:03:19 +0000 (18:03 +0000)]
Merge "Compat fix for HHVM on non-Linux OSs"
jenkins-bot [Wed, 23 Sep 2015 17:11:08 +0000 (17:11 +0000)]
Merge "SpecialNewpages: Add redirect=no only to links to redirects"
jenkins-bot [Wed, 23 Sep 2015 16:37:19 +0000 (16:37 +0000)]
Merge "mediawiki.Upload.Dialog: Factor out booklet layout"
Fomafix [Wed, 23 Sep 2015 16:34:46 +0000 (16:34 +0000)]
SpecialNewpages: Add redirect=no only to links to redirects
Since
2748c4091 all title links have redirect=no. This is requested in T16353.
To satisfy T16353 it should be enough to add this only to links to redirects.
Appending redirect=no to all links has the disadvantage of a duplicate link.
This change adds redirect=no only to links to redirects.
Change-Id: I33da0f1eadc5dfbc46820015622ee1a55acbfe21
jenkins-bot [Wed, 23 Sep 2015 16:30:47 +0000 (16:30 +0000)]
Merge "CategorySelector: Add different ways of searching"
jenkins-bot [Wed, 23 Sep 2015 16:30:36 +0000 (16:30 +0000)]
Merge "Add hook to allow lazy loading of import sources"
Bartosz Dziewoński [Wed, 23 Sep 2015 15:28:59 +0000 (15:28 +0000)]
Merge "docs: mediawiki.ForeignStructuredUpload: Fix formatting"
Aaron Schulz [Fri, 18 Sep 2015 19:22:18 +0000 (12:22 -0700)]
Improvements to WANObjectCache::getWithSetCallback()
* If lockTSE is set, make sure it applies during during
the entire duration of a key being tombstoned. This lets
regenerations happen during that whole time, which lowers
the chance of seeing stale data if the DBs are lagged.
* If lockTSE is not set, do not apply tempTTL (for tomstoned keys).
If traffic is high, a stale value would usually be "stashed" and
used for 5 seconds. If the lag was only 1 second, then this
is suboptimal.
* Determine tempTTL from lockTSE as they no longer make sense
being separate. This makes things easier to understand and
also makes the lockTSE value account for the last regeneration
time (via stash key TTL). Since LOCK_TSE << HOLDOFF_TTL, this
helps avoid stale reads without adding stampede risk.
Change-Id: I3b01f0ec67935a238b30e02e42004fd3b2dcfb9d
Rohan [Sun, 15 Jun 2014 17:47:49 +0000 (23:17 +0530)]
UploadFromUrl: Display an error to the user on invalid wpUploadFileURL
Removes check for URL validity from UploadFromUrl::isValidRequest()
so that an error can be thrown later and displayed to the user.
Bug: T34361
Change-Id: Idf4cfcd6199ef6e875f760e46db98248ba53a327
Skizzerz [Wed, 4 Jun 2014 02:40:03 +0000 (21:40 -0500)]
Fix PHP notice when logging the result of a DNS blacklist check.
When the array syntax is used for the DNS blacklist, PHP throws a notice about array to string
conversion. This change ensures that the correct string name is used regardless of what type of
blacklist entry is used.
Change-Id: I2511a8320474a02d8f321d04f005bb9d18fb15b3