1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +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:
Cullen Walsh
2011-04-17 20:11:36 -07:00
committed by Cullen Walsh
parent 16bb0f00b7
commit 24379f1297
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ if (!defined('IN_PHPBB'))
* Handles avatars selected from the board gallery
* @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

View File

@@ -30,7 +30,7 @@ class phpbb_avatar_driver_upload extends phpbb_avatar_driver
*/
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(
'src' => $this->phpbb_root_path . 'download/file.' . $this->php_ext . '?avatar=' . $user_row['user_avatar'],