From b031919ccad709d6189522b7084fa9cd4213ce57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Mon, 18 May 2020 12:47:23 +0200 Subject: [PATCH] MOBILE-3402 login: Recover minimum version and deprecate --- src/core/login/pages/site/site.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/login/pages/site/site.ts b/src/core/login/pages/site/site.ts index 5ee7ab0d3..4585bfbb8 100644 --- a/src/core/login/pages/site/site.ts +++ b/src/core/login/pages/site/site.ts @@ -14,6 +14,7 @@ import { Component, ViewChild, ElementRef } from '@angular/core'; import { IonicPage, NavController, ModalController, AlertController, NavParams } from 'ionic-angular'; +import { CoreSite } from '@classes/site'; import { CoreAppProvider } from '@providers/app'; import { CoreEventsProvider } from '@providers/events'; import { CoreSitesProvider, CoreSiteCheckResponse, CoreLoginSiteInfo } from '@providers/sites'; @@ -293,8 +294,9 @@ export class CoreLoginSitePage { } ]; + // @TODO: Remove CoreSite.MINIMUM_MOODLE_VERSION, not used on translations since 3.8.3. this.domUtils.showAlertWithOptions({ - title: this.translate.instant('core.cannotconnect'), + title: this.translate.instant('core.cannotconnect', {$a: CoreSite.MINIMUM_MOODLE_VERSION}), message, buttons, });