]> git.wh0rd.org Git - tt-rss.git/commitdiff
print_runtime_info: fix syntax error
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 12 Nov 2010 15:09:25 +0000 (18:09 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 12 Nov 2010 15:09:25 +0000 (18:09 +0300)
functions.php

index b4af52a04dc4395fec966734349d180f6a7aef75..f3e6a62e76a53b8940d91abcaa99d968ca362df2 100644 (file)
                        if ($_SESSION["last_version_check"] + 86400 + rand(-1000, 1000) < time()) {
                                $new_version_details = @check_for_update($link);
 
-                               print "<param key=\"new_version_available\" value=\"".
-                                       sprintf("%d", $new_version_details != ""). "\"/>";
+                               $data['new_version_available'] = (int) $new_version_details != "";
 
                                $_SESSION["last_version_check"] = time();
                        }
                }
 
-//             print "<param key=\"new_version_available\" value=\"1\"/>";
-
                return $data;
        }