Commit graph

73804 commits

Author SHA1 Message Date
Volker E
5720ddfbc5 Replace abandoned color from early palette iteration
Replacing abandoned color `#9aa0a7` from early iteration of the
overhauled color palette as it was too close to `#a2a9b1`.
Follow-up to I94a54b0b0cbc95f95cb8a53a02c199f6f28178ab

Bug: T148267
Change-Id: I50f5b2688683f2048a4f0ae037027b22d29f1962
2016-11-07 10:15:30 -08:00
Bryan Davis
4a86be8ce4 MWExceptionHandler: Do not use 'exception' for custom log data
When we create an exception-like set of data for logging in
MWExceptionHandler::handleFatalError, add it to the logging context as
a 'fatal_exception' member. The 'exception' value in a log context
should only be populated with a real Exception object.

Bug: T150106
Change-Id: I253943849f19ed5480dbda7bfbc0bf607f69c47d
2016-11-07 10:30:09 -07:00
Brad Jorsch
23889c35e9 LoginSignupSpecialPage: Don't output empty 'uselang'
It confuses things because the empty string is accepted as a language,
which falls back to English.

Bug: T146147
Change-Id: Ie56eb95a85a24c5701901abdfb722cebc108bde4
2016-11-07 10:58:31 -05:00
jenkins-bot
05c72943a7 Merge "Remove empty lines at end of functions" 2016-11-07 15:56:56 +00:00
Leszek Manicki
287bb1a064 Fix docs for OutputPage::addLanguageLinks and OutputPage::setLanguageLinks
Per what has been described and fixed in
Ie9c42ac2b4ff143e36d07642f57cca769e8c00e7.

Change-Id: I2af28ae97805f3259ca038942a84b43f89b55150
2016-11-07 16:18:37 +01:00
jenkins-bot
3e285ba9d6 Merge "Fix docs for LanguageLinks hook" 2016-11-07 15:08:58 +00:00
Fomafix
202f695f67 Update weblinks in comments from HTTP to HTTPS
Use HTTPS instead of HTTP where the HTTP link is a redirect to the HTTPS link.

Also update some defect links.

Change-Id: Ic3a5eac910d098ed5c2a21e9f47c9b6ee06b2643
2016-11-07 15:24:46 +01:00
jenkins-bot
d4a4ee0059 Merge "Remove redundant "below" from authmanager-create-from-login" 2016-11-07 13:31:38 +00:00
addshore
1c2f5131bf Fix docs for LanguageLinks hook
Also updated on mw.org.
This array never has language keys (at least not
unless other extensions add them) but core will
always just have numerical keys.

Change-Id: Ie9c42ac2b4ff143e36d07642f57cca769e8c00e7
2016-11-07 12:59:48 +00:00
jenkins-bot
b74e81ab6b Merge "Rewording BotPasswords message to reflect what "grant" really does" 2016-11-07 05:17:43 +00:00
Huji Lee
8fb7972b77 Rewording BotPasswords message to reflect what "grant" really does
Bug: T150080
Change-Id: Ie2ba9cc0638ab44966cf31f83dbf90036234c0e7
2016-11-07 02:48:23 +00:00
Translation updater bot
48c0434f26 Localisation updates from https://translatewiki.net.
Change-Id: I6dba125eef74a035a20055c88e8578e5f7d2f219
2016-11-06 22:03:03 +01:00
Nemo bis
c9dfedc9bd Remove redundant "below" from authmanager-create-from-login
System messages should not hardcode references to specific positions
of the interface elements, especially when such specifications do not
help understanding.

Bug: T137690
Change-Id: I306efc768bf20f6b4aa03cbca42f0cdf084b9a31
2016-11-06 20:11:56 +01:00
Nemo bis
fa06848089 Clarify "while blocked" where something else could be "blocked" too
In some sentences more than others, it's not clear to everyone that
the adjective refers to "you".

Bug: T135431
Change-Id: I62f7bf9f3b1a8e3b88560507b74df69c462962bb
2016-11-06 19:22:48 +01:00
jenkins-bot
d0e9e163aa Merge "LocalRepo::checkRedirect(): Fix use of __METHOD__ in closure" 2016-11-05 21:20:45 +00:00
Translation updater bot
59c2891a80 Localisation updates from https://translatewiki.net.
Change-Id: I71bc95fcc846ac6ff162af37c27e3a6bb1ff4d4c
2016-11-05 22:08:40 +01:00
Kevin Israel
6ec4c12f13 LocalRepo::checkRedirect(): Fix use of __METHOD__ in closure
Change-Id: Ic8b4d2d54f1986fe4b52bc595221c9384389379b
2016-11-05 21:07:16 +00:00
Leszek Manicki
d5a12f954b Remove not used variables in ResourcesTest
Change-Id: I45f531e66545175c689b8f6a62a5c3ed62ea5a9a
2016-11-05 20:28:32 +00:00
umherirrender
34fe90ac52 Remove empty lines at end of functions
It looks like there is something missing after the last statement
Also remove some other empty lines at begin of functions, ifs or loops
while at these files

