Skip to content

Commit

Permalink
fix issue wind-project#56
Browse files Browse the repository at this point in the history
fix url ref.

It was previously only within the context of there being a_node && b_node predefined.
  • Loading branch information
jammin84 committed Dec 14, 2015
1 parent 1b59c28 commit 607682a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/pages/nodes/nodes_plot_link.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function output() {
$main->menu->hide = TRUE;
$main->footer->hide = TRUE;
$this->tpl['a_node'] = (isset($_POST['a_node'])?$_POST['a_node']:get('a_node'));
$this->tpl['nodes_pickup_link'] = make_ref('/pickup/nodes');
if ($this->tpl['a_node'] != '') {
$a_node_data = $db->get('id, name, latitude, longitude, elevation', 'nodes', "id = '".$this->tpl['a_node']."'");
$a_node_data = $a_node_data[0];
Expand Down Expand Up @@ -81,7 +82,6 @@ function output() {
$c = 299792.458; // light speed in km
$this->tpl['fsl'] = 20 * log10(4 * pi() * $this->tpl['distance'] * ($frequency / $c));

$this->tpl['nodes_pickup_link'] = make_ref('/pickup/nodes');
$this->tpl['plot_image'] = make_ref('/nodes/plot', array("a_node" => $this->tpl['a_node'], "b_node" => $this->tpl['b_node'], "frequency" => $this->tpl['frequency']));
}

Expand All @@ -91,4 +91,4 @@ function output() {

}

?>
?>

0 comments on commit 607682a

Please sign in to comment.