Browse Source

Remove unused code in format_username

spaghetti 8 years ago
parent
commit
d613d0801f
1 changed files with 0 additions and 16 deletions
  1. 0
    16
      classes/users.class.php

+ 0
- 16
classes/users.class.php View File

@@ -346,12 +346,6 @@ class Users {
346 346
   public static function format_username($UserID, $Badges = false, $IsWarned = true, $IsEnabled = true, $Class = false, $Title = false, $IsDonorForum = false) {
347 347
     global $Classes;
348 348
 
349
-    // This array is a hack that should be made less retarded, but whatevs
350
-    //               PermID => ShortForm
351
-
352
-    $SecondaryClasses = array(
353
-                 );
354
-
355 349
     if ($UserID == 0) {
356 350
       return 'System';
357 351
     }
@@ -430,16 +424,6 @@ class Users {
430 424
           . '" class="tooltip" /></a>' : '';
431 425
     $Str .= ($IsEnabled && $UserInfo['Enabled'] == 2) ? '<a href="rules.php"><img src="'.STATIC_SERVER.'common/symbols/disabled.png" alt="Banned" title="Disabled" class="tooltip" /></a>' : '';
432 426
 
433
-    if ($Badges) {
434
-      $ClassesDisplay = array();
435
-      foreach (array_intersect_key($SecondaryClasses, $UserInfo['ExtraClasses']) as $PermID => $PermShort) {
436
-        $ClassesDisplay[] = '<span class="tooltip secondary_class" title="'.$Classes[$PermID]['Name'].'">'.$PermShort.'</span>';
437
-      }
438
-      if (!empty($ClassesDisplay)) {
439
-        $Str .= '&nbsp;'.implode('&nbsp;', $ClassesDisplay);
440
-      }
441
-    }
442
-
443 427
     if ($Class) {
444 428
       foreach (array_keys($UserInfo['ExtraClasses']) as $ExtraClass) {
445 429
         $Str .= ' ['.Users::make_class_abbrev_string($ExtraClass).']';

Loading…
Cancel
Save