1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[feature/avatars] Pass phpbb_user object to prepare_form_acp()

The phpbb_user object might be used for language variables. Pass it as a
function argument to prepare_form_acp() instead of using globals.

PHPBB3-10018
This commit is contained in:
Marc Alexander
2013-01-08 15:42:30 +01:00
parent 8778c9c945
commit 9e001153d6
5 changed files with 7 additions and 7 deletions

View File

@@ -104,7 +104,7 @@ class phpbb_avatar_driver_local extends phpbb_avatar_driver
/**
* @inheritdoc
*/
public function prepare_form_acp()
public function prepare_form_acp($user)
{
return array(
'avatar_gallery_path' => array('lang' => 'AVATAR_GALLERY_PATH', 'validate' => 'rpath', 'type' => 'text:20:255', 'explain' => true),