Tentative de régler le bordel
This commit is contained in:
@@ -78,10 +78,7 @@ class approve_post extends \phpbb\notification\type\post
|
||||
'ignore_users' => array(),
|
||||
), $options);
|
||||
|
||||
$users = array();
|
||||
$users[$post['poster_id']] = $this->notification_manager->get_default_methods();
|
||||
|
||||
return $this->get_authorised_recipients(array_keys($users), $post['forum_id'], array_merge($options, array(
|
||||
return $this->get_authorised_recipients(array($post['poster_id']), $post['forum_id'], array_merge($options, array(
|
||||
'item_type' => static::$notification_option['id'],
|
||||
)));
|
||||
}
|
||||
@@ -94,7 +91,7 @@ class approve_post extends \phpbb\notification\type\post
|
||||
*
|
||||
* @param array $post Post data from submit_post
|
||||
* @param array $notify_users Notify users list
|
||||
* Formated from find_users_for_notification()
|
||||
* Formatted from find_users_for_notification()
|
||||
* @return array Whatever you want to send to create_insert_array().
|
||||
*/
|
||||
public function pre_create_insert_array($post, $notify_users)
|
||||
|
||||
@@ -78,10 +78,7 @@ class approve_topic extends \phpbb\notification\type\topic
|
||||
'ignore_users' => array(),
|
||||
), $options);
|
||||
|
||||
$users = array();
|
||||
$users[$post['poster_id']] = $this->notification_manager->get_default_methods();
|
||||
|
||||
return $this->get_authorised_recipients(array_keys($users), $post['forum_id'], array_merge($options, array(
|
||||
return $this->get_authorised_recipients(array($post['poster_id']), $post['forum_id'], array_merge($options, array(
|
||||
'item_type' => static::$notification_option['id'],
|
||||
)));
|
||||
}
|
||||
@@ -94,7 +91,7 @@ class approve_topic extends \phpbb\notification\type\topic
|
||||
*
|
||||
* @param array $post Post data from submit_post
|
||||
* @param array $notify_users Notify users list
|
||||
* Formated from find_users_for_notification()
|
||||
* Formatted from find_users_for_notification()
|
||||
* @return array Whatever you want to send to create_insert_array().
|
||||
*/
|
||||
public function pre_create_insert_array($post, $notify_users)
|
||||
|
||||
@@ -336,7 +336,7 @@ abstract class base implements \phpbb\notification\type\type_interface
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the reference of the notifcation (fall back)
|
||||
* Get the reference of the notification (fall back)
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -356,7 +356,7 @@ abstract class base implements \phpbb\notification\type\type_interface
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the reason for the notifcation (fall back)
|
||||
* Get the reason for the notification (fall back)
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -352,7 +352,7 @@ class post extends \phpbb\notification\type\base
|
||||
*
|
||||
* @param array $post Post data from submit_post
|
||||
* @param array $notify_users Notify users list
|
||||
* Formated from find_users_for_notification()
|
||||
* Formatted from find_users_for_notification()
|
||||
* @return array Whatever you want to send to create_insert_array().
|
||||
*/
|
||||
public function pre_create_insert_array($post, $notify_users)
|
||||
|
||||
@@ -256,7 +256,7 @@ class topic extends \phpbb\notification\type\base
|
||||
*
|
||||
* @param array $post Post data from submit_post
|
||||
* @param array $notify_users Notify users list
|
||||
* Formated from find_users_for_notification()
|
||||
* Formatted from find_users_for_notification()
|
||||
* @return array Whatever you want to send to create_insert_array().
|
||||
*/
|
||||
public function pre_create_insert_array($post, $notify_users)
|
||||
|
||||
@@ -170,7 +170,7 @@ interface type_interface
|
||||
*
|
||||
* @param array $type_data The type specific data
|
||||
* @param array $notify_users Notify users list
|
||||
* Formated from find_users_for_notification()
|
||||
* Formatted from find_users_for_notification()
|
||||
* @return array Whatever you want to send to create_insert_array().
|
||||
*/
|
||||
public function pre_create_insert_array($type_data, $notify_users);
|
||||
|
||||
Reference in New Issue
Block a user