Skip to content

Commit 6ff89c1

Browse files
committed
Include warning about usage of dev version in compatibility checks
1 parent 353b2cd commit 6ff89c1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

classes/local/setting/compatibility_check_setting.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ protected function get_html_content() {
6262
$recentishlocalxp = 2023100800; // Version 1.15.0.
6363
$humanbranch = moodle_major_version() ?: 'v?';
6464

65+
if ($blockxp && strpos($blockxp->release, '-dev') !== false) {
66+
$messages[] = [
67+
'title' => get_string('unstableversioninstalled', 'block_xp'),
68+
'message' => get_string('unstableversioninstalledinfo', 'block_xp', ['version' => $blockxp->release]),
69+
];
70+
}
71+
6572
if ($localxp && $localxp->versiondb < $recentishlocalxp) {
6673
$messages[] = [
6774
'title' => get_string('outofsyncexcessive', 'block_xp'),

lang/en/block_xp.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,9 @@
576576
$string['tryme'] = 'Try me';
577577
$string['unlockfeaturewithxpplus'] = 'Unlock this feature with XP+. <a href="{$a}">Learn more</a>';
578578
$string['unavailable'] = 'Unavailable';
579+
$string['unstableversioninstalledinfo'] = 'This version of Level Up XP (block_xp) is still in development and considered unstable, please use an official release.';
579580
$string['upgradingplugins'] = 'Upgrading the plugins';
581+
$string['unstableversioninstalled'] = 'Unstable version installed';
580582
$string['value'] = 'Value';
581583
$string['visualsintro'] = 'Customise the appearance of the levels, and the meaning of the points.';
582584
$string['wherearexpused'] = 'Where are points used?';

0 commit comments

Comments
 (0)