changeset 1609:c5e15be5315c

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 26 Jan 2016 19:23:34 +0200
parents 5e497b4911ae
children d60a0c715b09
files www/loc.php
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/www/loc.php	Tue Jan 26 19:23:28 2016 +0200
+++ b/www/loc.php	Tue Jan 26 19:23:34 2016 +0200
@@ -4,14 +4,14 @@
 require "common.inc.php";
 
 // Wizard info box special formatting tags
-$specTags = array(
+$specTags = [
   "b"     => "<b>",
   "\/b"   => "</b>",
   "i"     => "<i>",
   "\/i"   => "</i>",
   "p"     => "<br /><br />",
   "br"    => "<br />",
-);
+];
 
 
 function printTitleLink($afilter, $filter, $coders, $desc, $qname, $qclass)
@@ -107,14 +107,14 @@
 
 if (isset($_GET["n"]))
 {
-  $locTable = array();
+  $locTable = [];
   $setName = strtolower(trim(basename($_GET["n"])));
   if (file_exists($setName.".loc"))
   {
     $locTable = apc_fetch("loc_".$setName);
     if (empty($locTable))
     {
-      $locTable = array();
+      $locTable = [];
       stParseLocFile($setName, $locTable, $applyFilter, $filter);
       apc_store("loc_".$setName, $locTable, 3600);
     }
@@ -283,7 +283,7 @@
 if (/* !$errorSet && */ count($locTable) > 0)
 {
   // Make alphabetically sorted table of locations
-  $alphaTable = array();
+  $alphaTable = [];
   foreach ($locTable as $id => $data)
   if (isset($data["name"]))
   {
@@ -313,7 +313,7 @@
   //
   // Print locations per first character
   //
-  $locationTips = array();
+  $locationTips = [];
   $totalLoc = 0;
   $maxRow = 6;
   foreach ($alphaTable as $alpha => $alphaLocs)
@@ -366,16 +366,16 @@
           " ".$urlBegin."<img class=\"noborder\" src=\"img/question.png\" onmouseover=\"stt(".$totalLoc.
           ");\" onmouseout=\"htt();\" alt=\"(?)\" />".$urlEnd."\n";
           
-        $locationTips[$totalLoc] = array(
+        $locationTips[$totalLoc] = [
           "title" => $iv["name"],
           "desc" => $desc
-        );
+        ];
       }        
         
       // Alternative names
       if (($nnames = count($iv["names"])) > 1)
       {
-        $fs = array();
+        $fs = [];
         for ($nname = 1; $nname < $nnames; $nname++)
         {
           $norig = $iv["names"][$nname]["flags"] & NAME_ORIG;
@@ -393,7 +393,7 @@
         $isSG = preg_match("/[SG]/", $iv["flags"]);
         if ((!isset($coderName) && !$isSG) || isset($coderName))
         {
-          $fs = array();
+          $fs = [];
           foreach ($iv["coders"] as $name)
           {
             // Tags/flags of this coder in relation to the area