From 20d85b52f9d13832a71da42498b69c4510dbc069 Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Sat, 15 Mar 2008 08:23:54 +0000 Subject: [PATCH] Output pretty message on forbidden uploads --- TitleBlacklist.hooks.php | 1 + 1 file changed, 1 insertion(+) diff --git a/TitleBlacklist.hooks.php b/TitleBlacklist.hooks.php index 7bf2c7b9..70127442 100644 --- a/TitleBlacklist.hooks.php +++ b/TitleBlacklist.hooks.php @@ -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 ) {