lhc/web/wiklou.git
7 years agoAdd tests for MediawikiTestCase::setService stuff
addshore [Mon, 2 May 2016 13:56:53 +0000 (14:56 +0100)]
Add tests for MediawikiTestCase::setService stuff

Change-Id: If689d85f42ae26e786d599f59e76d3ebdfa22212

7 years agoChanged translation of ChangePassword and PasswordReset
Martin Urbanec [Thu, 5 May 2016 17:22:38 +0000 (19:22 +0200)]
Changed translation of ChangePassword and PasswordReset

"Resetovat heslo" is translation of PasswordReset, not of ChangePassword.

Change-Id: Iee5a25b0c46e24e6da82fa378bbda170141f8e9e

7 years agoMerge "Do not show useless form at Special:ChangeContentModel"
jenkins-bot [Fri, 6 May 2016 12:18:15 +0000 (12:18 +0000)]
Merge "Do not show useless form at Special:ChangeContentModel"

7 years agoMerge "Tweak RefreshLinksJob cache logic"
jenkins-bot [Fri, 6 May 2016 09:55:37 +0000 (09:55 +0000)]
Merge "Tweak RefreshLinksJob cache logic"

7 years agoMerge "Do not let DataUpdate exceptions block other deferred updates"
jenkins-bot [Fri, 6 May 2016 09:55:27 +0000 (09:55 +0000)]
Merge "Do not let DataUpdate exceptions block other deferred updates"

7 years agoRemove WatchedItemStore::getDefaultInstance
addshore [Fri, 15 Apr 2016 16:29:05 +0000 (17:29 +0100)]
Remove WatchedItemStore::getDefaultInstance

Change-Id: I0c7d706fabee8d1f6fcfbc4c568f375953de8058

7 years agoMake WatchedItemStore use MediaWikiServices
addshore [Wed, 6 Apr 2016 10:46:50 +0000 (11:46 +0100)]
Make WatchedItemStore use MediaWikiServices

(This is a re-submi8t of I5c8c1a65 after it got reverted by Iae7f7b7)

Change-Id: I193de7ef1566336040463b71735b09db941d8ce1

7 years agoMerge "Add missing 'public' keywords to some more Language methods"
jenkins-bot [Fri, 6 May 2016 06:51:32 +0000 (06:51 +0000)]
Merge "Add missing 'public' keywords to some more Language methods"

7 years agoMerge "Fix deleting pages/files when using Microsoft SQL Server"
jenkins-bot [Fri, 6 May 2016 06:35:39 +0000 (06:35 +0000)]
Merge "Fix deleting pages/files when using Microsoft SQL Server"

7 years agoFix deleting pages/files when using Microsoft SQL Server
Ryan Schmidt [Thu, 5 May 2016 05:27:28 +0000 (22:27 -0700)]
Fix deleting pages/files when using Microsoft SQL Server

Right now we have a slew of foreign key violations whenever we try to
delete something due to the way MediaWiki handles page
deletions. Let's remove those foreign keys from places where IDs are
maintained even though the records they are pointing to have been deleted.

Also, work has begun on the massive (re)naming of every constraint in the
schema, so that icky hacks like those employed in these patch files don't
need to be used in the future; rather, we can simply refer to the
constraints by name.

Change-Id: I79938d36a8e35debd3e27052d8ef0e3e6c32f40c

7 years agoMerge "Upgrade mismatched begin() warnings to exceptions"
jenkins-bot [Fri, 6 May 2016 00:03:34 +0000 (00:03 +0000)]
Merge "Upgrade mismatched begin() warnings to exceptions"

7 years agoMerge "Introduce mediawiki.router for handling hash fragment navigation"
jenkins-bot [Thu, 5 May 2016 19:47:22 +0000 (19:47 +0000)]
Merge "Introduce mediawiki.router for handling hash fragment navigation"

7 years agoIntroduce mediawiki.router for handling hash fragment navigation
jdlrobson [Thu, 24 Dec 2015 18:05:00 +0000 (10:05 -0800)]
Introduce mediawiki.router for handling hash fragment navigation

Add a generic barebones Router class to core to allow registration of
routes in a central place and deal with potential clashes in future.

