From 5a8d016e0a40855c9001e4833dba6bc57e41531c Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sat, 26 Jul 2008 02:33:54 +0000 Subject: [PATCH] One less step and potentially one less query if the number is already set. --- includes/specials/SpecialPreferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index 11952537e9..c3eea3a45c 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -635,7 +635,7 @@ class PreferencesForm { $this->tableRow( wfMsgHtml( 'prefs-edits' ), - $wgLang->formatNum( User::edits( $wgUser->getId() ) ) + $wgLang->formatNum( $wgUser->getEditCount() ) ); if( wfRunHooks( 'PreferencesUserInformationPanel', array( $this, &$userInformationHtml ) ) ) { -- 2.20.1