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:
3721e82
)
Add profiling to removeWatch
author
Sam Reed
<reedy@users.mediawiki.org>
Sun, 13 Feb 2011 19:12:24 +0000
(19:12 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Sun, 13 Feb 2011 19:12:24 +0000
(19:12 +0000)
includes/WatchedItem.php
patch
|
blob
|
history
diff --git
a/includes/WatchedItem.php
b/includes/WatchedItem.php
index
0cf8a77
..
dd6e247
100644
(file)
--- a/
includes/WatchedItem.php
+++ b/
includes/WatchedItem.php
@@
-84,6
+84,8
@@
class WatchedItem {
* @return bool
*/
public function removeWatch() {
+ wfProfileIn( __METHOD__ );
+
$success = false;
$dbw = wfGetDB( DB_MASTER );
$dbw->delete( 'watchlist',
@@
-112,6
+114,8
@@
class WatchedItem {
if ( $dbw->affectedRows() ) {
$success = true;
}
+
+ wfProfileOut( __METHOD__ );
return $success;
}