We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97659fe commit f04e82aCopy full SHA for f04e82a
1 file changed
assets/plugins/updater/plugin.updater.php
@@ -126,7 +126,7 @@
126
if (($role != 1) AND ($showButton == 'AdminOnly') OR ($showButton == 'hide') OR ($errors > 0)) {
127
$updateButton = '';
128
} else {
129
- $updateButton = '<a target="_parent" href="' . MODX_SITE_URL . $_SESSION['updatelink'] . '" class="btn btn-sm btn-danger">' . $_lang['updateButton_txt'] . ' ' . $git['version'] . '</a><br><br>';
+ $updateButton = '<a target="_parent" onclick="return confirm(\''.$_lang['are_you_sure_update'].'\')" href="' . MODX_SITE_URL . $_SESSION['updatelink'] . '" class="btn btn-sm btn-danger">' . $_lang['updateButton_txt'] . ' ' . $git['version'] . '</a><br><br>';
130
}
131
132
$output = '<div class="card-body">' . $_lang['cms_outdated_msg'] . ' <strong>' . $git['version'] . '</strong> <br><br>
0 commit comments