Skip to content

Commit

Permalink
Missing parameters for calls
Browse files Browse the repository at this point in the history
  • Loading branch information
thekabal committed Feb 2, 2021
1 parent 8788e33 commit e72b931
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lrscan.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<img align=absmiddle height=12 width=12 alt=\"$icon_alt_text\" src=\"" . $template->getVariables('template_dir') . "/images/$icon_port_type_name\">&nbsp;";
}
Expand All @@ -172,7 +172,7 @@
$image_string = "&nbsp;";
}

echo "<tr bgcolor=\"$tkireg->color\"><td><a href='move.php?sector=" . $row['link_dest'] . "'>" . $row['link_dest'] . "</a></td><td><a href='lrscan.php?sector=" . $row['link_dest'] . "'>Scan</a></td><td>$num_links</td><td>$num_ships</td><td width=12>$image_string</td><td>" . Tki\Ports::getType($port_type, $langvars) . "</td><td>$has_planet</td><td>$has_mines</td><td>$has_fighters</td>";
echo "<tr bgcolor=\"$tkireg->color\"><td><a href='move.php?sector=" . $row['link_dest'] . "'>" . $row['link_dest'] . "</a></td><td><a href='lrscan.php?sector=" . $row['link_dest'] . "'>Scan</a></td><td>$num_links</td><td>$num_ships</td><td width=12>$image_string</td><td>" . Tki\Ports::getType($pdo_db, $port_type, $langvars) . "</td><td>$has_planet</td><td>$has_mines</td><td>$has_fighters</td>";
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']));
Expand Down Expand Up @@ -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 = "<img align=absmiddle height=12 width=12 alt=\"$icon_alt_text\" src=\"images/$icon_port_type_name\">";
}

echo "$image_string " . Tki\Ports::getType($sectorinfo['port_type'], $langvars);
echo "$image_string " . Tki\Ports::getType($pdo_db, $sectorinfo['port_type'], $langvars);
}

echo "</td></tr>";
Expand Down

0 comments on commit e72b931

Please sign in to comment.