changeset 2326:53bea3800a93

Sync some web changes.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 22 Mar 2021 19:20:56 +0200
parents 5f248e58aa41
children c0c880bd75ef
files www/common.inc.php www/index.php
diffstat 2 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/www/common.inc.php	Sun Mar 21 23:43:29 2021 +0200
+++ b/www/common.inc.php	Mon Mar 22 19:20:56 2021 +0200
@@ -221,7 +221,8 @@
   {
     $str = mpGetURLLink($data["continent"].".html#loc".$data["x"]."_".$data["y"], $name, "class=\"mapLink\"");
     $c = $continentList[$data["continent"]];
-    if ($gmap && $c[CTI_HAS_MAP] == TRUE && $c[CTI_REG_CONT] == TRUE) // hasmap & read regular cont must be true
+    if (isset($pageGMapURL) && $gmap &&
+        $c[CTI_HAS_MAP] == TRUE && $c[CTI_REG_CONT] == TRUE) // hasmap & read regular cont must be true
     {
       $str .= " <a class=\"gmapLink\" title=\"GMap link\" ".
       "href=\"".$pageGMapURL."?x=".$data["globalx"].
--- a/www/index.php	Sun Mar 21 23:43:29 2021 +0200
+++ b/www/index.php	Mon Mar 22 19:20:56 2021 +0200
@@ -127,9 +127,10 @@
 echo
   "<div id=\"intro\">\n".
   "Maps and information about <a href=\"http://www.bat.org/\">BatMUD realm</a>,\n".
-  "including maps of the continents, some areas and cities. As an alternative\n".
-  "for the continent maps, ".burl("Jeskko")." has an interesting\n".
-  "<a href=\"".$pageGMapURL."\">Google Maps-style world map</a>.\n".
+  "including maps of the continents, some areas and cities. ".
+  (isset($pageGMapURL) ?
+  "As an alternative for the continent maps, ".burl("Jeskko")." has an interesting\n".
+  "<a href=\"".$pageGMapURL."\">Google Maps-style world map</a>.\n" : "").
   "<p>\n".
   "The ANSI files are maps rendered as ASCII text with ANSI colour codes, UNIX users\n".
   "can apply the familiar less(1) utility to view them, assuming their less supports\n".