summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/functions.php3
-rw-r--r--include/sanity_check.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php
index 3927a5b69..4e16c9f19 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -2614,7 +2614,8 @@
function check_for_update($link) {
if (CHECK_FOR_NEW_VERSION && $_SESSION['access_level'] >= 10) {
- $version_url = "http://tt-rss.org/version.php?ver=" . VERSION;
+ $version_url = "http://tt-rss.org/version.php?ver=" . VERSION .
+ "&iid=" . sha1(SELF_URL_PATH);
$version_data = @fetch_file_contents($version_url);
diff --git a/include/sanity_check.php b/include/sanity_check.php
index 2a39cfa42..5cb556746 100644
--- a/include/sanity_check.php
+++ b/include/sanity_check.php
@@ -20,7 +20,7 @@
array_push($errors, "Please don't run this script as root.");
}
- if (version_compare("5.3.0", phpversion()) == 1) {
+ if (version_compare(PHP_VERSION, '5.3.0', '<')) {
array_push($errors, "PHP version 5.3.0 or newer required.");
}