changeset 2549:006593e8a2d7

Remove some obsolete special case handling of wiz image links.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 19 Jan 2024 13:26:16 +0200
parents 216519d7d7b3
children 075465280d05
files www/loc.php
diffstat 1 files changed, 2 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/www/loc.php	Fri Jan 19 13:25:43 2024 +0200
+++ b/www/loc.php	Fri Jan 19 13:26:16 2024 +0200
@@ -234,22 +234,11 @@
   if (isset($wizTable[$coderName]) && count($wizTable[$coderName]) > 1)
   {
     // Profile picture
-    if (qcheck($wizTable[$coderName], "imageURL", $s))
-    {
-      // XXX: backwards compatibility check
-      if (substr($s, 0, 6) == "bat://")
-        $s = $wizImageURL."unknown.png";
-      else
-      if (substr($s, 0, 7) != "http://" &&
-          substr($s, 0, 8) != "https://")
-        $s = $wizImageURL.$s;
-    }
-    else
-      $s = $wizImageURL."unknown.png";
+    $imageURL = $wizImageURL.(qcheck($wizTable[$coderName], "imageURL", $imageName) ? $imageName : "unknown.png");
 
     echo
       "<div class=\"wizInfoBox\">\n".
-      "   <div class=\"wizImage\"><img src=\"".$s."\" alt=\"".$coderName."\" /></div>\n".
+      "   <div class=\"wizImage\"><img src=\"".$imageURL."\" alt=\"".$coderName."\" /></div>\n".
       "   <div class=\"wizInfo\">\n".
       "    <h2>".$coderName."</h2>\n";