phpBB

Code Changes

File: phpbb/avatar/manager.php

  Unmodified   Added   Modified   Removed
Line 20Line 20
	* @var \phpbb\config\config
*/
protected $config;

	* @var \phpbb\config\config
*/
protected $config;

 

/**
* phpBB event dispatcher
* @var \phpbb\event\dispatcher_interface
*/
protected $phpbb_dispatcher;


/**
* Array that contains a list of enabled drivers


/**
* Array that contains a list of enabled drivers

Line 49Line 55
	* Construct an avatar manager object
*
* @param \phpbb\config\config $config phpBB configuration

	* Construct an avatar manager object
*
* @param \phpbb\config\config $config phpBB configuration

 
	* @param \phpbb\event\dispatcher_interface $phpbb_dispatcher phpBB event dispatcher

	* @param array $avatar_drivers Avatar drivers passed via the service container
*/

	* @param array $avatar_drivers Avatar drivers passed via the service container
*/

	public function __construct(\phpbb\config\config $config, $avatar_drivers)

	public function __construct(\phpbb\config\config $config, \phpbb\event\dispatcher_interface $phpbb_dispatcher, $avatar_drivers)

	{
$this->config = $config;

	{
$this->config = $config;

 
		$this->phpbb_dispatcher = $phpbb_dispatcher;

		$this->register_avatar_drivers($avatar_drivers);
}


		$this->register_avatar_drivers($avatar_drivers);
}


Line 331Line 339
				WHERE user_avatar = '" . $db->sql_escape($avatar_data['avatar']) . "'";
$db->sql_query($sql);
}

				WHERE user_avatar = '" . $db->sql_escape($avatar_data['avatar']) . "'";
$db->sql_query($sql);
}

 

/**
* Event is triggered after user avatar has been deleted
*
* @event core.avatar_manager_avatar_delete_after
* @var \phpbb\user user phpBB user object
* @var array avatar_data Normalised avatar-related user data
* @var string table Table to delete avatar from
* @var string prefix Column prefix to delete avatar from
* @since 3.2.4-RC1
*/
$vars = array('user', 'avatar_data', 'table', 'prefix');
extract($this->phpbb_dispatcher->trigger_event('core.avatar_manager_avatar_delete_after', compact($vars)));

	}

/**

	}

/**