mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/avatars] Rename gallery avatar driver
Renaming gallery avatar driver to better work with existing config options. PHPBB3-10018
This commit is contained in:
parent
16bb0f00b7
commit
24379f1297
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ if (!defined('IN_PHPBB'))
|
||||||
* Handles avatars selected from the board gallery
|
* Handles avatars selected from the board gallery
|
||||||
* @package avatars
|
* @package avatars
|
||||||
*/
|
*/
|
||||||
class phpbb_avatar_driver_gallery extends phpbb_avatar_driver
|
class phpbb_avatar_driver_local extends phpbb_avatar_driver
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Get the avatar url and dimensions
|
* Get the avatar url and dimensions
|
|
@ -30,7 +30,7 @@ class phpbb_avatar_driver_upload extends phpbb_avatar_driver
|
||||||
*/
|
*/
|
||||||
public function get_data($user_row, $ignore_config = false)
|
public function get_data($user_row, $ignore_config = false)
|
||||||
{
|
{
|
||||||
if (ignore_config || $this->config['allow_avatar_upload'])
|
if ($ignore_config || $this->config['allow_avatar_upload'])
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'src' => $this->phpbb_root_path . 'download/file.' . $this->php_ext . '?avatar=' . $user_row['user_avatar'],
|
'src' => $this->phpbb_root_path . 'download/file.' . $this->php_ext . '?avatar=' . $user_row['user_avatar'],
|
||||||
|
|
Loading…
Add table
Reference in a new issue