From: Sam Reed Date: Sun, 13 Feb 2011 19:12:24 +0000 (+0000) Subject: Add profiling to removeWatch X-Git-Tag: 1.31.0-rc.0~32009 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=912ec3aef6fcb68e3b2e214094234831fb26437e;p=lhc%2Fweb%2Fwiklou.git Add profiling to removeWatch --- diff --git a/includes/WatchedItem.php b/includes/WatchedItem.php index 0cf8a77cb3..dd6e247b92 100644 --- 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; }