Fix missing attribute in weather controller

master
Loic Blot 2017-07-03 23:13:40 +02:00
parent 03dc83b4d5
commit 2c6d2bb1c0
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class WeatherController extends IntermediateController {
private $mapper;
private $settingsMapper;
private $metric;
private $config;
private static $apiWeatherURL = "http://api.openweathermap.org/data/2.5/weather?mode=json&q=";
private static $apiForecastURL = "http://api.openweathermap.org/data/2.5/forecast?mode=json&q=";
@ -38,6 +39,7 @@ class WeatherController extends IntermediateController {
$this->mapper = $mapper;
$this->settingsMapper = $settingsMapper;
$this->metric = $settingsMapper->getMetric($this->userId);
$this->config = $config;
}
/**