]> git.mxchange.org Git - friendica-addons.git/blobdiff - curweather/curweather.php
show selected cachetime in admin panel
[friendica-addons.git] / curweather / curweather.php
index 33b1df679f070c4ce2eca95dff1db1987f6a4350..557a10aa4a0715ae5368ef5d1021ee241e7ea53b 100644 (file)
@@ -125,7 +125,7 @@ function curweather_network_mod_init(&$fk_app,&$b) {
 
     $curweather = '<div id="curweather-network" class="widget">
                <div class="title tool">
-                <h4>'.t("Current Weather").': '.$weather->city->name.'</h4></div>';
+                <h4 title="'.$weather->lastUpdate->format('r').'">'.t("Current Weather").': '.$weather->city->name.'</h4></div>';
 
     $curweather .= "$description; $temp<br />";
     $curweather .= t('Relative Humidity').": $rhumid<br />";
@@ -198,6 +198,7 @@ function curweather_plugin_admin (&$a, &$o) {
     if(! is_site_admin())
            return;
     $appid = get_config('curweather','appid');
+    $cachetime = get_config('curweather','cachetime');
     $t = get_markup_template("admin.tpl", "addon/curweather/" );
     $o = replace_macros ($t, array(
        '$submit' => t('Save Settings'),