1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 11:44:08 +02:00

[feature/avatars] Pass phpbb_user to prepare and process form functions

The phpbb_user object might be used for language variables and other
things.

PHPBB3-10018
This commit is contained in:
Marc Alexander
2013-02-19 12:24:21 +01:00
parent f09e6865f7
commit 2302cd7a42
11 changed files with 24 additions and 22 deletions

View File

@@ -55,6 +55,7 @@ interface phpbb_avatar_driver_interface
*
* @param phpbb_request $request Request object
* @param phpbb_template $template Template object
* @param phpbb_user $user User object
* @param array $row User data or group data that has been cleaned with
* phpbb_avatar_manager::clean_row
* @param array &$error Reference to an error array that is filled by this
@@ -64,7 +65,7 @@ interface phpbb_avatar_driver_interface
*
* @return bool True if form has been successfully prepared
*/
public function prepare_form($request, $template, $row, &$error);
public function prepare_form($request, $template, $user, $row, &$error);
/**
* Prepare form for changing the acp settings of this avatar
@@ -82,6 +83,7 @@ interface phpbb_avatar_driver_interface
*
* @param phpbb_request $request Request object
* @param phpbb_template $template Template object
* @param phpbb_user $user User object
* @param array $row User data or group data that has been cleaned with
* phpbb_avatar_manager::clean_row
* @param array &$error Reference to an error array that is filled by this
@@ -92,7 +94,7 @@ interface phpbb_avatar_driver_interface
* @return array Array containing the avatar data as follows:
* ['avatar'], ['avatar_width'], ['avatar_height']
*/
public function process_form($request, $template, $row, &$error);
public function process_form($request, $template, $user, $row, &$error);
/**
* Delete avatar