Change-Id: Ib00b5cfd31ca4dcd0c32ce33754d3c80bae70641
2016-11-05 11:55:10 +01:00
umherirrender
47b2d4fa12 Remove ParserTestParser hook from hooks.txt
The hook was removed in Ia8e17008cb9d9b62ce5645e15a41a3b402f4026a

The mentioned file in the documenation was renamed:
parserTest.inc -> ParserTest.php -> ParserTestRunner.php

Change-Id: I8fcf8302b84254d1dc5a3b629f425616bd1f5d13
2016-11-05 11:15:42 +01:00
addshore
e1cd3142ba Add missing @since tags to EditPage protected methods
Follows I31f585e5c4fcf724d9aaf670a21f4f0af42e98ce

Change-Id: I6118b8a9a03a20be72a69d429ef75e417dc4cf7d
2016-11-05 09:40:27 +00:00
umherirrender
5656683769 Let findHooks.php find UserCreateForm/UserLoginForm
To make findHooks.php happy the hooks must be explicit called with
Hooks::run, passing the name with a variable makes it impossible to
detect and therefore the script unhappy.
In case of B/C this is should be a possible solution.

Change-Id: Iaf4d325a3821e09a742d23a3a5bca8493965bfb8
2016-11-05 10:36:52 +01:00
umherirrender
4663e7a737 Restore hooks.txt for ParserLimitReportFormat
The hook was readded with Iad2646acde79b8a59710bb9fd5fbbfea5a39c341

The text is from I2783c46c6d80f828f9ecf5e71fc8f35910454582

Change-Id: I5e26e0c9bef06e0a6213fd219bda58a61da80665
2016-11-05 10:29:17 +01:00
addshore
66556fb1b9 Fix case of MediaWikiSite in IWLookupAdapter
Change-Id: Ice98cb0a3127333c045cfb4328081ad5c490c435
2016-11-05 09:21:06 +00:00
addshore
501327550c Fix @since tags of changes that missed the branch
Follows:
FormOptions: I29ae63472536f99f7f9546f30d86e7bd324d3094
MediaWikiServices: Ie5fd2c523ceec8cc2656e749928f38909dc4bdf1
InterwikiLookupAdapter: I387dc2ff3f5564fcedde835dec66781d8e9424fd

Change-Id: I8d99d0b559d04083fb83b0fcf45cde95dab32d64
2016-11-05 09:20:27 +00:00
Timo Tijhof
4ff510e4a7 Convert action=markpatrolled fallback interface to HTTP POST
The main interface already has javascript enhancement to use
the API and mw.notify. This patch affects permalinks without
tokens, and opening the link without javascript.

This will match the current behaviour of action=watch.

Bug: T130946
Change-Id: I6be2c07824c17b165e068fc4ac36ab192e12bc9d
2016-11-04 23:57:26 +00:00
jenkins-bot
ba91321808 Merge "Add form identifier to Special:BlockList" 2016-11-04 23:50:34 +00:00
Aaron Schulz
a7f993c7f2 Improve getLagTimes.php output and add statsD flag
* The script now lists all DBs in the LBFactory,
  not just those of the current wiki cluster.
* Add a --report option to send the metrics
  to statsD so that the MediaWiki view of lag can
  be measured, rather than just the DB-level view.
  This avoids some noise with depooled servers.

Bug: T149210
Change-Id: I6eae25e29aecf21251ad0eec53c56a86f35007f5
2016-11-04 21:43:07 +00:00
Translation updater bot
fdb9296a5e Localisation updates from https://translatewiki.net.
Change-Id: I9b6a112fde83f365f8cbef17360ffb01ab5225a7
2016-11-04 22:16:09 +01:00
jenkins-bot
0fca1e6a3f Merge "Add access modifiers to htmlform classes" 2016-11-04 20:37:59 +00:00
Florian Schmidt
a150004455 Add form identifier to Special:BlockList
This will allow HTMLForm to indentify, if the form was
submitted and use the data of the request, instead of the
default data.

Bug: T147705
Change-Id: I1a5129eb6d24c3f4963bf63e9db9a41f68ef3bbc
2016-11-04 21:32:33 +01:00
jenkins-bot
719fcde257 Merge "mediawiki.action.edit.preview: Substitute $ by $$ in newSubStr for .replace()" 2016-11-04 17:37:39 +00:00
Fomafix
8e0281cc31 mediawiki.action.edit.preview: Substitute $ by $$ in newSubStr for .replace()
The newSubStr parameter of .replace() can contain replacement patterns
starting with $. The pattern $$ inserts a single $.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter

