mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12371] Fix redirect link for approve_post and post_in_queue
PHPBB3-12371
This commit is contained in:
parent
40d91a5d6e
commit
7324cb051f
2 changed files with 16 additions and 0 deletions
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue