[curweather] CR request:
- added/removed spaces - added missing line-feed after opening curly brace
This commit is contained in:
parent
7b3ceb33aa
commit
4b5691707b
1 changed files with 21 additions and 20 deletions
|
@ -35,7 +35,8 @@ function curweather_uninstall()
|
|||
}
|
||||
|
||||
// get the weather data from OpenWeatherMap
|
||||
function getWeather($loc, $units = 'metric', $lang = 'en', $appid = '', $cachetime = 0) {
|
||||
function getWeather($loc, $units = 'metric', $lang = 'en', $appid = '', $cachetime = 0)
|
||||
{
|
||||
$url = "http://api.openweathermap.org/data/2.5/weather?q=" . $loc . "&appid=" . $appid . "&lang=" . $lang . "&units=" . $units . "&mode=xml";
|
||||
$cached = Cache::get('curweather'.md5($url));
|
||||
$now = new DateTime();
|
||||
|
|
Loading…
Add table
Reference in a new issue