See patches making use of the router:
- Kartographer extension I456a4582a67e31533d51d5817d0f4af57528c35e
- mediawiki.special.preference If7cb76e362464943df20598bd09fd341574756c4

Bug: T114007
Change-Id: I4295db446eac7cf24a3ed89edfa9eefa5cb34b73

7 years agoMerge "Shorten some ridiculously long message names"
jenkins-bot [Thu, 5 May 2016 19:30:53 +0000 (19:30 +0000)]
Merge "Shorten some ridiculously long message names"

7 years agoMerge "mw.ForeignStructuredUpload: Remove #getTemplateName"
jenkins-bot [Thu, 5 May 2016 19:29:00 +0000 (19:29 +0000)]
Merge "mw.ForeignStructuredUpload: Remove #getTemplateName"

7 years agoShorten some ridiculously long message names
Bartosz Dziewoński [Thu, 5 May 2016 03:49:33 +0000 (23:49 -0400)]
Shorten some ridiculously long message names

We don't need to write out that these are from a 'foreign-structured-upload-form',
just 'upload-form' will suffice and isn't ambiguous.

(Updating all the translations too for easy backporting to MW 1.27.)

Changes:

* 'foreign-structured-upload-form-label-own-work'
  -> 'upload-form-label-own-work'
* 'foreign-structured-upload-form-label-infoform-categories'
  -> 'upload-form-label-infoform-categories'
* 'foreign-structured-upload-form-label-infoform-date'
  -> 'upload-form-label-infoform-date'
* 'foreign-structured-upload-form-label-own-work-message-local'
  -> 'upload-form-label-own-work-message-local'
* 'foreign-structured-upload-form-label-not-own-work-message-local'
  -> 'upload-form-label-not-own-work-message-local'
* 'foreign-structured-upload-form-label-not-own-work-local-local'
  -> 'upload-form-label-not-own-work-local-local'
* 'foreign-structured-upload-form-label-own-work-message-default'
  -> 'upload-form-label-own-work-message-default'
* 'foreign-structured-upload-form-label-not-own-work-message-default'
  -> 'upload-form-label-not-own-work-message-default'
* 'foreign-structured-upload-form-label-not-own-work-local-default'
  -> 'upload-form-label-not-own-work-local-default'
* 'foreign-structured-upload-form-label-own-work-message-shared'
  -> 'upload-form-label-own-work-message-shared'
* 'foreign-structured-upload-form-label-not-own-work-message-shared'
  -> 'upload-form-label-not-own-work-message-shared'
* 'foreign-structured-upload-form-label-not-own-work-local-shared'
  -> 'upload-form-label-not-own-work-local-shared'

Change-Id: Ia8c51cf1143c659e707efd846c4ece00b0d08f96

7 years agoRun maintenance/generateLocalAutoload.php
Brad Jorsch [Thu, 5 May 2016 17:12:58 +0000 (13:12 -0400)]
Run maintenance/generateLocalAutoload.php

Ie06782ffb manually updated autoload.php, again.

Change-Id: I485b85cf52f3a39083919d5d8f658f597d1ff0c8

7 years agoMerge "Warn on session access in profileinfo.php and opensearch_desc.php"
jenkins-bot [Thu, 5 May 2016 16:09:56 +0000 (16:09 +0000)]
Merge "Warn on session access in profileinfo.php and opensearch_desc.php"

7 years agoWarn on session access in profileinfo.php and opensearch_desc.php
Brad Jorsch [Thu, 5 May 2016 15:35:10 +0000 (11:35 -0400)]
Warn on session access in profileinfo.php and opensearch_desc.php

These are so simple there will probably be no problems, but let's set
them to 'warn' for a week just to be sure.

Bug: T127233
Change-Id: I04007faaf541f30dcaf2085fa86b45bea1ecb754

7 years agoRelease note for Id83eda95
Brad Jorsch [Thu, 5 May 2016 15:23:04 +0000 (11:23 -0400)]
Release note for Id83eda95

Change-Id: I85f1856c3b5a5670931a5d718c6e747cf44ce798

7 years agoMerge "Don't stash on preview if $wgAjaxEditStash=false"
jenkins-bot [Thu, 5 May 2016 13:06:57 +0000 (13:06 +0000)]
Merge "Don't stash on preview if $wgAjaxEditStash=false"

