Commit graph

5330 commits

Author SHA1 Message Date
Translation updater bot
8cff129de1 Localisation updates from https://translatewiki.net.
Change-Id: Ic427ce81276365b5e4ce288bd1b330850592ac81
2017-08-12 21:57:43 +02:00
jenkins-bot
84b6d5c2e5 Merge "Add missing type to @param documentation" 2017-08-11 21:31:51 +00:00
WMDE-Fisch
6df9ed1ad6 update mediawiki-codesniffer to 0.11.0 and fix issues
- mostly auto fixes
- some too long lines fixed
- ignore amp space in one case  passing by reference

Change-Id: I6472f83bc3cbf4bd629d83050cc3319b19ec465c
2017-08-11 22:27:51 +02:00
Umherirrender
5544cef16b Add missing type to @param documentation
Change-Id: I6b2c9c7af9a281fe457099cc3a336a60a25e74aa
2017-08-11 20:37:35 +02:00
Umherirrender
ace44e2064 Use correct variable name in @param documentation
For some varargs a variable name is added with suffix ,... as seen for
many other varargs

Some @param are swapped, because there are in the wrong order

Enable Sniff MediaWiki.Commenting.FunctionComment.ParamNameNoMatch

Change-Id: I60fec6025bce824d5c67563ab7b65ad6cd628ad8
2017-08-11 19:27:19 +02:00
Umherirrender
a9007e8baf Add missing & to @param documentation to match functon call
Change-Id: I81e68310abcbc59964b22e0e74842d509f6b1fb9
2017-08-11 18:47:46 +02:00
Umherirrender
bf61a77431 Change @inheritdoc to @inheritDoc
Only @inheritDoc works for the Sniff
MediaWiki.Commenting.FunctionComment

Change-Id: I91fc02cda6701d790e4334fc2bc47f230955545c
2017-08-11 16:49:52 +02:00
Mako Bates
c30ef98293 Add page id to the API representation of pages in search results
'pageid' is now an always-on property returned by API:Search.
Change made in ApiQuerySearch.php::getSearchResultData().

Bug: T172700
Change-Id: I9d856efdd1d72c70bf9fb72c82b1f276abef8b16
2017-08-09 21:54:44 +00:00
Translation updater bot
456dff471f Localisation updates from https://translatewiki.net.
Change-Id: I67dc3e23a15b91c2eb6594570aacd6bb6755cbc6
2017-08-07 21:53:51 +02:00
Translation updater bot
68b6b5341b Localisation updates from https://translatewiki.net.
Change-Id: Id226baddee0b5f5737c1555995da1aa8527558b2
2017-08-06 21:57:21 +02:00
jenkins-bot
fb79f30319 Merge "Fix and make some types in PHPDoc and JSDoc tags more specific" 2017-08-05 22:08:00 +00:00
Thiemo Mättig
c785efd25e Fix and make some types in PHPDoc and JSDoc tags more specific
Change-Id: I7c109067579f570ecccaabc75b0b4db7eac4e6c2
2017-08-05 18:46:44 +02:00
jenkins-bot
033a89c6ca Merge "Don't declare ApiQueryLinks::$titlesParam dynamically" 2017-08-05 00:34:55 +00:00
Translation updater bot
7de48169a6 Localisation updates from https://translatewiki.net.
Change-Id: I7db074c26fdb26d538c56e4eb21db39b281aa9b3
2017-08-04 22:45:42 +02:00
Reedy
7e18aed900 Don't declare ApiQueryLinks::$titlesParam dynamically
Change-Id: Ie7b553b2d368766df2c3989d58e42f1b6d3d6779
2017-08-04 19:12:29 +00:00
Max Semenik
fd6e9ef2d4 Human-readable section ID support
It adds the ability to replace the current section ID escaping
schema (.C0.DE) with a HTML5-compliant escaping schema that is
displayed as Unicode in many modern browsers.

See the linked bug for discussion of various options that were
considered before the implementation. A few remarks:
* Because Sanitizer::escapeId() is used in a bunch of places without
  escaping, I'm deprecating it without altering its behavior.
* The bug described in comments for Parser::guessLegacySectionNameFromWikiText()
  is still there in some Edge versions that display mojibake.

