From 1d53febfa71772d4e795be2479579c1bfcfd4cd3 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 29 Feb 2024 13:17:14 +0100 Subject: [PATCH] Admin: Fix link to Chamilo website when version is not up-to-date --- public/main/inc/ajax/admin.ajax.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/main/inc/ajax/admin.ajax.php b/public/main/inc/ajax/admin.ajax.php index 2f36dfaecc..23048039d8 100644 --- a/public/main/inc/ajax/admin.ajax.php +++ b/public/main/inc/ajax/admin.ajax.php @@ -146,7 +146,7 @@ function check_system_version() } // the chamilo version of your installation - $ystem_version = ''; + $system_version = ''; $versionStatus = ''; $versionFile =__DIR__.'/../../install/version.php'; if (is_file($versionFile)) { @@ -166,7 +166,7 @@ function check_system_version() $number_of_active_users = Statistics::countUsers( null, null, - null, + true, true ); @@ -179,7 +179,7 @@ function check_system_version() $uniqueId = ''; $entityManager = Database::getManager(); - /** @var BranchSyncRepository $branch */ + /** @var BranchSyncRepository $repository */ $repository = $entityManager->getRepository(BranchSync::class); /** @var BranchSync $branch */ $branch = $repository->getTopBranch(); @@ -232,7 +232,7 @@ function check_system_version() get_lang('Your version is').' Chamilo '.$system_version.$versionStatus.'.
'. str_replace( 'http://www.chamilo.org', - 'http://www.chamilo.org', + 'https://chamilo.org/download', get_lang('Please visit our website: http://www.chamilo.org') ). '';