mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[ticket/12371] Fix redirect link for approve_post and post_in_queue
PHPBB3-12371
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user