mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
- blabla, additional bugfixing permissions...
git-svn-id: file:///svn/phpbb/trunk@5580 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -602,6 +602,11 @@ function mcp_delete_post($post_ids)
|
||||
|
||||
if (confirm_box(true))
|
||||
{
|
||||
if (!function_exists('delete_posts'))
|
||||
{
|
||||
include_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
|
||||
}
|
||||
|
||||
// Count the number of topics that are affected
|
||||
// I did not use COUNT(DISTINCT ...) because I remember having problems
|
||||
// with it on older versions of MySQL -- Ashe
|
||||
|
@@ -613,6 +613,11 @@ function disapprove_post($post_id_list)
|
||||
|
||||
if (sizeof($post_disapprove_sql))
|
||||
{
|
||||
if (!function_exists('delete_posts'))
|
||||
{
|
||||
include_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
|
||||
}
|
||||
|
||||
// We do not check for permissions here, because the moderator allowed approval/disapproval should be allowed to delete the disapproved posts
|
||||
delete_posts('post_id', $post_disapprove_sql);
|
||||
}
|
||||
|
Reference in New Issue
Block a user