Skip to content

Commit

Permalink
GH-230 Start using GalaxyPlanetLink component
Browse files Browse the repository at this point in the history
  • Loading branch information
mdziekon committed Jul 4, 2022
1 parent 5fdf2c0 commit 84942ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion overview.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
include_once($_EnginePath . 'modules/overview/_includes.php');

use UniEngine\Engine\Includes\Helpers\World\Elements;
use UniEngine\Engine\Common;
use UniEngine\Engine\Modules\Session;
use UniEngine\Engine\Modules\Flights;
use UniEngine\Engine\Modules\FlightControl;
Expand Down Expand Up @@ -87,7 +88,11 @@
$parse['Rename_Ins_MsgHide'] = '';
}

$parse['Rename_Ins_CurrentName'] = "{$_Planet['name']} <a href=\"galaxy.php?mode=3&amp;galaxy={$_Planet['galaxy']}&amp;system={$_Planet['system']}&amp;planet={$_Planet['planet']}\">[{$_Planet['galaxy']}:{$_Planet['system']}:{$_Planet['planet']}]</a>";
$galaxyPlanetLink = Common\Components\GalaxyPlanetLink\render([
'coords' => $_Planet,
]);

$parse['Rename_Ins_CurrentName'] = "{$_Planet['name']} {$galaxyPlanetLink}";

$page = parsetemplate(gettemplate('overview_rename'), $parse);
display($page, $_Lang['Rename_TitleMain']);
Expand Down

0 comments on commit 84942ce

Please sign in to comment.