Changeset:
7b54e66ca8ce
https://sourceforge.net/p/mrbs/hg-code/ci/7b54e66ca8cee8d98b31ebff5653cb591c96b430
Author:
Campbell Morrison <[email protected]>
Date:
Tue Mar 28 16:18:26 2017 +0100
Log message:
Added room names instead of room ids
diffstat:
web/index.php | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r cdf3a545c840 -r 7b54e66ca8ce web/index.php
--- a/web/index.php Tue Mar 28 13:22:31 2017 +0100
+++ b/web/index.php Tue Mar 28 16:18:26 2017 +0100
@@ -140,9 +140,17 @@
$html .= "</thead>\n";
$html .= "<tbody>\n";
+
+
foreach ($map as $room_id => $row)
{
- $html.= "<tr><td><a href=\"\">$room_id</a></td></tr>\n";
+ // The first time through get the room names
+ if (!isset($room_names))
+ {
+ $room_names = get_room_names(get_area($room_id));
+ }
+
+ $html.= "<tr><td><a href=\"\">" . htmlspecialchars($room_names[$room_id])
. "</a></td></tr>\n";
}
$html .= "</tbody>\n";
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits