# HG changeset patch # User Matti Hamalainen # Date 1451898932 -7200 # Node ID 6523f431e731e502b029011e12bf597c29e63d6a # Parent 2808bc76a2fa11cd848e6bee1c3c50f75a1b9e1a Add links to material information attributes for filtering by the attribute. diff -r 2808bc76a2fa -r 6523f431e731 info.php --- a/info.php Mon Jan 04 10:47:50 2016 +0200 +++ b/info.php Mon Jan 04 11:15:32 2016 +0200 @@ -9,6 +9,7 @@ $pageTitle = "Pupunen BatMUD Alloy Browser"; $pageIndex = "info.php"; +$siteIndex = "/mat/"; // Static list of alloy data contributors @@ -56,8 +57,9 @@ function stGetMatLink($mat, $title = "", $extra = "") { + global $siteIndex; $tmp = ($title != "") ? " title=\"".chentities($title)."\"" : ""; - return "".chentities($mat)."".$extra; + return "".chentities($mat)."".$extra; } @@ -203,7 +205,7 @@ " \n". " Show type\n". " \n". - " [Reset/Clear] [Material browser]\n". + " [Reset/Clear] [Material browser]\n". "
\n". "