[ticket/12371] Fix redirect link for approve_post and post_in_queue

PHPBB3-12371
This commit is contained in:
Joas Schilling 2014-04-19 11:22:46 +02:00
parent 40d91a5d6e
commit 7324cb051f
2 changed files with 16 additions and 0 deletions

View file

@ -138,4 +138,12 @@ class approve_post extends \phpbb\notification\type\post
{ {
return 'post_approved'; return 'post_approved';
} }
/**
* {inheritDoc}
*/
public function get_redirect_url()
{
return $this->get_url();
}
} }

View file

@ -118,6 +118,14 @@ class post_in_queue extends \phpbb\notification\type\post
return append_sid($this->phpbb_root_path . 'mcp.' . $this->php_ext, "i=queue&mode=approve_details&f={$this->get_data('forum_id')}&p={$this->item_id}"); return append_sid($this->phpbb_root_path . 'mcp.' . $this->php_ext, "i=queue&mode=approve_details&f={$this->get_data('forum_id')}&p={$this->item_id}");
} }
/**
* {inheritDoc}
*/
public function get_redirect_url()
{
return parent::get_url();
}
/** /**
* Function for preparing the data for insertion in an SQL query * Function for preparing the data for insertion in an SQL query
* (The service handles insertion) * (The service handles insertion)