From 02b29b2a6a5e9c8c10999feec9b270967c4050ba Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 12 Jul 2015 15:39:49 +0200 Subject: [PATCH] use friendica temppath settings for cache data --- curweather/curweather.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/curweather/curweather.php b/curweather/curweather.php index 056a5aa35..6db89428f 100644 --- a/curweather/curweather.php +++ b/curweather/curweather.php @@ -32,12 +32,13 @@ function curweather_uninstall() { // The caching mechanism is taken from the cache example of the // OpenWeatherMap-PHP-API library and a bit customized to allow admins to set // the caching time depending on the plans they got from openweathermap.org +// and the usage of the friendica temppath class ExampleCache extends AbstractCache { private function urlToPath($url) { - $tmp = sys_get_temp_dir(); + $tmp = get_config('system','temppath'); $dir = $tmp . DIRECTORY_SEPARATOR . "OpenWeatherMapPHPAPI"; if (!is_dir($dir)) { mkdir($dir);