phpBB

Code Changes

File: phpbb/notification/type/admin_activate_user.php

  Unmodified   Added   Modified   Removed
Line 36Line 36
	/**
* {@inheritdoc}
*/

	/**
* {@inheritdoc}
*/

	public static $notification_option = array(

	static public $notification_option = array(

		'lang'	=> 'NOTIFICATION_TYPE_ADMIN_ACTIVATE_USER',
'group' => 'NOTIFICATION_GROUP_ADMINISTRATION',
);

		'lang'	=> 'NOTIFICATION_TYPE_ADMIN_ACTIVATE_USER',
'group' => 'NOTIFICATION_GROUP_ADMINISTRATION',
);

 

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

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

public function set_config(\phpbb\config\config $config)
{
$this->config = $config;
}

public function set_user_loader(\phpbb\user_loader $user_loader)
{
$this->user_loader = $user_loader;
}


/**
* {@inheritdoc}


/**
* {@inheritdoc}

Line 52Line 68
	/**
* {@inheritdoc}
*/

	/**
* {@inheritdoc}
*/

	public static function get_item_id($user)

	static public function get_item_id($user)

	{
return (int) $user['user_id'];
}

	{
return (int) $user['user_id'];
}

Line 60Line 76
	/**
* {@inheritdoc}
*/

	/**
* {@inheritdoc}
*/

	public static function get_item_parent_id($post)

	static public function get_item_parent_id($post)

	{
return 0;
}

	{
return 0;
}

Line 104Line 120
	*/
public function get_avatar()
{

	*/
public function get_avatar()
{

		return $this->user_loader->get_avatar($this->item_id);

		return $this->user_loader->get_avatar($this->item_id, false, true);

	}

/**

	}

/**

Line 114Line 130
	{
$username = $this->user_loader->get_username($this->item_id, 'no_profile');


	{
$username = $this->user_loader->get_username($this->item_id, 'no_profile');


		return $this->user->lang($this->language_key, $username);

		return $this->language->lang($this->language_key, $username);

	}

/**

	}

/**

Line 164Line 180
		$this->set_data('user_actkey', $user['user_actkey']);
$this->notification_time = $user['user_regdate'];


		$this->set_data('user_actkey', $user['user_actkey']);
$this->notification_time = $user['user_regdate'];


		return parent::create_insert_array($user, $pre_create_data);

		parent::create_insert_array($user, $pre_create_data);

	}
}


	}
}