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:
737a19d
)
Apply live hack from Wikimedia codebase: add a hook UserCanSendEmail to override...
author
Brion Vibber
<brion@users.mediawiki.org>
Tue, 29 Jan 2008 00:29:38 +0000
(
00:29
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Tue, 29 Jan 2008 00:29:38 +0000
(
00:29
+0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
ba77fdd
..
08c7a51
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-2459,7
+2459,9
@@
class User {
* @return bool
*/
function canSendEmail() {
- return $this->isEmailConfirmed();
+ $canSend = $this->isEmailConfirmed();
+ wfRunHooks( 'UserCanSendEmail', array( &$this, &$canSend ) );
+ return $canSend;
}
/**
@@
-2468,7
+2470,7
@@
class User {
* @return bool
*/
function canReceiveEmail() {
- return $this->
canSendEmail
() && !$this->getOption( 'disablemail' );
+ return $this->
isEmailConfirmed
() && !$this->getOption( 'disablemail' );
}
/**