From: Aaron Schulz Date: Tue, 9 Dec 2008 11:51:00 +0000 (+0000) Subject: Tweak profile calls X-Git-Tag: 1.31.0-rc.0~44089 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=ca8eaca30ff395c6fc12ef2568aee5ac8764e6db;p=lhc%2Fweb%2Fwiklou.git Tweak profile calls --- diff --git a/includes/Wiki.php b/includes/Wiki.php index 26bad27ead..96fca6683b 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -351,13 +351,11 @@ class MediaWiki { * @param $updates array of objects that hold an update to do */ function doUpdates( &$updates ) { - wfProfileIn( __METHOD__ ); /* No need to get master connections in case of empty updates array */ - if (!$updates) { - wfProfileOut( __METHOD__ ); + if( !$updates ) { return; } - + wfProfileIn( __METHOD__ ); $dbw = wfGetDB( DB_MASTER ); foreach( $updates as $up ) { $up->doUpdate();