changeset 2373:710debf83f53

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 04 Nov 2021 02:55:50 +0200
parents 0aec3eec927e
children 51ccd3d037bd
files www/loc.php
diffstat 1 files changed, 18 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/www/loc.php	Thu Nov 04 02:55:38 2021 +0200
+++ b/www/loc.php	Thu Nov 04 02:55:50 2021 +0200
@@ -390,32 +390,26 @@
       // Coder / society names
       if (count($iv["coders"]) > 0 && $showCoders)
       {
-// XXX not sure what this was about .. :D
-//        $isSG = preg_match("/[SG]/", $iv["flags"]);
-//        if ((!isset($coderName) && ($iv["flags"] & (LOCF_T_SHRINE | LOCF_T_GUILD)) == 0) ||
-//            isset($coderName))
-//        {
-          $fs = [];
-          foreach ($iv["coders"] as $name)
+        $fs = [];
+        foreach ($iv["coders"] as $name)
+        {
+          // Tags/flags of this coder in relation to the area
+          switch ($name["flags"])
           {
-            // Tags/flags of this coder in relation to the area
-            switch ($name["flags"])
-            {
-              case NAME_ORIG:       $qs = "title=\"Original creator\" class=\"wizorig\""; break;
-              case NAME_RECODER:    $qs = "title=\"Converter, recoder\" class=\"wizrecoder\""; break;
-              case NAME_MAINTAINER: $qs = "title=\"Maintainer\" class=\"wizmaintainer\""; break;
-              case NAME_EXPANDER:   $qs = "title=\"Implemented new content, expansion(s)\" class=\"wizexpander\""; break;
-              default: $qs = "";
-            }
+            case NAME_ORIG:       $qs = "title=\"Original creator\" class=\"wizorig\""; break;
+            case NAME_RECODER:    $qs = "title=\"Converter, recoder\" class=\"wizrecoder\""; break;
+            case NAME_MAINTAINER: $qs = "title=\"Maintainer\" class=\"wizmaintainer\""; break;
+            case NAME_EXPANDER:   $qs = "title=\"Implemented new content, expansion(s)\" class=\"wizexpander\""; break;
+            default: $qs = "";
+          }
 
-            // Pcity entries do not get "author" links as they are actually SS+
-            if ($filterID != "C" || !$applyFilter)
-              $fs[] = "<a ".$qs." href=\"?a=".$name["name"]."\">".$name["name"]."</a>";
-            else
-              $fs[] = $name["name"];
-          }
-          echo "<div class=\"locCoders\">".implode(", ", $fs)."</div>";
-//        }
+          // Pcity entries do not get "author" links as they are actually SS+
+          if ($filterID != "C" || !$applyFilter)
+            $fs[] = "<a ".$qs." href=\"?a=".$name["name"]."\">".$name["name"]."</a>";
+          else
+            $fs[] = $name["name"];
+        }
+        echo "<div class=\"locCoders\">".implode(", ", $fs)."</div>";
       }
 
       if (/* isset($coderName) && */ $iv["added"] > 0)