7 years agoMerge "Rephrase tog-norollbackdiff"
jenkins-bot [Thu, 5 May 2016 13:00:46 +0000 (13:00 +0000)]
Merge "Rephrase tog-norollbackdiff"

7 years agoMerge "Override momentjs's digit transform logic with MW's"
jenkins-bot [Thu, 5 May 2016 12:59:59 +0000 (12:59 +0000)]
Merge "Override momentjs's digit transform logic with MW's"

7 years agoMerge "Enforce load.php's no-session constraint"
jenkins-bot [Thu, 5 May 2016 12:41:36 +0000 (12:41 +0000)]
Merge "Enforce load.php's no-session constraint"

7 years agoDon't stash on preview if $wgAjaxEditStash=false
Tim Starling [Thu, 5 May 2016 05:56:24 +0000 (15:56 +1000)]
Don't stash on preview if $wgAjaxEditStash=false

Since WikiPage won't check the cache, there's no point in storing it.
Also, this allows the feature to be completely disabled for debugging
etc.

Change-Id: Ibc00e4b20f17091b097a51877123ab9f62fd7f2a

7 years agoMerge "Chinese Conversion Table Update 2016-2"
jenkins-bot [Thu, 5 May 2016 03:48:49 +0000 (03:48 +0000)]
Merge "Chinese Conversion Table Update 2016-2"

7 years agoAdd AMF and STL to mime.types
Gilles Dubuc [Tue, 3 May 2016 09:09:02 +0000 (11:09 +0200)]
Add AMF and STL to mime.types

Bug: T132058
Change-Id: I03c9f7dd0a350b1c3a5011ff8258670a5ba9c8f1

7 years agoMerge "Move master to 1.28.0-alpha"
jenkins-bot [Wed, 4 May 2016 22:47:46 +0000 (22:47 +0000)]
Merge "Move master to 1.28.0-alpha"

7 years agoUpgrade wikimedia/cdb to 1.4.0
Kunal Mehta [Wed, 4 May 2016 22:19:31 +0000 (15:19 -0700)]
Upgrade wikimedia/cdb to 1.4.0

Change-Id: Ib8a80d7a45644b782c4b346c2a4c32a8915ef47f
Depends-On: I61cf76132406e9ea61fc50edaa5dfa26765f0ec4

7 years agoUpgrade wikimedia/ip-set to 1.1.0
Kunal Mehta [Wed, 4 May 2016 22:12:35 +0000 (15:12 -0700)]
Upgrade wikimedia/ip-set to 1.1.0

Bug: T128169
Change-Id: Iee95739a7bdc17cc32d2e48b22bfc80c94a689db
Depends-On: Id43ca893fa6c7c6cb3b1eb23107e42a8f2bcceb8

7 years agoMerge "Allow reset of global services (redux)."
jenkins-bot [Wed, 4 May 2016 22:07:44 +0000 (22:07 +0000)]
Merge "Allow reset of global services (redux)."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 4 May 2016 20:00:20 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I0d3a20114f1091e29f46da23be3a1b9906d8196d

7 years agomw.ForeignStructuredUpload: Remove #getTemplateName
Bartosz Dziewoński [Wed, 4 May 2016 19:31:50 +0000 (15:31 -0400)]
mw.ForeignStructuredUpload: Remove #getTemplateName

Having this overridable doesn't really help at all when the template
parameters' names aren't.

Change-Id: I43b1b50c62df78d8a6c912a138cf277677450381

7 years agoMove master to 1.28.0-alpha
Chad Horohoe [Wed, 4 May 2016 18:28:02 +0000 (11:28 -0700)]
Move master to 1.28.0-alpha

Change-Id: Ic5796bf29a2a45cc859d8797bfe5d7134ea93071

7 years agoMerge "Add a bunch of @since tags to Linker"
jenkins-bot [Wed, 4 May 2016 18:00:52 +0000 (18:00 +0000)]
Merge "Add a bunch of @since tags to Linker"

7 years agoMerge "Add @since tag to SpecialPage::msg"
jenkins-bot [Wed, 4 May 2016 18:00:46 +0000 (18:00 +0000)]
Merge "Add @since tag to SpecialPage::msg"

