Remove usage of deprecated code
authorMarcel Werk <burntime@woltlab.com>
Mon, 19 Aug 2024 12:04:44 +0000 (14:04 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 19 Aug 2024 12:04:44 +0000 (14:04 +0200)
wcfsetup/install/files/lib/acp/page/UserListPage.class.php
wcfsetup/install/files/lib/data/custom/option/CustomOption.class.php

index 2d31a035e8b5afc30bfcc44ccfcf55fb8ae6097b..a583bd5c12be28d0a2a3f146685c7f8faff6bcd3 100755 (executable)
@@ -349,7 +349,7 @@ class UserListPage extends SortablePage
                         case 'profileHits':
                         case 'activityPoints':
                         case 'likesReceived':
-                            $this->columnValues[$user->userID][$column] = StringUtil::formatInteger($user->{$column});
+                            $this->columnValues[$user->userID][$column] = StringUtil::formatNumeric($user->{$column});
                             break;
 
                         default:
index 6b88294b54b980134eaca9e1511a054a9aec5ada..8111178cdf01dccdc7debd6c54a53eb947046795 100644 (file)
@@ -162,7 +162,7 @@ abstract class CustomOption extends Option implements ITitledObject
                 return StringUtil::formatDouble(\doubleval($this->optionValue));
 
             case 'integer':
-                return StringUtil::formatInteger(\intval($this->optionValue));
+                return StringUtil::formatNumeric(\intval($this->optionValue));
 
             case 'radioButton':
             case 'select':