• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

LGB Thread Renamer

The thing I hate about that add-on is that it completely disregards your previous settings and resets everything.
Describe a situation when plug-in Thread Renamer and my plug-in, will conflict. After all it is a question of your assumption of the possible conflict of permissions in between.
 
I made a bug fix. I hope this behaves correctly.

Replace in Thread.php

PHP:
$stillCanEdit = $postModel->canEditPost($post, $thread, $forum, $errorPhraseKey, $nodePermissions, $viewingUser); // check that the user can edit the first post. if they can't, they also should not be allowed to edit the title

with

PHP:
if($post === false) {
    $stillCanEdit = false;
} else {
    $stillCanEdit = $postModel->canEditPost($post, $thread, $forum, $errorPhraseKey, $nodePermissions, $viewingUser); // check that the user can edit the first post. if they can't, they also should not be allowed to edit the title
}
 
Top Bottom