mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-15 10:17:49 +00:00
Output pretty message on forbidden uploads
This commit is contained in:
parent
a24d67e048
commit
20d85b52f9
|
@ -14,6 +14,7 @@ class TitleBlacklistHooks {
|
|||
public static function userCan( $title, $user, $action, &$result ) {
|
||||
global $wgTitleBlacklist;
|
||||
if( $action == 'create' || $action == 'edit' ) {
|
||||
if( $title->getNamespace() == NS_IMAGE ) return true; //Should be handled using verifyUpload
|
||||
efInitTitleBlacklist();
|
||||
$blacklisted = $wgTitleBlacklist->isBlacklisted( $title, $action );
|
||||
if( $blacklisted instanceof TitleBlacklistEntry ) {
|
||||
|
|
Loading…
Reference in a new issue