diff options
-rw-r--r-- | index.php | 2 | ||||
-rw-r--r-- | shaarli_version.txt | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -133,7 +133,7 @@ function checkUpdate() | |||
133 | if (!is_file($GLOBALS['config']['UPDATECHECK_FILENAME']) || (filemtime($GLOBALS['config']['UPDATECHECK_FILENAME'])<time()-($GLOBALS['config']['UPDATECHECK_INTERVAL']))) | 133 | if (!is_file($GLOBALS['config']['UPDATECHECK_FILENAME']) || (filemtime($GLOBALS['config']['UPDATECHECK_FILENAME'])<time()-($GLOBALS['config']['UPDATECHECK_INTERVAL']))) |
134 | { | 134 | { |
135 | $version=shaarli_version; | 135 | $version=shaarli_version; |
136 | list($httpstatus,$headers,$data) = getHTTP('http://sebsauvage.net/files/shaarli_version.txt',2); | 136 | list($httpstatus,$headers,$data) = getHTTP('https://raw.githubusercontent.com/shaarli/Shaarli/master/shaarli_version.txt',2); |
137 | if (strpos($httpstatus,'200 OK')!==false) $version=$data; | 137 | if (strpos($httpstatus,'200 OK')!==false) $version=$data; |
138 | // If failed, never mind. We don't want to bother the user with that. | 138 | // If failed, never mind. We don't want to bother the user with that. |
139 | file_put_contents($GLOBALS['config']['UPDATECHECK_FILENAME'],$version); // touch file date | 139 | file_put_contents($GLOBALS['config']['UPDATECHECK_FILENAME'],$version); // touch file date |
diff --git a/shaarli_version.txt b/shaarli_version.txt new file mode 100644 index 00000000..92b4d84d --- /dev/null +++ b/shaarli_version.txt | |||
@@ -0,0 +1 @@ | |||
0.0.41 beta \ No newline at end of file | |||