Commit graph

1391 commits

Author SHA1 Message Date
Reedy 4b980d96e2 Article -> PageContent in hook function documentation
Change-Id: I943233446c0f621c671295696c6186ffb6cfd017
2016-10-09 18:50:12 +01:00
Reedy a647e21654 Replace Article::getContent()
Bug: T145733
Change-Id: I61173d02a6b5633bcf87d21063f600428f478ce1
2016-10-09 00:53:57 +00:00
Reedy 496afa6548 Replace ArticleSaveComplete hook usage
Bug: T147558
Change-Id: I30f8e4d3c98a421036374245522bc0784ceafec3
2016-10-06 17:24:42 +01:00
Translation updater bot 2429c84002 Localisation updates from https://translatewiki.net.
Change-Id: If240a9aa3c46eb21f66dd55f1cc2250afc9b5cb3
2016-09-26 22:43:22 +02:00
Brad Jorsch 75a8813c86 Remove pre-1.25 API compatibility code
Since this extension uses extension.json, it already requires 1.25+ so
no need to keep the old code around.

Change-Id: I4acbeec983367f0bd3e7b1996d377bb6e5835d63
2016-09-20 15:32:21 -04:00
Translation updater bot edaca9c580 Localisation updates from https://translatewiki.net.
Change-Id: Ib67720c33def2f2db17c606350101da44ba70dae
2016-09-19 23:01:40 +02:00
Translation updater bot d7feb6335a Localisation updates from https://translatewiki.net.
Change-Id: I1d612699a12da8f6348658373eebb55d8d44a181
2016-09-17 23:22:40 +02:00
Translation updater bot 7b84072844 Localisation updates from https://translatewiki.net.
Change-Id: I99b3933c95acb348ae6f990166e82de9b291ebd7
2016-09-15 23:04:19 +02:00
Translation updater bot d4e4f6bc05 Localisation updates from https://translatewiki.net.
Change-Id: Iadb428525cc3702856c09a53c9f786d71428e8ac
2016-09-13 22:57:16 +02:00
Translation updater bot 5a7e5e0f0b Localisation updates from https://translatewiki.net.
Change-Id: I484fb22c24655375c9d2974c86d2d3045f8e604d
2016-09-12 23:09:14 +02:00
Translation updater bot e50cb1cd36 Localisation updates from https://translatewiki.net.
Change-Id: Ie360fef2be4acb3bab977c2f5ec9a63b4013d096
2016-09-09 22:59:48 +02:00
Translation updater bot a066c07e8d Localisation updates from https://translatewiki.net.
Change-Id: Icfc4ce92727112ca5b25a3caba5dffa5e20fe34b
2016-08-29 22:40:17 +02:00
Translation updater bot fbf6ab8f27 Localisation updates from https://translatewiki.net.
Change-Id: I9d8827173fbbe2652cd2c10e52945538bcf4e426
2016-08-16 22:45:51 +02:00
Translation updater bot dd06d47ea8 Localisation updates from https://translatewiki.net.
Change-Id: I1e5d7e190e901834ea96fad55aa746be6f5ca0ec
2016-08-08 22:36:43 +02:00
Reedy 1ebec92f0a Remove 'UnitTestList' hook
No longer needed now that extension unittests are autodiscovered.

