Ticket #768: forum-report.diff

File forum-report.diff, 1.4 KB (added by Nicolas, 16 years ago)
  • html/user/forum_report_post.php

     
    5656    }
    5757}
    5858
     59$no_forum_rating = parse_bool($config, "no_forum_rating");
    5960
    60 
    6161//__--------------- Display part
    6262if ($success_page==1) {
    6363    page_head('Report Registered');
     
    6969    echo "<a href=\"forum_thread.php?id=", $thread->id, "#", $post->id, "\">Return to thread</a>";
    7070} elseif ($success_page==0){
    7171    page_head('Report a forum post');
    72     echo "<p>Before reporting this post <em>please</em>
    73         consider using the +/- rating system instead.
    74         If enough users agree on rating a post negatively it will
    75         eventually be hidden.
    76         <br />You can find the rating system at the bottom of the post.</p>
    77     ";
     72    if (!$no_forum_rating) {
     73        echo "<p>Before reporting this post <em>please</em>
     74            consider using the +/- rating system instead.
     75            If enough users agree on rating a post negatively it will
     76            eventually be hidden.
     77            <br />You can find the rating system at the bottom of the post.</p>
     78        ";
     79    }
    7880    start_forum_table(array(tra("Author"), tra("Message"),""));
    7981    show_post($post, $thread, $forum, $user, 0, 0);
    8082    echo "<form action=\"forum_report_post.php\" method=\"get\">\n";