diff options
Diffstat (limited to 'application')
-rw-r--r-- | application/ApplicationUtils.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/application/ApplicationUtils.php b/application/ApplicationUtils.php index a0f482b0..94c49040 100644 --- a/application/ApplicationUtils.php +++ b/application/ApplicationUtils.php | |||
@@ -5,7 +5,7 @@ | |||
5 | class ApplicationUtils | 5 | class ApplicationUtils |
6 | { | 6 | { |
7 | private static $GIT_URL = 'https://raw.githubusercontent.com/shaarli/Shaarli'; | 7 | private static $GIT_URL = 'https://raw.githubusercontent.com/shaarli/Shaarli'; |
8 | private static $GIT_BRANCHES = array('master', 'stable'); | 8 | private static $GIT_BRANCHES = array('latest', 'stable'); |
9 | private static $VERSION_FILE = 'shaarli_version.php'; | 9 | private static $VERSION_FILE = 'shaarli_version.php'; |
10 | private static $VERSION_START_TAG = '<?php /* '; | 10 | private static $VERSION_START_TAG = '<?php /* '; |
11 | private static $VERSION_END_TAG = ' */ ?>'; | 11 | private static $VERSION_END_TAG = ' */ ?>'; |
@@ -65,13 +65,10 @@ class ApplicationUtils | |||
65 | $isLoggedIn, | 65 | $isLoggedIn, |
66 | $branch='stable') | 66 | $branch='stable') |
67 | { | 67 | { |
68 | if (! $isLoggedIn) { | 68 | // Do not check versions for visitors |
69 | // Do not check versions for visitors | 69 | // Do not check if the user doesn't want to |
70 | return false; | 70 | // Do not check with dev version |
71 | } | 71 | if (! $isLoggedIn || empty($enableCheck) || $currentVersion === 'dev') { |
72 | |||
73 | if (empty($enableCheck)) { | ||
74 | // Do not check if the user doesn't want to | ||
75 | return false; | 72 | return false; |
76 | } | 73 | } |
77 | 74 | ||