Skip to content

Commit

Permalink
fix wsod on discussions page
Browse files Browse the repository at this point in the history
  • Loading branch information
beck24 committed Oct 23, 2015
1 parent 9d5258a commit d23d46d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

x.x:

2.0.1 (10/22/2015):
- fix for discussions wsod

2.0.0 (10/22/2015):
- Upgrade for Elgg 1.9+
- restore auto subscription option that somehow got lost...
Expand Down
2 changes: 1 addition & 1 deletion manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>Comment Tracker</name>
<author>Matt Beckett</author>
<id>comment_tracker</id>
<version>2.0.0</version>
<version>2.0.1</version>
<description>Manage notifications/subscriptions for comment threads</description>
<website>http://mattbeckett.me/</website>
<copyright>(C) Matt Beckett 2015</copyright>
Expand Down
8 changes: 8 additions & 0 deletions views/default/comment_tracker/manage_subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
*/
$entity = $vars['entity'];

if (!$entity && $vars['topic']) {
$entity = $vars['topic'];
}

if (!elgg_instanceof($entity)) {
return;
}

if (elgg_instanceof($entity, 'object', 'groupforumtopic') && $entity->status == 'closed') {
return;
}
Expand Down

0 comments on commit d23d46d

Please sign in to comment.