mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/9871] Use $request->variable instead of request_var
PHPBB3-9871
This commit is contained in:
parent
6c8589775b
commit
6a8f110b5a
2 changed files with 3 additions and 3 deletions
|
@ -435,7 +435,7 @@ class acp_main
|
||||||
$version_helper = $phpbb_container->get('version_helper');
|
$version_helper = $phpbb_container->get('version_helper');
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$recheck = request_var('versioncheck_force', false);
|
$recheck = $request->variable('versioncheck_force', false);
|
||||||
$updates_available = $version_helper->get_suggested_updates($recheck);
|
$updates_available = $version_helper->get_suggested_updates($recheck);
|
||||||
|
|
||||||
$template->assign_var('S_VERSION_UP_TO_DATE', empty($updates_available));
|
$template->assign_var('S_VERSION_UP_TO_DATE', empty($updates_available));
|
||||||
|
|
|
@ -24,7 +24,7 @@ class acp_update
|
||||||
|
|
||||||
function main($id, $mode)
|
function main($id, $mode)
|
||||||
{
|
{
|
||||||
global $config, $user, $template;
|
global $config, $user, $template, $request;
|
||||||
global $phpbb_root_path, $phpEx, $phpbb_container;
|
global $phpbb_root_path, $phpEx, $phpbb_container;
|
||||||
|
|
||||||
$user->add_lang('install');
|
$user->add_lang('install');
|
||||||
|
@ -35,7 +35,7 @@ class acp_update
|
||||||
$version_helper = $phpbb_container->get('version_helper');
|
$version_helper = $phpbb_container->get('version_helper');
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$recheck = request_var('versioncheck_force', false);
|
$recheck = $request->variable('versioncheck_force', false);
|
||||||
$updates_available = $version_helper->get_suggested_updates($recheck);
|
$updates_available = $version_helper->get_suggested_updates($recheck);
|
||||||
}
|
}
|
||||||
catch (\RuntimeException $e)
|
catch (\RuntimeException $e)
|
||||||
|
|
Loading…
Add table
Reference in a new issue