Line 37 | Line 37 |
---|
try { $recheck = $request->variable('versioncheck_force', false);
|
try { $recheck = $request->variable('versioncheck_force', false);
|
$updates_available = $version_helper->get_suggested_updates($recheck);
| $updates_available = $version_helper->get_update_on_branch($recheck); $upgrades_available = $version_helper->get_suggested_updates(); if (!empty($upgrades_available)) { $upgrades_available = array_pop($upgrades_available); }
|
} catch (\RuntimeException $e) {
| } catch (\RuntimeException $e) {
|
Line 46 | Line 51 |
---|
$updates_available = array(); }
|
$updates_available = array(); }
|
foreach ($updates_available as $branch => $version_data) { $template->assign_block_vars('updates_available', $version_data); }
| $template->assign_block_vars('updates_available', $updates_available);
|
|
|
$update_link = append_sid($phpbb_root_path . 'install/index.' . $phpEx, 'mode=update');
| $update_link = append_sid($phpbb_root_path . 'install/');
|
$template->assign_vars(array( 'S_UP_TO_DATE' => empty($updates_available),
| $template->assign_vars(array( 'S_UP_TO_DATE' => empty($updates_available),
|
Line 61 | Line 63 |
---|
'CURRENT_VERSION' => $config['version'],
'UPDATE_INSTRUCTIONS' => sprintf($user->lang['UPDATE_INSTRUCTIONS'], $update_link),
|
'CURRENT_VERSION' => $config['version'],
'UPDATE_INSTRUCTIONS' => sprintf($user->lang['UPDATE_INSTRUCTIONS'], $update_link),
|
| 'S_VERSION_UPGRADEABLE' => !empty($upgrades_available), 'UPGRADE_INSTRUCTIONS' => !empty($upgrades_available) ? $user->lang('UPGRADE_INSTRUCTIONS', $upgrades_available['current'], $upgrades_available['announcement']) : false,
|
));
|
));
|
| // Incomplete update? if (phpbb_version_compare($config['version'], PHPBB_VERSION, '<')) { $database_update_link = append_sid($phpbb_root_path . 'install/database_update.' . $phpEx);
$template->assign_vars(array( 'S_UPDATE_INCOMPLETE' => true, 'FILES_VERSION' => PHPBB_VERSION, 'INCOMPLETE_INSTRUCTIONS' => $user->lang('UPDATE_INCOMPLETE_EXPLAIN', $database_update_link), )); }
|
} }
| } }
|