Bug: T152540
Change-Id: Id304010a0342efbb7ef2d56c5b8b244f2e4fb2c5
2017-08-01 20:32:20 -07:00
Translation updater bot
b161fd7b30 Localisation updates from https://translatewiki.net.
Change-Id: I65223520fecf6d5ef2ae15427edf417422c15666
2017-07-29 22:02:39 +02:00
Translation updater bot
159249ea66 Localisation updates from https://translatewiki.net.
Change-Id: I6b3c261e8f61c25f86129b368993ba111cc8ad8c
2017-07-25 21:58:01 +02:00
Brad Jorsch
23eb7ac537 ApiEmailUser: Add parentheses to fix output
Stupid PHP ternary operator being left-associative.

Bug: T171416
Change-Id: Iddcbe0d75d583e4021a3aab47be4a4912c492f03
2017-07-24 15:47:17 -04:00
Kunal Mehta
d1cf48a397 build: Update mediawiki/mediawiki-codesniffer to 0.10.1
And auto-fix all errors.

The `<exclude-pattern>` stanzas are now included in the default ruleset
and don't need to be repeated.

Change-Id: I928af549dc88ac2c6cb82058f64c7c7f3111598a
2017-07-22 18:24:09 -07:00
Translation updater bot
c1152c9be8 Localisation updates from https://translatewiki.net.
Change-Id: Idaf7df307423797d7bed4f911abcb8da9ddba271
2017-07-22 22:02:01 +02:00
jenkins-bot
f4a53c5406 Merge "API: Add deprecation warnings for Iae0e2ce3" 2017-07-21 21:12:10 +00:00
Translation updater bot
8b7ddfa0d0 Localisation updates from https://translatewiki.net.
Change-Id: If2ca75be14878eb12f54f36e6365872b15c5f7e3
2017-07-19 22:00:38 +02:00
Raimond Spekking
3e4f72bc7e Revert "Localisation updates from https://translatewiki.net."
Overwrites https://gerrit.wikimedia.org/r/365234

This reverts commit 467a1167a7.

Change-Id: Icb4177ffbcc541dd5140c80a4133b868eb8f5169
2017-07-18 20:13:46 +00:00
Translation updater bot
467a1167a7 Localisation updates from https://translatewiki.net.
Change-Id: I5888335a51fcc80cdcf19ec6fa59c1cf06434065
2017-07-18 22:11:38 +02:00
Translation updater bot
445177e210 Localisation updates from https://translatewiki.net.
Change-Id: Ief7038a0c8b5e47b01b177e3a2cd7a472538f02d
2017-07-16 21:59:08 +02:00
Translation updater bot
775b873d5c Localisation updates from https://translatewiki.net.
Change-Id: I9bd42f589285be09db8e45e5eb88966f430228d5
2017-07-15 22:02:18 +02:00
Translation updater bot
ec27b35f81 Localisation updates from https://translatewiki.net.
Change-Id: I272241868eec5790ebc164f74b3d8f6982153776
2017-07-14 22:01:37 +02:00
Translation updater bot
0dffb5a0fd Localisation updates from https://translatewiki.net.
Change-Id: Ice8d28e7cb190e7c0b2ec4d95a3e3e2e835b17bb
2017-07-12 22:07:50 +02:00
Translation updater bot
9ff24c04f4 Localisation updates from https://translatewiki.net.
Change-Id: I2d28957e14a7a90a5cba88bfe1a60060387d7cdc
2017-07-10 22:02:31 +02:00
Roan Kattouw
1210916329 Use Sanitizer::stripAllTags( $x ) instead of html_entity_decode( strip_tags( $x ) )
We have a utility function for this, so let's use it.

What I don't understand though is why Sanitizer uses custom PHP implementations
for both tag stripping and entity decoding, instead of the built-in functions.
If there's a security reason for this or the built-ins are inadequate, that's
fine, but then that should be documented (and we should possibly ban usage
of the built-ins).

