One less step and potentially one less query if the number is already set.
authorChad Horohoe <demon@users.mediawiki.org>
Sat, 26 Jul 2008 02:33:54 +0000 (02:33 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sat, 26 Jul 2008 02:33:54 +0000 (02:33 +0000)
includes/specials/SpecialPreferences.php

index 1195253..c3eea3a 100644 (file)
@@ -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 ) ) ) {