Display notification if newer version is available.
This is done using asynchronous javascript so it should not block any actions.
This commit is contained in:
@@ -109,6 +109,11 @@ $js_messages['strChangePassword'] = __('Change Password');
|
||||
/* navigation tabs */
|
||||
$js_messages['strMore'] = __('More');
|
||||
|
||||
/* update */
|
||||
$js_messages['strNewerVersion'] = __('A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is %s, released on %s.');
|
||||
/* l10n: Latest available phpMyAdmin version */
|
||||
$js_messages['strLatestAvailable'] = __(', latest available:');
|
||||
|
||||
echo "var PMA_messages = new Array();\n";
|
||||
foreach ($js_messages as $name => $js_message) {
|
||||
PMA_printJsValue("PMA_messages['" . $name . "']", $js_message);
|
||||
@@ -116,6 +121,10 @@ foreach ($js_messages as $name => $js_message) {
|
||||
|
||||
/* Calendar */
|
||||
echo "var themeCalendarImage = '" . $GLOBALS['pmaThemeImage'] . 'b_calendar.png' . "';\n";
|
||||
|
||||
/* Version */
|
||||
echo "var pmaversion = '" . PMA_VERSION . "';\n";
|
||||
|
||||
echo "if ($.datepicker) {\n";
|
||||
/* l10n: Display text for calendar close link */
|
||||
PMA_printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
|
||||
|
Reference in New Issue
Block a user