Commit 3a964129 authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

Added check for closed topic when adding reply links to posts

parent 0f2cab6d
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<h5>{str tag="posts" section=interaction.forum} {$post->count|escape}</h5> <h5>{str tag="posts" section=interaction.forum} {$post->count|escape}</h5>
<div><img src="{$WWWROOT}thumb.php?type=profileicon&maxsize=100&id={$post->poster}" alt=""></div> <div><img src="{$WWWROOT}thumb.php?type=profileicon&maxsize=100&id={$post->poster}" alt=""></div>
<p>{$post->body}</p> <p>{$post->body}</p>
<a href="{$WWWROOT}interaction/forum/editpost.php?parent={$post->id|escape}">{str tag="reply" section=interaction.forum}</a> {if $moderator || !$closed}<a href="{$WWWROOT}interaction/forum/editpost.php?parent={$post->id|escape}">{str tag="reply" section=interaction.forum}</a>{/if}
{if $moderator || $post->editor}<a href="{$WWWROOT}interaction/forum/editpost.php?id={$post->id|escape}"> {str tag="edit" section=interaction.forum}</a>{/if} {if $moderator || $post->editor}<a href="{$WWWROOT}interaction/forum/editpost.php?id={$post->id|escape}"> {str tag="edit" section=interaction.forum}</a>{/if}
{if $moderator && $post->parent}<a href="{$WWWROOT}interaction/forum/deletepost.php?id={$post->id|escape}"> {str tag="delete" section=interaction.forum}</a>{/if} {if $moderator && $post->parent}<a href="{$WWWROOT}interaction/forum/deletepost.php?id={$post->id|escape}"> {str tag="delete" section=interaction.forum}</a>{/if}
{if $post->edit} {if $post->edit}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment