mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/9850] Display upgrade instructions for feature release in acp
PHPBB3-9850
This commit is contained in:
@@ -51,6 +51,14 @@ class acp_update
|
||||
$announcement_url = (strpos($announcement_url, '&') === false) ? str_replace('&', '&', $announcement_url) : $announcement_url;
|
||||
$update_link = append_sid($phpbb_root_path . 'install/index.' . $phpEx, 'mode=update');
|
||||
|
||||
// next feature release
|
||||
$next_feature_version = $next_feature_announcement_url = false;
|
||||
if (isset($info[2]) && trim($info[2]) !== '')
|
||||
{
|
||||
$next_feature_version = trim($info[2]);
|
||||
$next_feature_announcement_url = trim($info[3]);
|
||||
}
|
||||
|
||||
// Determine automatic update...
|
||||
$sql = 'SELECT config_value
|
||||
FROM ' . CONFIG_TABLE . "
|
||||
@@ -74,8 +82,10 @@ class acp_update
|
||||
'LATEST_VERSION' => $latest_version,
|
||||
'CURRENT_VERSION' => $config['version'],
|
||||
'AUTO_VERSION' => $version_update_from,
|
||||
'NEXT_FEATURE_VERSION' => $next_feature_version,
|
||||
|
||||
'UPDATE_INSTRUCTIONS' => sprintf($user->lang['UPDATE_INSTRUCTIONS'], $announcement_url, $update_link),
|
||||
'UPGRADE_INSTRUCTIONS' => $next_feature_version ? $user->lang('UPGRADE_INSTRUCTIONS', $next_feature_version, $next_feature_announcement_url) : false,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user