From 4e1b4b55c52aa60f0dfbfe4d19f69c7f4dcfde40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Manuel=20Ferreira=20Fernandes?= Date: Tue, 19 Aug 2014 11:05:06 +0100 Subject: [PATCH] Update forecast.io.php --- lib/forecast.io.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/forecast.io.php b/lib/forecast.io.php index 34116d6..9d74e74 100644 --- a/lib/forecast.io.php +++ b/lib/forecast.io.php @@ -31,8 +31,8 @@ private function requestData($latitude, $longitude, $units, $timestamp = false, $request_url = self::API_ENDPOINT . $this->api_key . '/' . $latitude . ',' . $longitude . - '?units=' . $units . ( $timestamp ? ',' . $timestamp : '' ) . + '?units=' . $units . ( $exclusions ? '&exclude=' . $exclusions : '' ); $content = file_get_contents($request_url); @@ -91,7 +91,7 @@ function getHistoricalConditions($latitude, $longitude, $units = 'auto', $timest $exclusions = 'currently,minutely,hourly,alerts,flags'; - $data = $this->requestData($latitude, $longitude, $units $timestamp, $exclusions); + $data = $this->requestData($latitude, $longitude, $units, $timestamp, $exclusions); if ($data !== false) { @@ -418,4 +418,4 @@ function getSunset($format=null) { } } -?> \ No newline at end of file +?>