Bug: T142120
Bug: T142121
Change-Id: Id86f4909e9c74c884ce33434717ad6993cbcc2bd
2016-08-05 17:38:12 +01:00
Bartosz Dziewoński 8437d98027 Add "targets": [ "desktop", "mobile" ] to 'mediawiki.api.titleblacklist' module
Bug: T97202
Change-Id: I6bffc6088f04527c0c5ca8ea8ec33de800582ee6
2016-08-03 18:56:33 +02:00
Translation updater bot 4c64871c1c Localisation updates from https://translatewiki.net.
Change-Id: I57d7a54fe4923a5c655c2af8cbed328a8041a996
2016-07-31 22:27:10 +02:00
Translation updater bot 01b296ae3a Localisation updates from https://translatewiki.net.
Change-Id: I0a8e6aa13e1899dad616f28dfe58a64e6fe5d0fa
2016-07-26 22:56:50 +02:00
jenkins-bot d24c58c79d Merge "Add message parameters to API response" 2016-07-11 15:42:47 +00:00
Translation updater bot 2d9f72cab6 Localisation updates from https://translatewiki.net.
Change-Id: I098f3c1f874fdc22d961fa9731b02d34d1d02339
2016-07-09 22:55:53 +02:00
Translation updater bot e9b262dfaf Localisation updates from https://translatewiki.net.
Change-Id: I3238631324c885938a90750d78498c6a5c943369
2016-07-08 23:11:49 +02:00
Translation updater bot 741a9fd215 Localisation updates from https://translatewiki.net.
Change-Id: Ibb9b5188cc6555b1c383af70f39090b78b9ba767
2016-07-07 22:40:11 +02:00
Bartosz Dziewoński a4857e0793 Add message parameters to API response
We previously added the message key as .message property
(97b433286d), leaving it for the API
client to know what the parameters are and how to get them.
(Here, the parameters are the .line property and the page title.)

