Mercurial > hg > batmud > maputils
diff www/info.php @ 975:af0fc3a965dc
Fix all the web-interface PHP crap to work with the new LOC file format. Urgh. This shit could really use some refactoring cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 13 Jun 2010 23:39:52 +0000 |
parents | 7cc73b376945 |
children | e7e2a8c4b496 |
line wrap: on
line diff
--- a/www/info.php Sun Jun 13 22:52:02 2010 +0000 +++ b/www/info.php Sun Jun 13 23:39:52 2010 +0000 @@ -67,14 +67,11 @@ /* Print table of wizards */ foreach ($locTable as $key => $value) { - foreach ($value["coders"] as $ik => $iv) { - if (!isset($wizTable[$iv])) - $wizTable[$iv] = array("name" => $iv); - - if (!isset($wizTable[$iv]["areas"])) - $wizTable[$iv]["areas"] = 1; - else - $wizTable[$iv]["areas"]++; + foreach ($value["coders"] as $wiz) { + $name = $wiz["name"]; + if (!isset($wizTable[$name])) + $wizTable[$name] = array("name" => $name); + $wizTable[$name]["areas"]++; } }