From ca8eaca30ff395c6fc12ef2568aee5ac8764e6db Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 9 Dec 2008 11:51:00 +0000 Subject: [PATCH] Tweak profile calls --- includes/Wiki.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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(); -- 2.20.1