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:
2c29208
)
Followup r91168, fix last usage of $currentUser which was undefined
author
Sam Reed
<reedy@users.mediawiki.org>
Fri, 1 Jul 2011 01:30:26 +0000
(
01:30
+0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Fri, 1 Jul 2011 01:30:26 +0000
(
01:30
+0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
4284550
..
422a7cc
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-2582,13
+2582,14
@@
class User {
$this->setNewtalk( false );
return;
}
- if( $currentUser != 0 ) {
+ $id = $this->getId();
+ if( $id != 0 ) {
$dbw = wfGetDB( DB_MASTER );
$dbw->update( 'watchlist',
array( /* SET */
'wl_notificationtimestamp' => null
), array( /* WHERE */
- 'wl_user' => $
this->getId()
+ 'wl_user' => $
id
), __METHOD__
);
# We also need to clear here the "you have new message" notification for the own user_talk page