7 years agoMerge "Use LoggerInterface::class in MediaWikiTestCaseTest"
jenkins-bot [Wed, 4 May 2016 17:58:12 +0000 (17:58 +0000)]
Merge "Use LoggerInterface::class in MediaWikiTestCaseTest"

7 years agoMerge "Add @since for Message::newFromSpecifier"
jenkins-bot [Wed, 4 May 2016 17:54:48 +0000 (17:54 +0000)]
Merge "Add @since for Message::newFromSpecifier"

7 years agoMerge "Make sure OtherBlockLogLink's second parameter is a string"
jenkins-bot [Wed, 4 May 2016 17:52:38 +0000 (17:52 +0000)]
Merge "Make sure OtherBlockLogLink's second parameter is a string"

7 years agoAdd @since for Message::newFromSpecifier
Gergő Tisza [Wed, 4 May 2016 17:40:56 +0000 (19:40 +0200)]
Add @since for Message::newFromSpecifier

Adds doctag missing from I2e6195b.

Change-Id: I3a0918c48b49a85498f856896575d6c69e5547e1

7 years agoAllow reset of global services (redux).
daniel [Sun, 1 May 2016 19:29:11 +0000 (21:29 +0200)]
Allow reset of global services (redux).

(This is part of I6ec374ac9 wich was a re-submit of Ie98bf5af5
which got reverted by Ide7ab563)

This change provides a mechanism to reset global service instances
in an orderly manner. There are three use cases for this:

* the installation process
* integration tests (which most of the existing phpunit tests are)

In contrast to I6ec374ac9, this change does not cause singeltons
of legacy services to be reset. It is assumed that legacy services
use global state to access services and configuration, so any
change in confuguration would affect them immediately.

NOTE: the original I6ec374ac9 would cause session information to
get lost if the user session was creatsed before initialization
was complete. This was apparently triggered by the MobileFrontend
extension under some circumstances. Check with Addshore and Catrope.

Change-Id: Ie06782ffb96e675c0aa55dc26fb8f22037e8517d

7 years agoMerge "Point skins/extension READMEs to Phabricator"
jenkins-bot [Wed, 4 May 2016 16:44:09 +0000 (16:44 +0000)]
Merge "Point skins/extension READMEs to Phabricator"

7 years agoUse LoggerInterface::class in MediaWikiTestCaseTest
addshore [Mon, 2 May 2016 13:44:26 +0000 (14:44 +0100)]
Use LoggerInterface::class in MediaWikiTestCaseTest

Change-Id: Ic9c24b813786bc4dc2d5aa48a17a958eef0a9ddb

7 years agoMerge "ApiOptions: set form field parent earlier"
jenkins-bot [Wed, 4 May 2016 16:06:55 +0000 (16:06 +0000)]
Merge "ApiOptions: set form field parent earlier"

7 years agoIf $line is empty in EnhancedChangesList, don't try to access parts of array
aude [Wed, 4 May 2016 14:47:03 +0000 (10:47 -0400)]
If $line is empty in EnhancedChangesList, don't try to access parts of array

In getLineData, if the EnhancedChangesListModifyLineData hook returns false,
then $line is an empty array and recentChangesFlagsRaw is not set.

If $line is empty then presumably we don't want to render it and
can skip the line here.

Bug: T133296
Change-Id: I92fded07274a06a0dd2929b97815bfe56f1847ea

7 years agoDo not show useless form at Special:ChangeContentModel
Ricordisamoa [Wed, 4 May 2016 15:35:59 +0000 (17:35 +0200)]
Do not show useless form at Special:ChangeContentModel

If the choosen title cannot be converted to any of the available
models, show an error page instead of an empty and confusing dropdown
field asking for the new content model.

Change-Id: Idc7372a8870f98aa8148592385f3a837f16886f0

7 years agoApiOptions: set form field parent earlier
Gergő Tisza [Wed, 4 May 2016 15:09:18 +0000 (17:09 +0200)]
ApiOptions: set form field parent earlier

Bug: T134351
Change-Id: I44b9bbd1663c876cf0c6160f10badfd8f380656b

7 years agoAdd missing 'public' keywords to some more Language methods
Ricordisamoa [Sat, 26 Mar 2016 12:54:48 +0000 (13:54 +0100)]
Add missing 'public' keywords to some more Language methods

