aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
author3D-I <marktravai@gmail.com>2019-06-01 00:24:36 +0200
committer3D-I <marktravai@gmail.com>2019-06-01 00:25:24 +0200
commit0a89c536586863bcfcdd30299272211a44aa2ee7 (patch)
tree670a831f580130fbae4406d0951e0a12065b2b26 /phpBB/includes
parent97e92f52d7b60ec7194bbee772ab14592c551e82 (diff)
downloadforums-0a89c536586863bcfcdd30299272211a44aa2ee7.tar
forums-0a89c536586863bcfcdd30299272211a44aa2ee7.tar.gz
forums-0a89c536586863bcfcdd30299272211a44aa2ee7.tar.bz2
forums-0a89c536586863bcfcdd30299272211a44aa2ee7.tar.xz
forums-0a89c536586863bcfcdd30299272211a44aa2ee7.zip
[ticket/16073] Fix warning in ACP version check
PHPBB3-16073
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acp/acp_update.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/phpBB/includes/acp/acp_update.php b/phpBB/includes/acp/acp_update.php
index 9124a59ef2..fa3afa6ce3 100644
--- a/phpBB/includes/acp/acp_update.php
+++ b/phpBB/includes/acp/acp_update.php
@@ -59,17 +59,19 @@ class acp_update
$update_link = $phpbb_root_path . 'install/app.' . $phpEx;
- $template->assign_vars(array(
- 'S_UP_TO_DATE' => empty($updates_available),
- 'U_ACTION' => $this->u_action,
- 'U_VERSIONCHECK_FORCE' => append_sid($this->u_action . '&amp;versioncheck_force=1'),
+ $template_ary = [
+ 'S_UP_TO_DATE' => empty($updates_available),
+ 'U_ACTION' => $this->u_action,
+ 'U_VERSIONCHECK_FORCE' => append_sid($this->u_action . '&amp;versioncheck_force=1'),
- 'CURRENT_VERSION' => $config['version'],
+ 'CURRENT_VERSION' => $config['version'],
- 'UPDATE_INSTRUCTIONS' => sprintf($user->lang['UPDATE_INSTRUCTIONS'], $update_link),
+ 'UPDATE_INSTRUCTIONS' => $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,
- ));
+ ];
+
+ $template->assign_vars($template_ary);
// Incomplete update?
if (phpbb_version_compare($config['version'], PHPBB_VERSION, '<'))