phpBB

Code Changes

File: phpbb/notification/type/report_post_closed.php

  Unmodified   Added   Modified   Removed
Line 71Line 71
			return array();
}


			return array();
}


		return array($post['reporter'] => array(''));

		return array($post['reporter'] => $this->notification_manager->get_default_methods());

	}

/**

	}

/**

Line 113Line 113
	{
$username = $this->user_loader->get_username($this->get_data('closer_id'), 'no_profile');


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


		return $this->user->lang(

		return $this->language->lang(

			$this->language_key,
$username
);

			$this->language_key,
$username
);

Line 126Line 126
	*/
public function get_reference()
{

	*/
public function get_reference()
{

		return $this->user->lang(

		return $this->language->lang(

			'NOTIFICATION_REFERENCE',
censor_text($this->get_data('post_subject'))
);

			'NOTIFICATION_REFERENCE',
censor_text($this->get_data('post_subject'))
);

Line 137Line 137
	*/
public function get_avatar()
{

	*/
public function get_avatar()
{

		return $this->user_loader->get_avatar($this->get_data('closer_id'));

		return $this->user_loader->get_avatar($this->get_data('closer_id'), false, true);

	}

/**

	}

/**

Line 151Line 151
	}

/**

	}

/**

	* Function for preparing the data for insertion in an SQL query
* (The service handles insertion)
*
* @param array $post Data from submit_post
* @param array $pre_create_data Data from pre_create_insert_array()
*
* @return array Array of data ready to be inserted into the database

	* {@inheritdoc}







	*/
public function create_insert_array($post, $pre_create_data = array())
{
$this->set_data('closer_id', $post['closer_id']);


	*/
public function create_insert_array($post, $pre_create_data = array())
{
$this->set_data('closer_id', $post['closer_id']);


		$data = parent::create_insert_array($post, $pre_create_data);

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





		$this->notification_time = $data['notification_time'] = time();










		$this->notification_time = time();
}

/**
* {@inheritdoc}
*/
public function get_insert_array()
{
$data = parent::get_insert_array();
$data['notification_time'] = $this->notification_time;


return $data;
}


return $data;
}