All of them are already being used outside the class:
* getMonthAbbreviation
* getMonthAbbreviationsArray
* getWeekdayName
* sprintfDate
* userAdjust
* date
* time
* timeanddate
* getMessage
* iconv
* ucfirst
* uc

Change-Id: I63ec93858cebc02cdf3b9b042eddf4ef620cc110

7 years agoFix HTMLFormField calling Message::setContext with null
Thiemo Mättig [Wed, 4 May 2016 13:29:24 +0000 (15:29 +0200)]
Fix HTMLFormField calling Message::setContext with null

This is a hotfix. If you think it's better to revert I2e6195b instead
please do so.

Bug: T134351
Change-Id: Ifcc832a731b18933bdf6edfd6eb7a5cd6046c3ba

7 years agoAdd a bunch of @since tags to Linker
addshore [Wed, 4 May 2016 12:48:58 +0000 (13:48 +0100)]
Add a bunch of @since tags to Linker

Change-Id: I8bab046c33f370d63a29020154e5691b47881dec

7 years agoAdd @since tag to SpecialPage::msg
addshore [Wed, 4 May 2016 12:04:57 +0000 (13:04 +0100)]
Add @since tag to SpecialPage::msg

Introduced in 5f6862c89e5832c117613cf6232f08ab57436fdb

Change-Id: Ie36b37c5c28b67a090cbe69a0d8b37f830104a3f

7 years agoUpdate OOjs UI to v0.17.1
James D. Forrester [Tue, 3 May 2016 23:09:20 +0000 (19:09 -0400)]
Update OOjs UI to v0.17.1

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.1

Change-Id: I6175a5d788f71f5d07efeabe54aca6335fce4766

7 years agoFollow-up f9b4bbff: Fix typo'ed variable name
James D. Forrester [Tue, 3 May 2016 23:08:15 +0000 (19:08 -0400)]
Follow-up f9b4bbff: Fix typo'ed variable name

Change-Id: Ied52bbaa8d9b8e15470a99cd45ebef0c43c5dd69

7 years agoMerge "registration: Allow string value for Hooks"
jenkins-bot [Tue, 3 May 2016 20:37:26 +0000 (20:37 +0000)]
Merge "registration: Allow string value for Hooks"

7 years agoMerge "Correct error message for missing permission to get patrol information"
jenkins-bot [Tue, 3 May 2016 20:34:48 +0000 (20:34 +0000)]
Merge "Correct error message for missing permission to get patrol information"

7 years agoregistration: Allow string value for Hooks
Florian [Fri, 29 Apr 2016 21:21:40 +0000 (23:21 +0200)]
registration: Allow string value for Hooks

Instead of forcing an object even for single-hook-listeners, allow
string values, too (one hook listener for one hook, only). Also:
use it as default for the conversion script, if only one listener
is added to a hook (which is usually the case). This leads into a
much cleaner output of the Hooks section of extension.json.

Bug: T133628
Change-Id: Ie9e54f0931c41706eb8d82d00256698992ec41cc

