Thread locking ineffectual (patches included)
<sayotte <at> alkaloid.net>
2006-06-15 18:25:01 GMT
Thread "locking" removes the Reply link from the threads view, but does not:
a) prevent actual replies from being made at the lib/ level
b) prevent the Reply To (...) form from being displayed when viewing
messages in locked threads
The following is a patch (generated by 'svn diff') for
AGORA_BASE/messages/message.php which prevents the Reply To form from
being displayed:
Index: message.php
===================================================================
<at> <at> -77,9 +77,14 <at> <at>
$template->set('message_body',
Text_Filter::filter($message_array['message_body'], 'highlightquotes'));
$template->set('message_attachment', $message->getAttachmentLink(), true);
$template->set('actions', $actions, true);
-
+
$template_file = AGORA_TEMPLATES . '/messages/message.html';
- $title = sprintf(_("Post a Reply to \"%s\""),
$messages->forum->getShortName());
+ if (!$message->isLocked()){
+ $title = sprintf(_("Post a Reply to \"%s\""),
$messages->forum->getShortName());
+ }
+ else{
+ $title = 'ERROR THIS SHOULDN\'T BE DISPLAYED';
+ }
} else {
$template_file = AGORA_TEMPLATES . '/messages/message_thread.html';
$title = sprintf(_("Post a New Message to \"%s\""),
(Continue reading)