Bug: T149816
Change-Id: I69619357b7091e302e50398c6258a321346a6240
2016-11-04 17:28:09 +00:00
Antoine Musso
ab8bafeacc tests: stop updating the search engine
While running includes/api tests, profiling reports tests are doing
hundred of inserts followed by hundred of matching deletes. That is due
to the search engine updates.

For almost all tests, there is no need to update the search engine, that
is a waste of I/O and CPU cycles.

Speed up the run by using 'SearchEngineDummy'.

Our search tests still pass since they take care of setting up a search
engine.

Change-Id: Ic10e989e27fd3901ea215f544a0490baef57f0a4
2016-11-04 17:38:43 +01:00
addshore
63dd31cd31 Add access modifiers to htmlform classes
Change-Id: Id8c0f0676b3200993af3cec493efc99839211bcc
2016-11-04 11:40:42 +01:00
jenkins-bot
939199bcea Merge "Add GENDER support to protection null revision edit summary" 2016-11-04 06:13:20 +00:00
This, that and the other
1cdc94f249 Add GENDER support to protection null revision edit summary
The edit summary for protection null revisions are still messy
"Lego messages", but now with GENDER support.

The message documentation (qqq) for "protectedarticle",
"modifiedarticleprotection", and "unprotectedarticle" was incorrect, but
now matches the fact that these are IRC-only messages.

Bug: T121091
Change-Id: Ia1151fb5aab8334d3351588531fcdac499fcc486
2016-11-04 06:01:31 +00:00
jenkins-bot
dba5cd4c7f Merge "Disable magic links by default" 2016-11-04 02:38:28 +00:00
jenkins-bot
558a6b7372 Merge "Don't cache replacement patterns in wfEscapeWikitext() during tests" 2016-11-04 02:37:12 +00:00
jenkins-bot
a133286c86 Merge "Add tracking categories when magic links are used" 2016-11-04 02:29:54 +00:00
Kunal Mehta
91e5e41325 Disable magic links by default
And add release notes for all the magic links changes in 1.28.

Bug: T147536
Change-Id: I66b2c4424b17cc86bbd7339de588f1c00cd2f18d
2016-11-04 02:27:30 +00:00
Kunal Mehta
643b1b40a8 Don't cache replacement patterns in wfEscapeWikitext() during tests
Parser tests depend upon being able to change the value of
$wgEnableMagicLinks at runtime, so skip caching the replacement patterns
while parser tests or phpunit tests are being run.

Change-Id: Ic9fe4fe898aa353bdefa2bf8207b77d2ac14887f
2016-11-04 02:27:13 +00:00
Kunal Mehta
0ca1563644 Add tracking categories when magic links are used
This adds 3 tracking categories, one for each type of magic link (ISBN,
RFC, PMID). This will allow wikis to gauge usage and identify pages that
need migrating.

These will only show up if the respective magic links are enabled via
$wgEnableMagicLinks.

Change-Id: Ic483f0c493112bf6373e1b37961e1241c20c3582
2016-11-04 02:20:05 +00:00
MtDu
b85a17b754 installer: Make help link in sidebar same as default Main Page one
Point to www.mediawiki.org instead of meta.wikimedia.org.

Bug: T148004
Change-Id: I1bc8a84773e69529aed719ce36f1196f12b56226
2016-11-04 02:14:16 +00:00
Aaron Schulz
4fc3e9e92e Make LBFactorySingle external LB methods throw exceptions
There are no external clusters with this LB factory class,
so calling these methods makes no sense.

Change-Id: I63a9c6c76ba036980cfaab3ef03574295e46c6bf
2016-11-03 23:30:46 +00:00
jenkins-bot
9f8bf89dd4 Merge "Break long lines in OutputPage::sendCacheControl()" 2016-11-03 21:56:16 +00:00
Translation updater bot
931637794f Localisation updates from https://translatewiki.net.
Change-Id: Ia3c53700406b070077e3f2381c7735d54e545c9b
2016-11-03 22:27:38 +01:00
Aaron Schulz
919992eece Break long lines in OutputPage::sendCacheControl()
Change-Id: I72d494f4c97aef9d500bb5d7b36dad30a44f501a
2016-11-03 13:06:59 -07:00
jenkins-bot
f9b32b1e40 Merge "htmlform: Tighten CSS rules for .mw-htmlform-flatlist" 2016-11-03 19:25:41 +00:00
jenkins-bot
def6603079 Merge "Don't fatal on invalid timestamps" 2016-11-03 19:21:54 +00:00