Amir E. Aharoni [Wed, 30 Sep 2015 08:14:49 +0000 (11:14 +0300)]
Add @codingStandardsIgnoreStart to pass phpcs in 2 files in tests/phpunit/includes
Change-Id: I7f551dafcf437cc23aa9aed24f9e4d385816a0a0
Marius Hoch [Thu, 1 Oct 2015 17:12:07 +0000 (19:12 +0200)]
Remove unused minor and major in WikiReference
Given that the class is not constructed anywhere outside
of core the constructor can be altered without having to
worry about b/c.
Change-Id: Ie49c43a1724f05cb95a296dc0fad0f1c587d80ef
jenkins-bot [Thu, 1 Oct 2015 16:12:30 +0000 (16:12 +0000)]
Merge "API: mention how to get page property names"
Prateek Saxena [Thu, 1 Oct 2015 07:56:58 +0000 (13:26 +0530)]
UploadBase: Remove UPLOAD_VERIFICATION_ERROR
It was replaced by HOOK_ABORTED five years ago and isn't being used
anywhere now.
Change-Id: I20feb33c108ae56f25a0cd01da1a326b290106c2
S Page [Mon, 13 Jul 2015 19:54:38 +0000 (12:54 -0700)]
API: mention how to get page property names
Mention action=query&list=pagepropnames to get a list of properties in
use.
Also rephrase apihelp-main-param-uselang to use active voice.
To test, visit
api.php?action=help
api.php?action=help&modules=query%2Bpagepropnames
api.php?action=help&modules=query%2Bpageswithprop
Change-Id: Ic13f6c00396aed1a1c016bfcf6a39d621a4ebc06
jenkins-bot [Thu, 1 Oct 2015 11:10:27 +0000 (11:10 +0000)]
Merge "Added $wgDataCenterId/$wgDataCenterRoles"
abhinand [Sat, 8 Aug 2015 05:26:07 +0000 (10:56 +0530)]
Reword "passwordreset-emailsent"
Remove potential confusion.
Bug: T99533
Change-Id: Ifb28f4e1fb6fb692d6f052d5a3c1a67f881948bc
Aaron Schulz [Wed, 19 Aug 2015 23:33:03 +0000 (16:33 -0700)]
Added $wgDataCenterId/$wgDataCenterRoles
* This is used to set sticky DC cookies to avoid
session replication lag (which also makes sure
ChronologyProtector works)
Bug: T91816
Change-Id: I7bc2f8185a3c05cb3ca5ccc42d300eccffae48e1
jenkins-bot [Thu, 1 Oct 2015 05:24:47 +0000 (05:24 +0000)]
Merge "Fixed remaning IDEA errors in DatabaseBase"
Aaron Schulz [Wed, 30 Sep 2015 23:06:47 +0000 (16:06 -0700)]
Made LBFactorySimple set "master" flags like LBFactoryMulti
* wfGetDB( DB_MASTER )->getLBInfo() now shows the master flag
* A corresponding slave flag was also added
* Added a few badly needed LBFactory/LoadBalancer tests
Change-Id: I9254b12cff63af7d754a3a14c5db44276f58d280
jenkins-bot [Thu, 1 Oct 2015 03:45:23 +0000 (03:45 +0000)]
Merge "Do not split parser cache if limitation is reached."
Aaron Schulz [Thu, 1 Oct 2015 02:42:26 +0000 (19:42 -0700)]
Fixed remaning IDEA errors in DatabaseBase
Change-Id: Ife8d7ecd4f224f1e2ef6f729765c303ec69a3f5f
Brad Jorsch [Tue, 26 Aug 2014 17:09:54 +0000 (13:09 -0400)]
Refactor hashing utility functions from MWCryptRand and make public
MWCryptRand already has some useful utility functions wrapping PHP's
hash() and hash_hmac(). Let's make them public so we can use them from
other code.
But since "MWCryptRand" isn't really a good place for hashing functions,
let's move them to "MWCryptHash" instead.
Change-Id: I7542c719ac72beba7b0f6aa170bdb4c69fa6beab
jenkins-bot [Thu, 1 Oct 2015 00:36:52 +0000 (00:36 +0000)]
Merge "build: Don't run Travis CI for wmf/* branches"
jenkins-bot [Thu, 1 Oct 2015 00:27:46 +0000 (00:27 +0000)]
Merge "mediawiki.page.watch.ajax: Add dependency on mediawiki.page.startup"
Timo Tijhof [Wed, 30 Sep 2015 23:07:47 +0000 (16:07 -0700)]
build: Don't run Travis CI for wmf/* branches
These test runs don't seem very valuable and take up a lot of
slots that could be used for other wikimedia/* repos.
Change-Id: I47ff3a31883d02ec6b535e411d92ada92a84aa2f
jenkins-bot [Wed, 30 Sep 2015 22:56:27 +0000 (22:56 +0000)]
Merge "Retry getting CatChange RC from master"
addshore [Mon, 28 Sep 2015 18:34:05 +0000 (19:34 +0100)]
Retry getting CatChange RC from master
This adds optional flags to Revision::getRecentChange
And uses them in CategoryMembershipChange
Bug: T109700
Change-Id: I197ebccf1f62cdcb03ce4daa2527b973e495236c
Ori Livneh [Wed, 30 Sep 2015 20:39:20 +0000 (13:39 -0700)]
resourceloader: Deprecate two pointless minification config vars
When minifying JavaScript, never put each statement on a separate line, and
always set a target maximum line length of 1000. These behaviors were
previously configurable via $wgResourceLoaderMinifierStatementsOnOwnLine and
$wgResourceLoaderMinifierMaxLineLength, respectively.
Change-Id: I0b0eb632875b5e16f728fd0aa62f7f5ecd79ef62
Aaron Schulz [Wed, 30 Sep 2015 20:39:54 +0000 (13:39 -0700)]
Made User::loadFromId() skip cache with READ_LATEST
* That flag is used for anti-dependencies and thus
should never rely on cache
Bug: T95839
Change-Id: I4ffc8325e55588ef649b96e7b90bc95282f765a9
jenkins-bot [Wed, 30 Sep 2015 21:37:58 +0000 (21:37 +0000)]
Merge "API: Remove warning about continuation change"
jenkins-bot [Wed, 30 Sep 2015 21:34:03 +0000 (21:34 +0000)]
Merge "build: Enable jscs jsDoc rule 'checkParamNames' and make pass"
jenkins-bot [Wed, 30 Sep 2015 21:33:19 +0000 (21:33 +0000)]
Merge "mediawiki.messagePoster: Update comments after mw.Api file renames"
Fomafix [Tue, 29 Sep 2015 16:09:47 +0000 (16:09 +0000)]
mediawiki.messagePoster: Update comments after mw.Api file renames
* Use class name instead of file name
* Expand abbreviation
Follow-up
0bfdd927
Change-Id: I33ad2b10ffb4b4e5e3a38a5c6f644eb183134a36
jenkins-bot [Wed, 30 Sep 2015 21:18:14 +0000 (21:18 +0000)]
Merge "Fix LESS file dependency tracking in ResourceLoader"
jenkins-bot [Wed, 30 Sep 2015 21:09:07 +0000 (21:09 +0000)]
Merge "mw.Upload.BookletLayout: Go back to upload page on upload error"
Ori Livneh [Wed, 30 Sep 2015 21:01:01 +0000 (14:01 -0700)]
Fix LESS file dependency tracking in ResourceLoader
As Timo noted in a review of I1ff6115, using '+=' to combine file dependencies
is incorrect here. I fixed it in one place but not the other, causing the file
dependencies to vary based on whether a .lesscache file was used.
Change-Id: Ie3f48048febc32c5c2d45acd87e10f946f6dfc94
Prateek Saxena [Wed, 30 Sep 2015 20:52:49 +0000 (02:22 +0530)]
mw.Upload.BookletLayout: Go back to upload page on upload error
Bug: T114130
Change-Id: Ibe50ce845a42bb5e66f842c68a35541747c9a570
Prateek Saxena [Wed, 30 Sep 2015 20:31:52 +0000 (02:01 +0530)]
mw.Upload.BookletLayout: Make all errors unrecoverable
Any error apart from 503's can't be recovered just by hitting 'Try
Again'. The user will _have_ to make some changes before the process
can continue.
Bug: T114130
Change-Id: I8e2d619be5b7e47bc903155c353bc1da36a62bb6
jenkins-bot [Wed, 30 Sep 2015 20:27:05 +0000 (20:27 +0000)]
Merge "mw.Upload.BookletLayout: Move error checking for uploadToStash to uploadFile"
Prateek Saxena [Wed, 30 Sep 2015 19:38:38 +0000 (01:08 +0530)]
mw.Upload.BookletLayout: Move error checking for uploadToStash to uploadFile
We were checking for uploadToStash errors in saveFile, instead of in
uploadFile itself. Apart from being just wrong it was causing two
issues:
1. We would show an upload error until after you've tried to save the
file.
2. If there was an error in saving, and you try again, the first thing
it would do is check mw.Upload.State to hopefully check for
uploadToStash errors. Instead of running the finishStashUpload again
it would fail because of the earlier error, thus making all errors
unrecoverable.
Bug: T114130
Change-Id: I56f4ef6e6536840a63402688eb2a1875a6876fcc
Brad Jorsch [Wed, 22 Apr 2015 15:56:55 +0000 (11:56 -0400)]
API: Remove warning about continuation change
Change-Id: I2a69e8ae7dc7df915ceaaeed740b74d55f9207ce
Translation updater bot [Wed, 30 Sep 2015 19:46:52 +0000 (21:46 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I5fc58474ab4bc404a9a74d734e2fe4e61bfaa2ad
Timo Tijhof [Wed, 30 Sep 2015 19:10:18 +0000 (12:10 -0700)]
mediawiki.page.watch.ajax: Add dependency on mediawiki.page.startup
Follows-up
77cdf19 which accidentally removed it.
It is used to host the mw.page.watch method.
Bug: T114288
Change-Id: I1aad9c3c46c3765b6b241cf3fd7b2f1956b8cfa0
Amir E. Aharoni [Wed, 30 Sep 2015 08:01:28 +0000 (11:01 +0300)]
Make lines short to pass phpcs in 2 files under tests/phpunit/includes/
Bug: T102614
Change-Id: I21a7cbc40a3015c3d6cbea1b9d7df58a358beb6a
jenkins-bot [Wed, 30 Sep 2015 16:16:41 +0000 (16:16 +0000)]
Merge "mw.widgets.CategorySelector: Link to category page and display existence status"
Amir E. Aharoni [Wed, 30 Sep 2015 07:55:19 +0000 (10:55 +0300)]
Make lines short to pass phpcs in BagOStuffTest.php
Bug: T102614
Change-Id: I125cf7ec294818ae4c7741acf24a40980448daa9
jenkins-bot [Wed, 30 Sep 2015 16:01:22 +0000 (16:01 +0000)]
Merge "mediawiki.action.edit.preview: Remove spurious 'return'"
jenkins-bot [Wed, 30 Sep 2015 16:01:19 +0000 (16:01 +0000)]
Merge "Pass real boolean or array params to mw.Api#get and #post when convenient"
jenkins-bot [Wed, 30 Sep 2015 15:52:12 +0000 (15:52 +0000)]
Merge "Rename RESTBase1/Parsoid3 `bodyOnly` parameter to `body_only`"
Amir E. Aharoni [Wed, 30 Sep 2015 07:46:06 +0000 (10:46 +0300)]
Make lines short to pass phpcs in ResourcesTest.php
Bug: T102614
Change-Id: I3c5df376dbfc6cbb114b59202ee9d68d4d850746
jenkins-bot [Wed, 30 Sep 2015 15:32:14 +0000 (15:32 +0000)]
Merge "Chinese Conversion Table Update 2015-8"
jenkins-bot [Wed, 30 Sep 2015 14:33:55 +0000 (14:33 +0000)]
Merge "Rename message 'move-new-title' back to 'newtitle'"
C. Scott Ananian [Wed, 30 Sep 2015 14:27:04 +0000 (10:27 -0400)]
Rename RESTBase1/Parsoid3 `bodyOnly` parameter to `body_only`
The old `bodyOnly` name was deprecated on 2015-09-09.
Bug: T114185
Change-Id: If1fe919672dec4ca281c7f72bfd769a4bcaa5047
Bartosz Dziewoński [Mon, 28 Sep 2015 12:33:27 +0000 (14:33 +0200)]
mediawiki.action.edit.preview: Remove spurious 'return'
Retuning another Promise from a .done() callback does nothing, it's
only meaningful for .then(). Looking at other code, the .done() rather
than .then() was intended, the 'return' wasn't.
Change-Id: I1022ba45b8f422a626246fa38c4fe81428acb3bc
jenkins-bot [Wed, 30 Sep 2015 13:38:14 +0000 (13:38 +0000)]
Merge "Cleaned up WANObjectCache toy example code blocks"
Bartosz Dziewoński [Wed, 26 Aug 2015 23:07:54 +0000 (01:07 +0200)]
Pass real boolean or array params to mw.Api#get and #post when convenient
We have this wonderful feature, let's use is more often!
Change-Id: I3cc48d11780c0f83df2f13acc9885bb0b4124a92
jenkins-bot [Wed, 30 Sep 2015 13:28:24 +0000 (13:28 +0000)]
Merge "Converted Interwiki::load to using getWithSetCallback()"
jenkins-bot [Wed, 30 Sep 2015 13:16:45 +0000 (13:16 +0000)]
Merge "Converted checkRedirect() to using getWithSetCallback()"
Bartosz Dziewoński [Wed, 30 Sep 2015 13:11:19 +0000 (15:11 +0200)]
Rename message 'move-new-title' back to 'newtitle'
Per post-merge feedback on
795922d59c4ab57115d68547c57ffd3c7daa91c5,
the changes to message contents are not substantial enough to
invalidate all existing translations.
Change-Id: Ifbbfd27c8ca6a4abe71e91e6fb7d61155a7be955
jenkins-bot [Wed, 30 Sep 2015 12:44:37 +0000 (12:44 +0000)]
Merge "Introduce CategoryMembershipChange"
jenkins-bot [Wed, 30 Sep 2015 12:35:24 +0000 (12:35 +0000)]
Merge "Added DeleteLinksJob to support purging backlinks via job runners"
Aaron Schulz [Wed, 30 Sep 2015 07:50:54 +0000 (00:50 -0700)]
Converted checkRedirect() to using getWithSetCallback()
* Also merged in the code for LocalRepo::getArticleID()
Change-Id: I80d46d2358a48a39e251be83cdb336f663dbfaff
Aaron Schulz [Wed, 30 Sep 2015 06:40:25 +0000 (23:40 -0700)]
Converted Interwiki::load to using getWithSetCallback()
Change-Id: I4299715ce4c996fed8add773aa03441324eb0dfc
Aaron Schulz [Wed, 30 Sep 2015 04:28:30 +0000 (21:28 -0700)]
Cleaned up WANObjectCache toy example code blocks
The list order logic was backwards
Change-Id: Id26e13b69d9e1e6ef132792bdcc693836757cbd8
jenkins-bot [Wed, 30 Sep 2015 06:04:05 +0000 (06:04 +0000)]
Merge "Improve brevity of Special:MovePage form and its description"
jenkins-bot [Wed, 30 Sep 2015 05:39:58 +0000 (05:39 +0000)]
Merge "Added testStaleSet() WAN cache test"
Amir E. Aharoni [Mon, 28 Sep 2015 12:43:19 +0000 (15:43 +0300)]
Make lines short to pass phpcs in 2 files under includes/
Bug: T102614
Change-Id: Iae4d4fbdba88ebcd9bcb018a2a0015d0c0ac607c
jenkins-bot [Wed, 30 Sep 2015 04:07:06 +0000 (04:07 +0000)]
Merge "Improved getWithSetCallback() docs to have more use cases"
jenkins-bot [Wed, 30 Sep 2015 01:43:52 +0000 (01:43 +0000)]
Merge "Add option to expose original sha1 in thumb url"
Aaron Schulz [Wed, 30 Sep 2015 01:14:48 +0000 (18:14 -0700)]
Added testStaleSet() WAN cache test
Change-Id: Ib8565c48af09af0df1809e877fde9d4d6c7e7038
jenkins-bot [Wed, 30 Sep 2015 00:51:11 +0000 (00:51 +0000)]
Merge "resourceloader: Vary module_deps on language (in addition to skin)"
jenkins-bot [Wed, 30 Sep 2015 00:43:19 +0000 (00:43 +0000)]
Merge "Fix Memcached key decode"
jenkins-bot [Wed, 30 Sep 2015 00:42:38 +0000 (00:42 +0000)]
Merge "resourceloader: Store relative instead of absolute paths in module_deps"
Timo Tijhof [Wed, 30 Sep 2015 00:15:57 +0000 (17:15 -0700)]
resourceloader: Vary module_deps on language (in addition to skin)
Re-use the md_skin database field for now as to not need a
schema change, beause this table is going away soon (T113916).
Bug: T113868
Change-Id: I7c7546ec58fd9be0447604989b908dd2084b0fe3
Aaron Schulz [Tue, 22 Sep 2015 19:07:05 +0000 (12:07 -0700)]
Added DeleteLinksJob to support purging backlinks via job runners
* This jobs should only be constructed via relevant Content object,
e.g. the result of enqueueUpdate() being called on a DataUpdate
returned by Content::getSecondaryUpdates().
* Also modified LinksDeletionUpdate to support a $pageId parameter.
* LinksDeletionUpdate can now be enqueued to a DeleteLinksJob.
Change-Id: I650dcf0bd172ede0d61357ec158a4704ae1f2033
Aaron Schulz [Wed, 30 Sep 2015 00:25:38 +0000 (17:25 -0700)]
Improved getWithSetCallback() docs to have more use cases
Change-Id: I428617c159009f22fa78129c16a8964ac2e830b9
Timo Tijhof [Wed, 23 Sep 2015 01:35:38 +0000 (02:35 +0100)]
resourceloader: Store relative instead of absolute paths in module_deps
Make paths stored in the module_deps table relative to $IP. This ensures that when
the MediaWiki install path changes and/or if the location of the extension or skins
directory changes, that ResourceLoader's internal model is still accurate.
Previously when these paths change, ResourceLoader would exhibit various bugs.
1. Unable to detect changes in the module (if the directory no longer exists).
2. Point #1 is usually preceeded by one last cache invalidation as the content hash
of the file path changes (from a valid hash to an empty string).
3. Unnecessary cache invalidation (if both old and new directories exist). This
happens when a file is both an entry point (in the 'scripts' or 'styles' array)
and also a file dependency. At first they are de-duplicated by array_unique.
But after the disk path changes, the next check will result in the old path
being fetched from module_deps, and the new path from the live configuration.
This causes two changes that result in needless cache invalidation:
- The hash list contains one more item (T111481).
- The hash list contains both the old and new version of a file.
(or even alternate versions, e.g. when a change is backported to the old
wmf branch; it also affects wikis on the new branch due to the stale
file path still in the database).
It seems unusual to move a MediaWiki install, and usually we recommend third
parties to run update.php if site administrators do move their wiki. However
Wikimedia's deployment system implicitly moves the MediaWiki install continously
from e.g. "/srv/mediawiki/php-1.26wmf5" to "/srv/mediawiki/php-1.26wmf6".
This caused virtually all ResourceLoader caching layers to get invalidated every
week when another wmf-branch is deployed, thus breaking these file paths, which
changes the version hash, which then invalidates the cache.
Bug: T111481
Change-Id: I173a9820b3067c4a6598a4c8d77e239797d2659c
Kunal Mehta [Tue, 29 Sep 2015 22:54:30 +0000 (15:54 -0700)]
Remove b/c dependency of mediawiki.widgets upon the DateInputWidget
The only uses in gerrit were MediaWiki's ForeignStructuredUpload,
updated in
6318b4af, and the UploadWizard extension, updated in
f4632c01.
Change-Id: Ic404d9fb07008cdc2393e20cf92e7ec173e06473
jenkins-bot [Wed, 30 Sep 2015 00:16:20 +0000 (00:16 +0000)]
Merge "ForeignStructuredUpload: Depend on mediawiki.widgets.DateInputWidget"
jenkins-bot [Wed, 30 Sep 2015 00:14:23 +0000 (00:14 +0000)]
Merge "mediawiki.api.upload: Fix jsduck indentation error"
James D. Forrester [Tue, 29 Sep 2015 23:35:44 +0000 (16:35 -0700)]
ForeignStructuredUpload: Depend on mediawiki.widgets.DateInputWidget
Change-Id: I1ba1b5eb415edb7de8d41429199658e9df21cb5c
jenkins-bot [Tue, 29 Sep 2015 23:09:50 +0000 (23:09 +0000)]
Merge "FauxResponse: Honor cookie options, and other cleanup"
jenkins-bot [Tue, 29 Sep 2015 23:00:16 +0000 (23:00 +0000)]
Merge "Bump oyejorge/less.php to 1.7.0.9"
addshore [Thu, 17 Sep 2015 09:51:25 +0000 (10:51 +0100)]
Introduce CategoryMembershipChange
This is split from:
I03516bb34144d95e5f25c46ae98ab70ce699b31b
Change-Id: I27539d25ef3e81cf991657dffc0a62b9719d21d8
Timo Tijhof [Tue, 29 Sep 2015 22:49:50 +0000 (15:49 -0700)]
mediawiki.api.upload: Fix jsduck indentation error
Follows-up
4738b66e754.
The incorrect indentation caused the second line of this description
to be rendered as a <pre> block.
Change-Id: I99b9718234073ed4e7ae02396ff8eb54f87fe1aa
Brad Jorsch [Tue, 29 Sep 2015 02:09:07 +0000 (22:09 -0400)]
FauxResponse: Honor cookie options, and other cleanup
We have this nice class for unit testing cookie-setting, but the
cookie-setting method ignores all the parameters! Fix that. Also provide
accessors to check the entire set of cookie data, and the set cookies as
a whole.
While this does change the semantics of FauxRequest::getcookie() in that
the name now needs to be prefixed, no extension in Gerrit uses this
method so we should be fine.
Also clean up the case of the setCookie and getCookie methods while
we're at it. Since PHP method names are case-insensitive, this doesn't
even break compatibility with extensions.
Change-Id: Ib44a074bf9796bc0b470d557e39465792f399d30
jenkins-bot [Tue, 29 Sep 2015 22:40:05 +0000 (22:40 +0000)]
Merge "Split DateInputWidget & CalendarWidget into a separate ResourceLoader module"
Bryan Davis [Tue, 29 Sep 2015 22:39:41 +0000 (16:39 -0600)]
Bump oyejorge/less.php to 1.7.0.9
Fixes leading whitespace in oyejorge/less.php/lib/Less/Version.php
Change-Id: Ifbc353b583fc182c0dc297ccacc8102ed9279c59
Kunal Mehta [Mon, 28 Sep 2015 22:56:26 +0000 (15:56 -0700)]
Split DateInputWidget & CalendarWidget into a separate ResourceLoader module
...as the first step to splitting up the 'mediawiki.widgets' module.
For backwards-compatibility, it is a dependency of 'mediawiki.widgets'
until extensions that use the widget can be updated.
Also create the `mediaWiki.widgets` object in mediawiki.js instead of
having an entire file just for that one line.
Bug: T108733
Change-Id: Ife4cfba278dad063a3609929ff87eda7c877d589
jenkins-bot [Tue, 29 Sep 2015 22:08:05 +0000 (22:08 +0000)]
Merge "Refactored global state out of EnqueueableDataUpdate"
jenkins-bot [Tue, 29 Sep 2015 22:05:35 +0000 (22:05 +0000)]
Merge "Removed old fake slave hacks used for debug log testing"
Aaron Schulz [Thu, 24 Sep 2015 22:45:09 +0000 (15:45 -0700)]
Refactored global state out of EnqueueableDataUpdate
* Follow-up
25a44aa3e4fa
* The static DataUpdate::enqueueUpdates() method will
deal with JobQueueGroup construction instead
Change-Id: Id7741a770cee81fdc3f61804b7574ccf737bc338
Gilles Dubuc [Mon, 14 Sep 2015 17:03:04 +0000 (19:03 +0200)]
Add option to expose original sha1 in thumb url
Bug: T112546
Change-Id: I545586ff8d0020d00d9faa1dff2d0d9721134452
James D. Forrester [Tue, 29 Sep 2015 21:23:51 +0000 (14:23 -0700)]
Update OOjs UI to v0.12.10
Release notes:
https://git.wikimedia.org/blob/oojs%2Fui.git/v0.12.10/History.md
Change-Id: I048794c2c3e66e11762598ed97db31afc00cba0c
jenkins-bot [Tue, 29 Sep 2015 21:06:29 +0000 (21:06 +0000)]
Merge "More namespace translations for Extremeñu (ext)"
jenkins-bot [Tue, 29 Sep 2015 20:49:18 +0000 (20:49 +0000)]
Merge "Actually declare the base LoadMonior::clearCaches"
jenkins-bot [Tue, 29 Sep 2015 20:33:18 +0000 (20:33 +0000)]
Merge "Removed $options from RecentChange::newFromConds"
Translation updater bot [Tue, 29 Sep 2015 19:45:20 +0000 (21:45 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I91a42f708cd83f7dd52a91641088148add7f9a83
Aaron Schulz [Tue, 29 Sep 2015 08:32:34 +0000 (01:32 -0700)]
Avoid paranoid IDEA error on $conn->getSlavePos() call
Change-Id: I07ca17ad3a434496a3cc14112ad361457c096b4b
jenkins-bot [Tue, 29 Sep 2015 19:16:53 +0000 (19:16 +0000)]
Merge "Work around IE9's broken handling of .styleSheet.cssText"
Bartosz Dziewoński [Mon, 28 Sep 2015 17:12:06 +0000 (19:12 +0200)]
Work around IE9's broken handling of .styleSheet.cssText
IE9 drops @media queries from .styleSheet.cssText when that property
is read. Therefore we can't trust it to contain what we put there
previously.
Bug: T108727
Change-Id: Ic4f553966e48e3fc608a47ef193df923227ceb96
Bartosz Dziewoński [Thu, 24 Sep 2015 18:45:36 +0000 (20:45 +0200)]
mw.widgets.CategorySelector: Link to category page and display existence status
This contains a silly amount of code to avoid firing separate requests
for each CategoryCapsuleItemWidget that is created, which really
should be a separate class shared with TitleInputWidget but isn't now.
The real widget code here is quite simple.
Change-Id: I66e603fd45b8d3fd61618f9115cd031f6fa01e9d
Kevin Israel [Fri, 25 Sep 2015 04:15:14 +0000 (00:15 -0400)]
User::incEditCountImmediate(): Add explicit IS NOT NULL check
Within the UPDATE query, if user_editcount IS NULL, user_editcount+1 will
also be NULL, and the change becomes a no-op. So in MySQL, the number of
affected rows would be zero, which is the number of rows that actually
changed.
However, other DBMSs (e.g. PostgreSQL, SQLite) do count no-op changes,
meaning the code would not initialize user_editcount if it were NULL.
Explicitly checking for NULL should ensure consistent behavior across
database types.
Also, if the CLIENT_FOUND_ROWS flag is set when connecting to MySQL, the
server returns "Rows matched:" instead of "Changed:" as the affected row
count. This change would be necessary if MediaWiki, like Drupal, is
changed to use that flag <https://www.drupal.org/node/805858>.
Change-Id: Idac160bae56adc5c5d17f8558c55d87000019741
jenkins-bot [Tue, 29 Sep 2015 18:24:56 +0000 (18:24 +0000)]
Merge "Remove $wgUseLinkNamespaceDBFields"
maurelio [Tue, 29 Sep 2015 18:00:02 +0000 (20:00 +0200)]
More namespace translations for Extremeñu (ext)
Change-Id: I1bdadbbeb7a416e1047d5961a3579a367aae1be8
umherirrender [Tue, 29 Sep 2015 18:00:33 +0000 (20:00 +0200)]
Remove $wgUseLinkNamespaceDBFields
Marked as may removed with 1.25, 1.27 should be okay than.
Change-Id: I4ccd7dfe79fa555946cab64dd1eb179a3fc8291d
Aaron Schulz [Tue, 29 Sep 2015 17:31:55 +0000 (10:31 -0700)]
Removed $options from RecentChange::newFromConds
* The FORCE INDEX statements are not needed
Change-Id: Ia6f386140e88ad01fc35a10b00dbcb0d1eb934ea
Glaisher [Mon, 28 Sep 2015 16:42:52 +0000 (21:42 +0500)]
Make it more obvious that users can remove their email address
* Add help message to new email address field indicating that the field
should be left blank if the user want to remove their email address.
and the consequences of no email address it.
* Update changeemail related messages.
Bug: T98799
Change-Id: Ie92e393207ee30811fd30e25e72b9e523d95fd62
jenkins-bot [Tue, 29 Sep 2015 16:09:37 +0000 (16:09 +0000)]
Merge "Add mw.ForeignStructuredUpload.BookletLayout"