Let's just do this work for the client, so that it doesn't have to
know what TitleBlacklist is - it'll be able to just display the given
message with the given parameters. My specific use case is the upload
dialog in core (core shouldn't have to know about any extensions).

See also AbuseFilter change I5780eae96930211191ecd874aacf53fdacb58f89.

Change-Id: I97c1f5c6bbbdfc0b8ea9914bb075d5299c14df8f
2016-06-29 19:46:28 +02:00
Translation updater bot c3fe226d80 Localisation updates from https://translatewiki.net.
Change-Id: I90b96bd613d79f2fbb0dd79aec6a4cee30ca531f
2016-06-20 22:23:14 +02:00
Brad Jorsch 8ab382e535 Add $options parameter for testUserForCreation()
Also use it to only log the title blacklist hit when running for real,
not when testing a username.

Change-Id: Ie9639a15d04b387be0e72754301eb6d91cd8adc2
2016-06-16 17:57:06 -04:00
Kunal Mehta 86889ec684 chmod -x TitleBlacklist.list.php
Change-Id: Ifa7fb3c887328fff4175f923fba67eac1ab7aa95
2016-06-15 18:05:34 -07:00
Translation updater bot e9e19a0616 Localisation updates from https://translatewiki.net.
Change-Id: Id0f0566a729f8bc7a4a0daa39a02fc9dd2b990c0
2016-06-15 22:40:20 +02:00
Jackmcbarn 9cae0fb2fe Don't show blacklist warning for autoconfirmed protection
Bug: T137369
Change-Id: Ia03c770143f14505df0d2bcf8febca6f32777e58
2016-06-14 22:42:22 -04:00
Gergő Tisza a3ecb237b5 Improve provider's canCreateAccount logic
Test non-autocreations; assume the user would override.

Change-Id: I18d40d95ffcb1aadd724efb3181a7cb32b803ff4
2016-05-31 16:51:15 +00:00
Brad Jorsch 49e8bf1d44 ApiQueryTitleBlacklistTest needs to restore globals
I guess this only ever worked before because none of the other tests
depended on these globals. Now that AuthManager is enabled by default,
one does.

Change-Id: If335fcc9b844a518b2c56bfa39153159261ae314
2016-05-31 10:57:14 -04:00
Translation updater bot 20bfe59963 Localisation updates from https://translatewiki.net.
Change-Id: Ia7a073357257206601d6c1b58b52aa1d76757b0c
2016-05-29 22:33:05 +02:00
Aaron Schulz 61dddceb86 Use caching in TitleBlacklist::matches() for existing pages
The unicode normalization always shows up as a sizable chunk of call
stack time in flame graphs.

Change-Id: Iebbe6a90020d756e800ebf7b9b12d39b86190a48
2016-05-26 22:54:34 +00:00
Translation updater bot cd9261c97f Localisation updates from https://translatewiki.net.
Change-Id: I89b2c2b6008634632dc77eea4404abba5d89e2bb
2016-05-26 22:46:48 +02:00
Translation updater bot 7c998391db Localisation updates from https://translatewiki.net.
Change-Id: Ib75c237bb11f215362f257919e4ebc2b6e1d14f7
2016-05-25 22:27:07 +02:00
Translation updater bot 04e72d3a71 Localisation updates from https://translatewiki.net.
Change-Id: I9db4e0d75a0587ad92ba9d34904e373d5869bda5
2016-05-24 23:10:10 +02:00
Translation updater bot 65b0cca01d Localisation updates from https://translatewiki.net.
Change-Id: I3e29efc2b5d0fd2d506491b780f569e1e9ab4eb3
2016-05-19 23:11:56 +02:00
Translation updater bot bb5198825e Localisation updates from https://translatewiki.net.
Change-Id: I57998dce95d4f9be7b166bc8e4243155d3c3e4ae
2016-05-18 22:14:09 +02:00
Translation updater bot c28b9884e4 Localisation updates from https://translatewiki.net.
Change-Id: I0e20e274e86332a03ca2bcbae20167739aa8db31
2016-05-17 22:24:54 +02:00
Gergő Tisza 17d3a9e313 Update for AuthManager
Bug: T110469
Change-Id: I9690d2fe6b172fcc85e1a8f7f91af21c6422d870
Depends-On: I8b52ec8ddf494f23941807638f149f15b5e46b0c
2016-05-12 00:23:11 +00:00
Translation updater bot 8f5961da3a Localisation updates from https://translatewiki.net.
Change-Id: Id17f72b0063fff1e61fdb234493f26452b9901f1
2016-04-17 22:19:54 +02:00
Translation updater bot ed5d30e361 Localisation updates from https://translatewiki.net.
Change-Id: I7888daeb72c8e888f7020ec21d84ececb405aaa4
2016-03-28 22:46:24 +02:00
Translation updater bot 04d6829159 Localisation updates from https://translatewiki.net.
Change-Id: Ie297bdb72067a819d2dfa0c1b2a767df021dce15
2016-03-13 22:57:16 +01:00
Translation updater bot e3a7db9ff3 Localisation updates from https://translatewiki.net.
Change-Id: If183e0d0c345f0ac8a08aaa987e182e750eed0ca
2016-03-06 22:17:35 +01:00
Brad Jorsch 7c75416374 Fix 'localpage' message handling
It looks like the original implementation of this (r28307) was
incorrectly using wfEmptyMsg() so it was checking if the specified
message page had content equal to '<titleblacklist>' rather than
checking whether the message actually being loaded was empty.

Then r64178 changed wfEmptyMessage() such that it was checking if the
'titleblacklist' message was disabled in the user's language, which
caused the behavior here to be even more wrong. Then Ie78fa258 came
along to cement this in place and make this code even more
incomprehensible.

So let's go back to what it was probably originally trying to do: return
the 'localpage' message's content if it's not disabled, or empty string if
it is disabled.

This should also take care of T56193#2068536, which is being triggered
by the attempt to load the message in the user's language.

Bug: T56193
Change-Id: I8fe7f03d68e6854106cc903baf7c14ba4badb7c7
2016-02-27 13:44:35 -05:00
Translation updater bot 59426679ab Localisation updates from https://translatewiki.net.
Change-Id: I9490f684e0b841fa5a1a5e9c5ef82ba3b7b80ee1
2016-02-20 22:25:11 +01:00
Translation updater bot d8f93f3d63 Localisation updates from https://translatewiki.net.
Change-Id: Icb071ee1408be5af00719764dff5d09dbf7c9c8a
2016-02-05 21:54:17 +01:00
Translation updater bot 56ef93839c Localisation updates from https://translatewiki.net.
Change-Id: I1b38acdc1751533664310884ff8e3ad5b9f73351
2016-02-04 22:17:25 +01:00
Translation updater bot e2ffb2a99d Localisation updates from https://translatewiki.net.
Change-Id: I40a2d1ed7ae43e4d182edcc062b329eae89516f4
2016-01-27 21:45:45 +01:00
Translation updater bot ab2e482838 Localisation updates from https://translatewiki.net.
Change-Id: Ief7047829690f194e315ac0e4c88e4fd8e6d8eed
2016-01-18 21:38:01 +01:00
Translation updater bot 64a48a0347 Localisation updates from https://translatewiki.net.
Change-Id: I4904ffd9bffeaf013565c169f86edd380bf0e1aa
2016-01-10 23:14:24 +01:00