From: Andrew Garrett Date: Wed, 7 Oct 2009 14:28:26 +0000 (+0000) Subject: Add new hook, UserIsBlockedFrom, which allows extensions to exempt users from blocks... X-Git-Tag: 1.31.0-rc.0~39362 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=0deecb77962fa32c23b72ff4d56bb49cb4c44dcb;p=lhc%2Fweb%2Fwiklou.git Add new hook, UserIsBlockedFrom, which allows extensions to exempt users from blocks on specific pages. --- diff --git a/includes/User.php b/includes/User.php index a12349f0a4..7b9b5aeff9 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1338,6 +1338,9 @@ class User { $blocked = false; wfDebug( __METHOD__ . ": self-talk page, ignoring any blocks\n" ); } + + wfRunHooks( 'UserIsBlockedFrom', array( $this, $title, &$blocked, &$allowUsertalk ) ); + wfProfileOut( __METHOD__ ); return $blocked; }