diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:30:02 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:30:02 -0400 |
commit | 1de335ad3f395ca6861085393ba366a9e3fb4a0d (patch) | |
tree | f1fdd326034e05177596851be6a7127615d81498 /includes/WatchedItem.php | |
parent | 9c75fa8ff6d4d38ef552c00fef5969fb154765e8 (diff) | |
parent | f6d65e533c62f6deb21342d4901ece24497b433e (diff) |
Merge commit 'f6d65'
# Conflicts:
# skins/ArchLinux/ArchLinux.php
Diffstat (limited to 'includes/WatchedItem.php')
-rw-r--r-- | includes/WatchedItem.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/includes/WatchedItem.php b/includes/WatchedItem.php index ab136b89..4d226924 100644 --- a/includes/WatchedItem.php +++ b/includes/WatchedItem.php @@ -275,7 +275,6 @@ class WatchedItem { * @return bool */ public static function batchAddWatch( array $items ) { - $section = new ProfileSection( __METHOD__ ); if ( wfReadOnly() ) { return false; @@ -331,11 +330,9 @@ class WatchedItem { * @return bool */ public function removeWatch() { - wfProfileIn( __METHOD__ ); // Only loggedin user can have a watchlist if ( wfReadOnly() || $this->mUser->isAnon() || !$this->isAllowed( 'editmywatchlist' ) ) { - wfProfileOut( __METHOD__ ); return false; } @@ -370,7 +367,6 @@ class WatchedItem { $this->watched = false; - wfProfileOut( __METHOD__ ); return $success; } @@ -401,7 +397,8 @@ class WatchedItem { $newtitle = $nt->getDBkey(); $dbw = wfGetDB( DB_MASTER ); - $res = $dbw->select( 'watchlist', 'wl_user', + $res = $dbw->select( 'watchlist', + array( 'wl_user', 'wl_notificationtimestamp' ), array( 'wl_namespace' => $oldnamespace, 'wl_title' => $oldtitle ), __METHOD__, 'FOR UPDATE' ); @@ -411,7 +408,8 @@ class WatchedItem { $values[] = array( 'wl_user' => $s->wl_user, 'wl_namespace' => $newnamespace, - 'wl_title' => $newtitle + 'wl_title' => $newtitle, + 'wl_notificationtimestamp' => $s->wl_notificationtimestamp, ); } |