SMF Support > PostgreSQL and SQLite Support
Problem when the moderation feature is turned on
amandaf:
Nope. Nothing yet. We tried upgrading a test version to RC4 and that didn't help. We would appreciate any help you can give!
Oldiesmann:
I will poke around a bit this afternoon and see what I can come up with.
Oldiesmann:
I can't figure out what's going on here either unfortunately, at least by looking at the code. This is the code that sends out notifications after approval (from the approvePosts() function in Subs-Post.php):
--- Code: --- // Finally, least importantly, notifications!
if ($approve)
{
if (!empty($notification_topics))
{
require_once($sourcedir . '/Post.php');
notifyMembersBoard($notification_topics);
}
if (!empty($notification_posts))
sendApprovalNotifications($notification_posts);
$smcFunc['db_query']('', '
DELETE FROM {db_prefix}approval_queue
WHERE id_msg IN ({array_int:message_list})
AND id_attach = {int:id_attach}',
array(
'message_list' => $msgs,
'id_attach' => 0,
)
);
}
--- End code ---
None of the code that determines whether or not notifications get sent out is database-dependent - $approve is set when the function is called (defaulting to true), and $notification_topics and $notification_posts are set in the function itself.
I will have to play with this more in the coming weeks when I have more time and see if I can get to the bottom of it.
Navigation
[0] Message Index
[*] Previous page
Go to full version