--- a/stopList.php +++ b/stopList.php @@ -12,7 +12,6 @@ '; - timePlaceSettings(); } // By suburb if (isset($_REQUEST['suburbs'])) { @@ -30,11 +29,12 @@ $url = $APIurl."/json/stops"; include_header("All Stops","stopList"); navbar(); + timePlaceSettings(); } else if ($_REQUEST['nearby']) { $url = $APIurl."/json/neareststops?lat={$_SESSION['lat']}&lon={$_SESSION['lon']}&limit=15"; include_header("Nearby Stops","stopList"); navbar(); - timePlaceSettings(); + timePlaceSettings(true); } else if ($_REQUEST['suburb']) { $url = $APIurl."/json/stopzonesearch?q=".filter_var($_REQUEST['suburb'], FILTER_SANITIZE_STRING); include_header("Stops in ".ucwords(filter_var($_REQUEST['suburb'], FILTER_SANITIZE_STRING)),"stopList"); @@ -57,6 +57,7 @@ $url = $APIurl."/json/timingpoints"; include_header("Timing Points / Major Stops","stopList"); navbar(); + timePlaceSettings(); } echo '