summaryrefslogtreecommitdiff
path: root/inc/mod
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2015-04-23 08:18:36 +0200
committerczaks <marcin@6irc.net>2015-04-23 08:18:36 +0200
commit2d9214ac63b34ea1066efa2dbc759258f2ca661a (patch)
treea7414e5408bea6ea1d261222381f1bd6c93ad227 /inc/mod
parent4c1d2f924c60b1b33d6ab96b2ad26e48d6bd68b4 (diff)
version check should point at engine.vichan.net and not tinyboard.org actually
Diffstat (limited to 'inc/mod')
-rw-r--r--inc/mod/pages.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index 804c1e43..2c679b20 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -111,7 +111,7 @@ function mod_dashboard() {
$latest = unserialize($_COOKIE['update']);
} else {
$ctx = stream_context_create(array('http' => array('timeout' => 5)));
- if ($code = @file_get_contents('http://tinyboard.org/version.txt', 0, $ctx)) {
+ if ($code = @file_get_contents('http://engine.vichan.net/version.txt', 0, $ctx)) {
$ver = strtok($code, "\n");
if (preg_match('@^// v(\d+)\.(\d+)\.(\d+)\s*?$@', $ver, $matches)) {
@@ -120,7 +120,7 @@ function mod_dashboard() {
'major' => $matches[2],
'minor' => $matches[3]
);
- if (preg_match('/v(\d+)\.(\d)\.(\d+)(-dev.+)?$/', $config['version'], $matches)) {
+ if (preg_match('/(\d+)\.(\d)\.(\d+)(-dev.+)?$/', $config['version'], $matches)) {
$current = array(
'massive' => (int) $matches[1],
'major' => (int) $matches[2],