mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02: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:
committed by
Cullen Walsh
parent
16bb0f00b7
commit
24379f1297
@@ -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'],
|
||||||
|
Reference in New Issue
Block a user