Drupal: Fixed bug where ignoring a user will not only hid his/her post, but all posts beneath it.

Fixed by added code to end of comment.tpl.php, adding two additional </div> close tags to match the two open <div> tags created above.

https://dev.gridrepublic.org/browse/DBOINCP-282
This commit is contained in:
Shawn Kwang 2016-08-19 13:46:06 -05:00 committed by Tristan Olive
parent 177f3181a4
commit f5e7ed768c
1 changed files with 12 additions and 0 deletions

View File

@ -176,6 +176,18 @@
<?php endif; ?>
</div>
</div> <!-- /.comment-body -->
<?php
static $authors;
if (_ignore_user_ignored_user($comment->uid)) {
// if (!$authors[$comment->uid]) {
// $authors[$comment->uid] = user_load(array('uid' => $comment->uid));
// }
print '</div> <!-- /.ignore-user-content -->';
print '</div> <!-- /.ignore-user-container -->';
}
?>
</div> <!-- /.comment -->
<?php if ($status == 'comment-preview'): ?>