dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not insert page titles into querycache.qc_value
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialBlock.php
diff --git
a/includes/specials/SpecialBlock.php
b/includes/specials/SpecialBlock.php
index
1b0db73
..
a03455b
100644
(file)
--- a/
includes/specials/SpecialBlock.php
+++ b/
includes/specials/SpecialBlock.php
@@
-1124,9
+1124,9
@@
class SpecialBlock extends FormSpecialPage {
* @return bool
*/
public static function canBlockEmail( UserIdentity $user ) {
* @return bool
*/
public static function canBlockEmail( UserIdentity $user ) {
- global $wgEnableUserEmail
, $wgSysopEmailBans
;
+ global $wgEnableUserEmail;
- return ( $wgEnableUserEmail &&
$wgSysopEmailBans &&
MediaWikiServices::getInstance()
+ return ( $wgEnableUserEmail && MediaWikiServices::getInstance()
->getPermissionManager()
->userHasRight( $user, 'blockemail' ) );
}
->getPermissionManager()
->userHasRight( $user, 'blockemail' ) );
}