Change-Id: I2ba2ecd388cb3d9cd2360ecaa236f3d444f0eabf
2017-07-07 16:53:53 -07:00
Translation updater bot
8a16f5791f Localisation updates from https://translatewiki.net.
Change-Id: I43c7687a6be0a4b411287ccd2c3541c9edab5c30
2017-07-07 23:35:54 +02:00
jenkins-bot
43697f81b0 Merge "Avoid high edit stash TTLs when a user signature was used" 2017-07-07 01:21:30 +00:00
Matthew Flaschen
27b14fb898 Clarify what $params is for ApiBase methods to get Title/WikiPage
Change-Id: I1bfae270072ba08db967a02a8e30047bc607e3a2
2017-07-06 20:01:54 -04:00
Aaron Schulz
7ff8529984 Avoid high edit stash TTLs when a user signature was used
This adds a new ParserOuput user-signature tracking flag.

Bug: T84843
Change-Id: I77de05849c15e17ee2b9b31b34172f4b6a49a38e
2017-07-06 16:34:26 -07:00
jenkins-bot
dc58db7464 Merge "Remove empty lines at begin of function, if, foreach, switch" 2017-07-03 19:19:27 +00:00
Translation updater bot
ffe76f8160 Localisation updates from https://translatewiki.net.
Change-Id: Ic4006ba2d837d0e47d94591742d418ad517e4d26
2017-07-02 21:55:08 +02:00
Translation updater bot
865a85a9cd Localisation updates from https://translatewiki.net.
Change-Id: Ic282c8a9b73144ad7351da0bde0706bc0d1c66a8
2017-07-01 21:55:08 +02:00
Umherirrender
b5cddfb27b Remove empty lines at begin of function, if, foreach, switch
Organize phpcs.xml a bit

Change-Id: Ifb767729b481b4b686e6d6444cf48b1f580cc478
2017-07-01 11:34:16 +00:00
Aaron Schulz
806a2214e2 Always log exceptions in rollbackMasterChangesAndLog()
MWExceptionHandler::rollbackMasterChangesAndLog() only logged exceptions
if there were already master changes. This is extremely problematic when
debugging, especially in situations like DeferredUpdates where they were
silently being swallowed.

This makes it log exceptions in all paths, erring on the side of logging
the same exception twice (theoretically it's possible I suppose) instead
of not at all.

Also make the method able to handle DBError exceptions, which most of
the callers seemed to be assuming. ApiMain was handling this explicitly.

Bug: T168347
Change-Id: I8739051f824a455ba669344184c3b11ac95cb561
2017-06-30 22:32:47 +00:00
Translation updater bot
6711b872b8 Localisation updates from https://translatewiki.net.
Change-Id: Ic9c8bdac869b2a4f218933be4803887a623c51fa
2017-06-30 22:24:51 +02:00
Brad Jorsch
723949c2ff API: Split non-English description messages into summary + additional text
Per request, automatically split non-English messages to avoid a lot of
work for translatewiki.

Change-Id: Ifb9928dfbc59028d0df65ff07e067aa17bcf0c2f
2017-06-30 13:02:43 -04:00
Matthias Mullie
05259c3de4 Improve error messages for (known unknown) network errors
Bug: T132611
Change-Id: I22f26e56e089edad7c423ac8f0007b5439de3e58
2017-06-30 14:44:45 +02:00
jenkins-bot
d89e006b74 Merge "API: Don't handle non-preflight OPTIONS as CORS" 2017-06-29 22:03:39 +00:00
Translation updater bot
bf6e21a4c2 Localisation updates from https://translatewiki.net.
Change-Id: I420c049cd13179f6780c6a7f85857e2bf1389f99
2017-06-29 22:17:37 +02:00
Translation updater bot
9173259cdf Localisation updates from https://translatewiki.net.
Change-Id: I889cf1f5e93554486b452922edd474ef865bec7f
2017-06-28 22:01:23 +02:00
Aaron Schulz
82e2c924e4 Remove "@author Aaron Schulz" annotations
Bug: T139301
Change-Id: Ib5248e8e27d60611c7373bce4b29dd5e85aa3489
2017-06-27 15:24:14 -07:00
Translation updater bot
fef7308dd3 Localisation updates from https://translatewiki.net.
Change-Id: I27707dbaae9edf04ef400300801c339a22df3eb3
2017-06-27 21:54:39 +02:00
jenkins-bot
bc213a9d46 Merge "build: Prepare for mediawiki/mediawiki-codesniffer to 0.9.0" 2017-06-27 08:57:28 +00:00
jenkins-bot
8ddf721b6f Merge "Remove "@author Bryan Davis" and "Brad Jorsch" annotations" 2017-06-27 06:02:23 +00:00