aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Updater.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-10-01 11:09:12 +0200
committerArthurHoaro <arthur@hoa.ro>2017-10-01 11:11:16 +0200
commitb3e1f92e9cd0cae35bc726ca3a2356b4e631ccfa (patch)
tree80b895646c20557558a5e2b5d080e7db06d68d01 /application/Updater.php
parentbfe4f536bbfe03f38e0c801bfbd26587a2b64a7f (diff)
downloadShaarli-b3e1f92e9cd0cae35bc726ca3a2356b4e631ccfa.tar.gz
Shaarli-b3e1f92e9cd0cae35bc726ca3a2356b4e631ccfa.tar.zst
Shaarli-b3e1f92e9cd0cae35bc726ca3a2356b4e631ccfa.zip
Rename shaarli_version constant to uppercase
Diffstat (limited to 'application/Updater.php')
-rw-r--r--application/Updater.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/Updater.php b/application/Updater.php
index 40a15906..72b2def0 100644
--- a/application/Updater.php
+++ b/application/Updater.php
@@ -398,7 +398,7 @@ class Updater
398 */ 398 */
399 public function updateMethodCheckUpdateRemoteBranch() 399 public function updateMethodCheckUpdateRemoteBranch()
400 { 400 {
401 if (shaarli_version === 'dev' || $this->conf->get('updates.check_updates_branch') === 'latest') { 401 if (SHAARLI_VERSION === 'dev' || $this->conf->get('updates.check_updates_branch') === 'latest') {
402 return true; 402 return true;
403 } 403 }
404 404
@@ -413,7 +413,7 @@ class Updater
413 $latestMajor = $matches[1]; 413 $latestMajor = $matches[1];
414 414
415 // Get current major version digit 415 // Get current major version digit
416 preg_match('/(\d+)\.\d+$/', shaarli_version, $matches); 416 preg_match('/(\d+)\.\d+$/', SHAARLI_VERSION, $matches);
417 $currentMajor = $matches[1]; 417 $currentMajor = $matches[1];
418 418
419 if ($currentMajor === $latestMajor) { 419 if ($currentMajor === $latestMajor) {