summaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/weather/update_weather.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/weather/update_weather.php b/widgets/weather/update_weather.php
index a2294906..fba7de9e 100644
--- a/widgets/weather/update_weather.php
+++ b/widgets/weather/update_weather.php
@@ -1,8 +1,9 @@
<?php
-$ini_array = parse_ini_file("./update_weather.config");
+$config = dirname(__FILE__)."/update_weather.config";
+$ini_array = parse_ini_file($config);
-$latitude = $ini_array['Latitude'];
+$latitude = $ini_array['Latitude'];
$longitude = $ini_array['Longitude'];
$locationSkin = $ini_array['LocationSkin'];
$units = $ini_array['Units'];