summaryrefslogtreecommitdiff
path: root/login.php
diff options
context:
space:
mode:
Diffstat (limited to 'login.php')
-rw-r--r--login.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/login.php b/login.php
index f27b3611cf..b03910ffcb 100644
--- a/login.php
+++ b/login.php
@@ -17,6 +17,7 @@ namespace Fisharebest\Webtrees;
*/
use Fisharebest\Webtrees\Controller\PageController;
+use Fisharebest\Webtrees\Functions\Functions;
use Rhumsaa\Uuid\Uuid;
/**
@@ -105,7 +106,7 @@ case 'login':
// We're logging in as an administrator
if (Auth::isAdmin()) {
// Check for updates
- $latest_version_txt = fetch_latest_version();
+ $latest_version_txt = Functions::fetchLatestVersion();
if (preg_match('/^[0-9.]+\|[0-9.]+\|/', $latest_version_txt)) {
list($latest_version, $earliest_version, $download_url) = explode('|', $latest_version_txt);
if (version_compare(WT_VERSION, $latest_version) < 0) {