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

[feature/avatars] Move avatar specific settings to drivers

PHPBB3-10018
This commit is contained in:
Marc Alexander
2012-11-21 17:15:35 +01:00
parent 9b61204a17
commit 726d1a16d7
7 changed files with 76 additions and 9 deletions

View File

@@ -122,6 +122,21 @@ class phpbb_avatar_driver_upload extends phpbb_avatar_driver
);
}
/**
* @inheritdoc
**/
public function prepare_form_acp()
{
global $user;
return array(
'allow_avatar_upload' => array('lang' => 'ALLOW_UPLOAD', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'allow_avatar_remote_upload'=> array('lang' => 'ALLOW_REMOTE_UPLOAD', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'avatar_filesize' => array('lang' => 'MAX_FILESIZE', 'validate' => 'int:0', 'type' => 'text:4:10', 'explain' => true, 'append' => ' ' . $user->lang['BYTES']),
'avatar_path' => array('lang' => 'AVATAR_STORAGE_PATH', 'validate' => 'rwpath', 'type' => 'text:20:255', 'explain' => true),
);
}
/**
* @inheritdoc
*/