diff --git a/lrscan.php b/lrscan.php
index 52a62a36..687d74fc 100644
--- a/lrscan.php
+++ b/lrscan.php
@@ -163,7 +163,7 @@
if ($port_type != "none")
{
- $icon_alt_text = ucfirst(Tki\Ports::getType($port_type, $langvars));
+ $icon_alt_text = ucfirst(Tki\Ports::getType($pdo_db, $port_type, $langvars));
$icon_port_type_name = $port_type . ".png";
$image_string = "
getVariables('template_dir') . "/images/$icon_port_type_name\"> ";
}
@@ -172,7 +172,7 @@
$image_string = " ";
}
- echo "
color\">" . $row['link_dest'] . " | Scan | $num_links | $num_ships | $image_string | " . Tki\Ports::getType($port_type, $langvars) . " | $has_planet | $has_mines | $has_fighters | ";
+ echo "
color\">" . $row['link_dest'] . " | Scan | $num_links | $num_ships | $image_string | " . Tki\Ports::getType($pdo_db, $port_type, $langvars) . " | $has_planet | $has_mines | $has_fighters | ";
if ($playerinfo['dev_lssd'] == 'Y')
{
$resx = $old_db->SelectLimit("SELECT * from {$old_db->prefix}movement_log WHERE ship_id <> ? AND sector_id = ? ORDER BY time DESC", 1, -1, array('ship_id' => $playerinfo['ship_id'], 'sector_id' => $row['link_dest']));
@@ -363,12 +363,12 @@
if ($sectorinfo['port_type'] != "none")
{
$port_type = $sectorinfo['port_type'];
- $icon_alt_text = ucfirst(Tki\Ports::getType($port_type, $langvars));
+ $icon_alt_text = ucfirst(Tki\Ports::getType($pdo_db, $port_type, $langvars));
$icon_port_type_name = $port_type . ".png";
$image_string = "
";
}
- echo "$image_string " . Tki\Ports::getType($sectorinfo['port_type'], $langvars);
+ echo "$image_string " . Tki\Ports::getType($pdo_db, $sectorinfo['port_type'], $langvars);
}
echo "
";