From 2c6d2bb1c023befbf0e0ab641a358ebe7f618d82 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Mon, 3 Jul 2017 23:13:40 +0200 Subject: [PATCH] Fix missing attribute in weather controller --- controller/weathercontroller.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controller/weathercontroller.php b/controller/weathercontroller.php index 91a329f..f5cbf4b 100644 --- a/controller/weathercontroller.php +++ b/controller/weathercontroller.php @@ -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; } /**