From: Chad Horohoe Date: Sat, 26 Jul 2008 02:33:54 +0000 (+0000) Subject: One less step and potentially one less query if the number is already set. X-Git-Tag: 1.31.0-rc.0~46361 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=5a8d016e0a40855c9001e4833dba6bc57e41531c;p=lhc%2Fweb%2Fwiklou.git One less step and potentially one less query if the number is already set. --- 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 ) ) ) {