Jump to content

How to remove Route Map? [SOLVED]


Bueno93

Recommended Posts

Guest lorathon

look under core/schedules/schedules.php

find this and comment out the line $this->render('route_map.tpl'); at the bottom.

That should work

public function details($routeid = '')
{
	//$routeid = $this->get->id;

	if(!is_numeric($routeid))
	{
		preg_match('/^([A-Za-z]{3})(\d*)/', $routeid, $matches);
		$code = $matches[1];
		$flightnum = $matches[2];

		$params = array('s.code'=>$code, 's.flightnum'=>$flightnum);
	}
	else
	{
		$params = array('s.id' => $routeid);
	}

	$schedule = SchedulesData::getScheduleDetailed($routeid);
	$this->set('schedule', $schedule);
	$this->render('schedule_details.tpl');
	//$this->render('route_map.tpl');
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...