Curweather Widget #281

Merged
tobiasd merged 28 commits from 20150711-curweather into master 2015-07-18 15:47:33 +02:00
Showing only changes of commit 02b29b2a6a - Show all commits

View file

@ -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);