7 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Tue, 3 May 2016 20:06:15 +0000 (20:06 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 3 May 2016 20:00:08 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ibee58256489a534f8adf5cd4f3ffc14c85ea197a

7 years agoFix Undefined variable: namespaces in includes/search/SearchEngineConfig.php on line 109
dcausse [Tue, 3 May 2016 19:40:05 +0000 (21:40 +0200)]
Fix Undefined variable: namespaces in includes/search/SearchEngineConfig.php on line 109

Bug: T134305
Change-Id: I220886e12a6d083ac34a8a75bc77871e89dbf747

7 years agoMerge "Support hash fragments in wfAppendQuery()"
jenkins-bot [Tue, 3 May 2016 19:26:13 +0000 (19:26 +0000)]
Merge "Support hash fragments in wfAppendQuery()"

7 years agoUpgrade mismatched begin() warnings to exceptions
Aaron Schulz [Thu, 24 Dec 2015 01:16:54 +0000 (17:16 -0800)]
Upgrade mismatched begin() warnings to exceptions

No WMF logs for these events in the last 7 days.

Change-Id: I79f2f2c8117ffa887a550a793a9e490c2a26f721

7 years agoMerge "SessionManager: Add provision for encrypting session data"
jenkins-bot [Tue, 3 May 2016 15:36:26 +0000 (15:36 +0000)]
Merge "SessionManager: Add provision for encrypting session data"

7 years agoMerge "Fix HTMLForm noData logic in trySubmit"
jenkins-bot [Tue, 3 May 2016 15:17:38 +0000 (15:17 +0000)]
Merge "Fix HTMLForm noData logic in trySubmit"

7 years agoCheck if user is blocked during upload process
Matthias Mullie [Fri, 29 Apr 2016 14:21:13 +0000 (16:21 +0200)]
Check if user is blocked during upload process

Further down, this was already somewhat being checked.
On L112, `verifyTitlePermissions` is called, which will fail
if the user is blocked. However:

* This was not being checked during stashed uploads
* Block just "happens" to be part of that check: the intent is
  actually to verify the file title. The error is treated as
  recoverable (the title can be changed), but it isn't (the
  user can't unblock himself in this process)

Bug: T111228
Change-Id: I9cbf250a0b92c3daa3a0843f2257cc049abd3923

7 years agoMerge "Clean up PoolWorkArticleView type hints and fix IDEA errors"
jenkins-bot [Tue, 3 May 2016 08:57:07 +0000 (08:57 +0000)]
Merge "Clean up PoolWorkArticleView type hints and fix IDEA errors"

7 years agoMerge "Document mInterwikis in LinksUpdate"
jenkins-bot [Tue, 3 May 2016 08:57:03 +0000 (08:57 +0000)]
Merge "Document mInterwikis in LinksUpdate"

7 years agoClean up PoolWorkArticleView type hints and fix IDEA errors
Aaron Schulz [Tue, 3 May 2016 08:47:36 +0000 (01:47 -0700)]
Clean up PoolWorkArticleView type hints and fix IDEA errors

All callers pass a WikiPage here already.

Change-Id: I6a17bf52fb2547729c6a1fa40704f1c9efe28b12

7 years agoTweak RefreshLinksJob cache logic
Aaron Schulz [Tue, 3 May 2016 00:31:03 +0000 (17:31 -0700)]
Tweak RefreshLinksJob cache logic

* Make this actually use the cache beyond edge cases
  by making the page_touched check less strict. The
  final check on the cache timestamp is good enough.
* Log metrics to statsd to give visibility.

Change-Id: I14c14846a7b68d079e1a29c6d50e354a3c1926d6

7 years agoSupport hash fragments in wfAppendQuery()
Roan Kattouw [Tue, 3 May 2016 02:17:48 +0000 (19:17 -0700)]
Support hash fragments in wfAppendQuery()

Change-Id: Icb99d5479836fea25a47451b5a758dd71f642f71

7 years agoMerge "ParserCache: Don't try to save to nothing if disabled"
jenkins-bot [Tue, 3 May 2016 01:59:57 +0000 (01:59 +0000)]
Merge "ParserCache: Don't try to save to nothing if disabled"

7 years agoParserCache: Don't try to save to nothing if disabled
Kunal Mehta [Wed, 27 Apr 2016 00:45:52 +0000 (17:45 -0700)]
ParserCache: Don't try to save to nothing if disabled

If the ParserCache is disabled via $wgParserCacheType = CACHE_NONE,
don't bother trying to save anything because it won't do anything.

This also removes the misleading "Saved in parser cache" HTML comment
from the rendered output since it isn't being saved at all.

Change-Id: I5603d2b2866f0079cdcd837b1f1a4efc00bc8ed9

7 years agoDocument mInterwikis in LinksUpdate
Aaron Schulz [Mon, 2 May 2016 23:53:20 +0000 (16:53 -0700)]
Document mInterwikis in LinksUpdate

Change-Id: If10840c5df849455027b5a497097e583fb982a65

7 years agoFix HTMLForm noData logic in trySubmit
Gergő Tisza [Mon, 2 May 2016 19:20:00 +0000 (19:20 +0000)]
Fix HTMLForm noData logic in trySubmit

This was missed in If4e0dfb and causes missing array key warnings
for fields using skipLoadData.

Change-Id: Ib52ee2bc9af278f03b48730acc1edb30f5ff1f88

7 years agoCorrect error message for missing permission to get patrol information
MGChecker [Mon, 2 May 2016 20:45:56 +0000 (22:45 +0200)]
Correct error message for missing permission to get patrol information

Patrolmarks permission is enough to request patrol information, as it's coded
in useRCPatrol() and useNPPatrol().

Change-Id: I4115bdbbcaf6764d71784efe2d8ac63cc77ce770

7 years agoMerge "Quote column name aliases"
jenkins-bot [Mon, 2 May 2016 21:38:38 +0000 (21:38 +0000)]
Merge "Quote column name aliases"

7 years agoMerge "Update Microsoft SQL Server schema"
jenkins-bot [Mon, 2 May 2016 21:34:50 +0000 (21:34 +0000)]
Merge "Update Microsoft SQL Server schema"

7 years agoMerge "Pass through errors creating the main page to the installer."
jenkins-bot [Mon, 2 May 2016 21:34:18 +0000 (21:34 +0000)]
Merge "Pass through errors creating the main page to the installer."

7 years agoQuote column name aliases
Ryan Schmidt [Mon, 2 May 2016 18:04:47 +0000 (13:04 -0500)]
Quote column name aliases

Sometimes, a column name alias is chosen that is a reserved word or is
otherwise invalid (such as an alias named "user" on postgres or mssql).
Let's unconditionally quote the alias so that no matter what the user
specifies, it will not cause the query to error out.

Bug: T118973
Change-Id: If3ea7324980355e78afcdb3bf2596d23bb96412d

7 years agoMerge "Quick-fail refreshLinksJob if the triggering revision isn't the latest"
jenkins-bot [Mon, 2 May 2016 20:54:48 +0000 (20:54 +0000)]
Merge "Quick-fail refreshLinksJob if the triggering revision isn't the latest"

7 years agoMerge "Unify HTMLForm message handling"
jenkins-bot [Mon, 2 May 2016 20:52:46 +0000 (20:52 +0000)]
Merge "Unify HTMLForm message handling"

7 years agoMerge "Make refreshLinksJob explicitly check the cache rev ID"
jenkins-bot [Mon, 2 May 2016 20:49:05 +0000 (20:49 +0000)]
Merge "Make refreshLinksJob explicitly check the cache rev ID"

7 years agoQuick-fail refreshLinksJob if the triggering revision isn't the latest
Brad Jorsch [Mon, 2 May 2016 20:36:10 +0000 (16:36 -0400)]
Quick-fail refreshLinksJob if the triggering revision isn't the latest

If we already know that the triggeringRevisionId is outdated, fail early
instead of doing all the work of re-parsing that old revision and
preparing all the updates only to fail later at the lockAndGetLatest()
call.

Change-Id: Ic70c659899d5d47e74fa17c88ed26b436732ca8a

7 years agoUnify HTMLForm message handling
Gergő Tisza [Sun, 17 Apr 2016 07:35:54 +0000 (07:35 +0000)]
Unify HTMLForm message handling

Improves Ida647973a which unified message handling for form fields
but did not make the functionality available to HTMLForm itself.

Change-Id: I2e6195ba13afbd8b993acb47409fab1be91c547e

7 years agoMake refreshLinksJob explicitly check the cache rev ID
Aaron Schulz [Tue, 26 Apr 2016 19:43:51 +0000 (12:43 -0700)]
Make refreshLinksJob explicitly check the cache rev ID

This is needed if the $useOutdated behavior of ParserCache
is modified per Ibd111bed203dd.

Bug: T133659
Change-Id: I70806dffba8af255d7cdad7663132b58479f63e3

7 years agoMerge "Log when resyncFiles() fails in FileBackendMultiWrite"
jenkins-bot [Mon, 2 May 2016 18:55:41 +0000 (18:55 +0000)]
Merge "Log when resyncFiles() fails in FileBackendMultiWrite"

7 years agoMerge "Allow specifying targets for ResourceLoaderWikiModule"
jenkins-bot [Mon, 2 May 2016 18:41:02 +0000 (18:41 +0000)]
Merge "Allow specifying targets for ResourceLoaderWikiModule"

7 years agoAllow specifying targets for ResourceLoaderWikiModule
Max Semenik [Mon, 2 May 2016 18:32:20 +0000 (11:32 -0700)]
Allow specifying targets for ResourceLoaderWikiModule

Change-Id: Ic8f29aecfbd1e6bfaef44405190043055ce6215a

7 years agoUpdate Microsoft SQL Server schema
Ryan Schmidt [Mon, 25 Apr 2016 01:58:24 +0000 (18:58 -0700)]
Update Microsoft SQL Server schema

The MSSQL schema is now brought in-line with the MySQL schema.
Additionally, various issues that prevented successful installation or
updates via MSSQL were fixed, notably with respect to creating bits of
the database should other bits already exist as well as issues with
previous updater patches not working correctly.

Additional MSSQL bugfixes will come in separate patches, as they are less
related to the schema/install/upgrade process.

Change-Id: If3eea625499d3cb14abba40f528208173067a53a

7 years agoMerge "Set explicit direction to ApiHelp headers with module names"
jenkins-bot [Mon, 2 May 2016 16:05:40 +0000 (16:05 +0000)]
Merge "Set explicit direction to ApiHelp headers with module names"

7 years agoMerge "Give redirects a sort index in title widget"
jenkins-bot [Mon, 2 May 2016 15:26:54 +0000 (15:26 +0000)]
Merge "Give redirects a sort index in title widget"

7 years agoMerge "jquery.makeCollapsible: Simplify code"
jenkins-bot [Mon, 2 May 2016 14:58:16 +0000 (14:58 +0000)]
Merge "jquery.makeCollapsible: Simplify code"

7 years agoMerge "EditPage: Style anonymous editor preview warning as a warning box"
jenkins-bot [Mon, 2 May 2016 14:52:44 +0000 (14:52 +0000)]
Merge "EditPage: Style anonymous editor preview warning as a warning box"

7 years agoMerge "Removing unicode-bidi: -webkit-isolate"
jenkins-bot [Mon, 2 May 2016 14:50:14 +0000 (14:50 +0000)]
Merge "Removing unicode-bidi: -webkit-isolate"

7 years agojquery.makeCollapsible: Simplify code
Cblair91 [Mon, 2 May 2016 13:46:34 +0000 (13:46 +0000)]
jquery.makeCollapsible: Simplify code

Instead of using if checks, use a piping system (like in the first function).

Change-Id: Ib96f9db9c56965c336ac85d9bdcf21bdbb4e9cce

7 years agoMerge "In ParserCache, respect $useOutdated"
jenkins-bot [Mon, 2 May 2016 14:42:29 +0000 (14:42 +0000)]
Merge "In ParserCache, respect $useOutdated"

7 years agoEditPage: Style anonymous editor preview warning as a warning box
Yusuke Matsubara [Mon, 2 May 2016 08:23:18 +0000 (17:23 +0900)]
EditPage: Style anonymous editor preview warning as a warning box

Change-Id: Idd4c50dd9539b95350818a5a6eaebbaf085105ba
Follow-Up: I22c51a46a249247abccda709d74356e8e31a19a8
Bug: T127403

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 1 May 2016 20:54:29 +0000 (22:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ife995ee37ad1b23b10b802d7f765750892558609

7 years agoRemoving unicode-bidi: -webkit-isolate
Amire80 [Sun, 1 May 2016 09:41:48 +0000 (12:41 +0300)]
Removing unicode-bidi: -webkit-isolate

Chrome supports non-prefixed "isolate" since v48,
and apparently the prefixed version causes issues
in old versions of Safari, so it's time to remove it.

Bug: T134067
Change-Id: Ic30d144e5b1aad3159e61fda31a7c31db4029b11

7 years agoMerge "Style warnings from live preview on Special:Upload"
jenkins-bot [Sat, 30 Apr 2016 20:54:23 +0000 (20:54 +0000)]
Merge "Style warnings from live preview on Special:Upload"

7 years agoGive redirects a sort index in title widget
Ed Sanders [Sat, 30 Apr 2016 16:23:43 +0000 (17:23 +0100)]
Give redirects a sort index in title widget

Otherwise the sort compare function returns NaN
and the order is completely broken.

Bug: T134020
Change-Id: Ie3bbc153e6941d35cfab971690c8934123185d48