mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[feature/avatars] Remove $request property and pass as argument if needed
Remove the $request property from the phpbb_avatar_driver class and rather pass it as function argument if it's needed in a function. Currently this is only the case for the class methods prepare_form() and process_form(). PHPBB3-10018
This commit is contained in:
@@ -338,7 +338,7 @@ class acp_groups
|
||||
if (in_array($driver_name, $avatar_drivers) && !$request->is_set_post('avatar_delete'))
|
||||
{
|
||||
$driver = $phpbb_avatar_manager->get_driver($driver_name);
|
||||
$result = $driver->process_form($template, $avatar_data, $avatar_error);
|
||||
$result = $driver->process_form($request, $template, $avatar_data, $avatar_error);
|
||||
|
||||
if ($result && empty($avatar_error))
|
||||
{
|
||||
@@ -532,7 +532,7 @@ class acp_groups
|
||||
'avatar' => "acp_avatar_options_{$config_name}.html",
|
||||
));
|
||||
|
||||
if ($driver->prepare_form($template, $avatar_data, $avatar_error))
|
||||
if ($driver->prepare_form($request, $template, $avatar_data, $avatar_error))
|
||||
{
|
||||
$driver_name = $phpbb_avatar_manager->prepare_driver_name($current_driver);
|
||||
$driver_upper = strtoupper($driver_name);
|
||||
|
Reference in New Issue
Block a user