dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eb48db
)
Add new hook, UserIsBlockedFrom, which allows extensions to exempt users from blocks...
author
Andrew Garrett
<werdna@users.mediawiki.org>
Wed, 7 Oct 2009 14:28:26 +0000
(14:28 +0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Wed, 7 Oct 2009 14:28:26 +0000
(14:28 +0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
a12349f
..
7b9b5ae
100644
(file)
--- 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;
}