Add new hook, UserIsBlockedFrom, which allows extensions to exempt users from blocks...
authorAndrew Garrett <werdna@users.mediawiki.org>
Wed, 7 Oct 2009 14:28:26 +0000 (14:28 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Wed, 7 Oct 2009 14:28:26 +0000 (14:28 +0000)
includes/User.php

index a12349f..7b9b5ae 100644 (file)
@@ -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;
        }