mirror of https://github.com/BOINC/boinc.git
- web: don't show misleading message if forum rating disabled
fixes #768; from Nicolas svn path=/trunk/boinc/; revision=16480
This commit is contained in:
parent
a3b6ddf6ff
commit
a65166f31c
|
@ -9375,3 +9375,10 @@ David 11 Nov 2008
|
|||
|
||||
api/
|
||||
boinc_api.cpp
|
||||
|
||||
David 11 Nov 2008
|
||||
- web: don't show misleading message if forum rating disabled
|
||||
fixes #768; from Nicolas
|
||||
|
||||
html/user/
|
||||
forum_report_post.php
|
||||
|
|
|
@ -56,7 +56,7 @@ if (get_str("submit",true)){
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
$no_forum_rating = parse_bool($config, "no_forum_rating");
|
||||
|
||||
//__--------------- Display part
|
||||
if ($success_page==1) {
|
||||
|
@ -69,12 +69,14 @@ if ($success_page==1) {
|
|||
echo "<a href=\"forum_thread.php?id=", $thread->id, "#", $post->id, "\">Return to thread</a>";
|
||||
} elseif ($success_page==0){
|
||||
page_head('Report a forum post');
|
||||
echo "<p>Before reporting this post <em>please</em>
|
||||
consider using the +/- rating system instead.
|
||||
If enough users agree on rating a post negatively it will
|
||||
eventually be hidden.
|
||||
<br />You can find the rating system at the bottom of the post.</p>
|
||||
";
|
||||
if (!$no_forum_rating) {
|
||||
echo "<p>Before reporting this post <em>please</em>
|
||||
consider using the +/- rating system instead.
|
||||
If enough users agree on rating a post negatively it will
|
||||
eventually be hidden.
|
||||
<br>You can find the rating system at the bottom of the post.</br>
|
||||
";
|
||||
}
|
||||
start_forum_table(array(tra("Author"), tra("Message"),""));
|
||||
show_post($post, $thread, $forum, $user, 0, 0);
|
||||
echo "<form action=\"forum_report_post.php\" method=\"get\">\n";
|
||||
|
|
Loading…
Reference in New Issue