Ricordisamoa
37a9a645a7
Add 'license-name' matching SPDX conventions
...
References:
http://spdx.org/licenses/
https://www.mediawiki.org/wiki/Manual:$wgExtensionCredits#license-name
Change-Id: Ic19d23be1b816ae5be307f224ab6c05512b2f3bf
2015-01-29 16:34:58 +01:00
Timo Tijhof
40a650fb15
Use array_merge instead of += as the latter doesn't always work
...
In plus, existing keys have precedence. So many of the tests
and up not being registered or run.
Change-Id: Icb43de3e7e5016981a097d65b4f0b0abca8fa184
2015-01-20 16:55:35 -08:00
Kunal Mehta
c50ebdedeb
Add missing $wgAutoloadClasses entry
...
Change-Id: I8d23c21ae94c5fc64781a9578a74bb841bc7ec9e
2015-01-06 16:40:52 +00:00
Kunal Mehta
8dc6b9ee99
Use MovePageCheckPermissions hook if possible
...
Change-Id: Ic5026384b92a0d68d628397ffe1de6e5b6183f02
2014-10-28 12:32:26 -07:00
Kunal Mehta
86d87ba4ca
Stop using deprecated CentralAuthAutoCreate hook
...
Already using AbortAutoAccount, this was causing each autocreation
to be filtered twice.
Change-Id: I6fc7120f69b2b4673d2b3e5752c8c3252e87dfb7
2014-07-14 05:09:48 -07:00
Jackmcbarn
f0e2d73e87
Display a warning when editing a blacklisted page
...
Show a warning when users are about to create or edit a page that the
titleblacklist prevents most users from creating or editing.
Bug: 13780
Change-Id: I0e3c08d026e415c31c792dffbb6bb300c7f1fd9c
2014-07-10 16:29:35 -04:00
PiRSquared17
750a76ca7f
Add log for TitleBlacklist hits
...
This adds a log, Special:Log/titleblacklist.
Since titleblacklist hits when editing or moving
can be triggered with GET, they are not logged.
(i.e. only local account creations are logged)
Bug: 21206
Change-Id: I1b7396cebaa528edca043d5d3dfbf9d950d0e116
2014-05-23 19:02:49 +00:00
Siebrand Mazeland
013979589d
Migrate to JSON i18n
...
Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php
with shim.
Change-Id: I55d19cd7008c5638f7c599727c429968be86fc06
2014-03-29 13:47:09 +01:00
Jackmcbarn
bf188e7af1
Add mw.ext.TitleBlacklist.test
...
Add lua method mw.ext.TitleBlacklist.test(action, title), which tests
whether a titleblacklist entry is active for a given title and action, and
if so, returns details of the entry.
Change-Id: I4360d1ad4e602d58dabd12b683d338a0e09a2950
2014-01-14 17:06:07 -05:00
Antoine Musso
394e78b8fd
test: register them using the 'UnitTestsList' hook
...
Change-Id: I32863986ebf1a49f5c546ca98e9b558b9c4a2850
2013-11-07 11:34:48 +01:00
Krenair
98aed02288
Add the mediawiki.api.titleblacklist module
...
Removed from mediawiki core in Ia5950853716.
Bug: 38244
Change-Id: I5bf7064ac6a82ed15e0589f255de4ef6c7349c4e
2013-03-06 16:27:20 +00:00
Victor Vasiliev
52bab2daed
(bug 36939) Introduce a way to limit username filter to certain sources.
...
* Name all sources and track them inside the entries. This should be
fully backwards-compatible with previous configuration format,
since numbers may be a legitimate source names as well.
* Introduce $wgTitleBlacklistUsernameSources as a variable which allows
to specify which sources may be used for filtering usernames.
Change-Id: Ia2702370c85f317c763e345c8f92cb38e23e4196
2013-02-20 22:54:25 -08:00
Ori Livneh
baaf91c8ea
author: Fran McRory ⇶ Fran Rogers
...
Change-Id: I91de7d52903020f5c02b669630d08a06b6ef5589
2013-02-18 19:52:44 -08:00
Siebrand Mazeland
16f32456ad
Maintenance for TitleBlacklist extension.
...
* Use Message class.
* Remove trailing whitespace from 'titlewhitelist'.
* stylize.php.
* Update .gitignore.
Change-Id: Ie78fa25816808b0a695cc20630097326fb4cf705
2012-09-18 15:57:57 +02:00
Sam Reed
fa270c9728
Swap Fran Rogers to Fran McCrory per request
2012-02-23 01:23:53 +00:00
Sam Reed
c06c850910
Swap
...
version_compare($wgVersion, '1.17alpha', '>=') ? 'antispam' : 'other'
for
'antispam'
2012-02-13 14:06:45 +00:00
Brion Vibber
8e1afc2a8f
Update a butt-ton of extension about URLs to point to https://www.mediawiki.org/
2011-12-13 23:49:33 +00:00
Alexandre Emsenhuber
661285c2db
Added TitleBlacklist::singleton() to get an instance of the TitleBlacklist instead of having to use $wgTitleBlacklist and call efInitTitleBlacklist()
2011-07-30 15:13:28 +00:00
Ian Baker
00242b75f1
Added an API to TitleBlackList to make it possible to check the blacklist in advance. Makes for more responsive UI.
2011-07-21 22:08:44 +00:00
Brion Vibber
5cd6dc1b6b
* (bug 24755) AuthPlugin auto-creation of local accounts can now be aborted by
...
other extensions by handling the 'AbortAutoAccount' hook, similar to the
'AbortNewAccount' triggered by explicit account creations. (They are separate
to avoid loops and confusion; auth plugins like CentralAuth need to handle
AbortNewAccount separately.
2011-04-05 01:18:40 +00:00
Sam Reed
c8d5112717
Documentation, braces, unused globals
2011-03-17 22:20:01 +00:00
Daniel Friesen
803a3488ce
Followup r78590, apparently the code that puts unknown categories of extensions into 'other' was not implemented until MediaWiki 1.17... *sigh* So we need to include a version check on these extensions until they stop supporting pre-1.17 versions of MediaWiki.
2010-12-20 04:05:54 +00:00
Daniel Friesen
f5ea0f452c
Change extension group 'other' for some of our antispam extensions into the new 'antispam' extension groups. Pre trunk wiki will just keep displaying them in 'other' anyways till release.
2010-12-19 01:59:11 +00:00
Victor Vasiliev
3219bf6dcb
Title blacklist:
...
* (bug 22141) Introduce a separate user right for overriding title blacklist on account creations only
* Some minor refactorings
2010-11-08 21:55:05 +00:00
Alexandre Emsenhuber
c52acec944
Big changes to extensions' documentation:
...
* changed all @addtogroup to @ingroup
* added some @file where needed
* changed some @package/@subpackage to @ingroup
2010-06-06 15:12:22 +00:00
Liangent
0dd93b246d
Use the hook CentralAuthAutoCreate to prevent blacklisted user names to be created from global users
2010-06-04 13:36:29 +00:00
Siebrand Mazeland
79e435968c
* Remove $wgExtensionCredits['description'] where $wgExtensionCredits['descriptionmsg'] present. This feature was introduced in MediaWiki 1.12, and 'description' is not used if 'descriptionmsg' is present.
...
* Random indentation updates and trailing whitespace removed
2010-02-22 23:41:51 +00:00
Shinjiman
79eab4dc38
Follows up r49890, adding file location itself to obtaining the revision number shown in the Special:Version
2009-04-27 04:45:10 +00:00
Andrew Garrett
eb3153baf8
Revert "Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions."
...
Uses $dir in extension files, and assumes that it remains unchanged in require_once( 'maintenance/commandLine.inc' ).
In fact, it is likely that '$dir' will be set when setting up command-line, as some extensions will use the same var.
Recommended fix: Use $CentralAuth_dir, $EmailPage_dir, etc.
2008-11-30 03:15:22 +00:00
Siebrand Mazeland
2d4b05df10
Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions.
2008-11-26 23:17:15 +00:00
Fran Rogers
85d29ce237
self-rv; mixed up diffs
2008-09-14 01:43:21 +00:00
Fran Rogers
dc41069d3c
Block redirects to blacklisted nonexistent titles as well.
2008-09-14 01:39:00 +00:00
Fran Rogers
97a9812b69
Fixes for problems mentioned in r38967
2008-08-09 01:54:39 +00:00
Brion Vibber
1c2794eb00
Revert r38636 and following for now, doesn't work at present.
...
Aug 8 23:22:25 srv35 httpd[5547]: PHP Fatal error: Using $this when not in object context in /home/wikipedia/common/php-1.5/extensions/TitleBlacklist/TitleBlacklist.list.php on line 98
Fatal error: Call to private method TitleBlacklist::parseBlacklist() from context 'TitleBlacklistHooks' in /Library/WebServer/Documents/trunk/extensions/TitleBlacklist/TitleBlacklist.hooks.php on line 90
2008-08-08 23:26:44 +00:00
Siebrand Mazeland
a71b2dd437
Use author array in credits.
2008-08-05 17:08:29 +00:00
Fran Rogers
129796f76b
Added username blacklist capabilities to TitleBlacklist. Since the
...
UsernameBlacklist extension is unmaintained, rather brittle, and only
supports a single local blacklist, and also on most wikis both
blacklists will be closely intertwined if not identical, it seems
logical that TitleBlacklist take over both functions. :)
2008-08-05 15:57:10 +00:00
Alexandre Emsenhuber
9330fc0c7f
Like UsernameBlacklist, remove useless extension function
2008-06-11 21:02:36 +00:00
Ilmari Karonen
afac00b084
Remove verifyUpload hook, just check images using the normal userCan hook. This closes a loophole that allowed creation of blacklisted image pages via normal editing. Note that combining this version with MediaWiki revisions prior to r35167 breaks the 'reupload' option and produces uninformative output for blacklisted uploads.
2008-05-22 01:35:48 +00:00
Raimond Spekking
f470da2558
Add description message for [[Special:Version]]
2008-02-18 20:43:36 +00:00
Victor Vasiliev
f883ab0abd
Create object when necessary
2008-02-01 14:24:59 +00:00
Victor Vasiliev
2381cc0693
* Use this (see prev commit) hook in the TitleBlacklist
...
* Fix profiling
2008-01-14 13:52:05 +00:00
Niklas Laxström
c8bc2845f3
* Delay message loading
2008-01-10 23:16:48 +00:00
Brion Vibber
d97448856c
* Use UTF-8 option on regex matches, not just validation. Fixes case-insensitivity and character class matches for non-ASCII chars.
...
* Invalidate cached blacklist after save completion of MediaWiki:Titleblacklist rather than during edit filtering. Should help avoid race conditions which would leave you with the old version cached.
* Some minor whitespace & style cleanup
* Some output escaping cleanup
2007-12-29 04:23:57 +00:00
Siebrand Mazeland
cb9d0faebe
* use wfLoadExtensionMessages for TitleBlacklist
...
* update support for TitleBlacklist in Translate
2007-12-26 16:50:58 +00:00
Victor Vasiliev
e0c312c5fd
Validate MediaWiki:TitleBlacklist and delete it from cache before saving
2007-12-23 09:47:36 +00:00
Victor Vasiliev
b4340da579
TitleBlacklist v1.3: add caching
2007-12-19 18:35:44 +00:00
Siebrand Mazeland
2ed55fa43f
revert r28306, r28308, r28309, r28312
2007-12-16 18:45:23 +00:00
Siebrand Mazeland
a341978ca9
revert 28376, 28377, 28378
2007-12-16 18:21:11 +00:00
Victor Vasiliev
281c040bd2
TitleBlacklist:
...
Use a better hook (getUserPermissionsErrors)
2007-12-15 06:16:19 +00:00
Siebrand Mazeland
9a723566ac
* complete $wgExtensionCredits
...
* remove trailing whitespace
2007-12-10 23:04:24 +00:00