mirror of https://github.com/BOINC/boinc.git
<no_forum_rating/> should be parsed as bool, not as string
svn path=/trunk/boinc/; revision=12497
This commit is contained in:
parent
e4bd252008
commit
4ccd2698ef
|
@ -82,7 +82,7 @@ $post_ratings['-1'] = "Not helpful (-1)";
|
|||
$post_ratings['-2'] = "Off topic (-2)";
|
||||
|
||||
$config = get_config();
|
||||
$no_forum_rating = parse_element($config,"<no_forum_rating/>");
|
||||
$no_forum_rating = parse_bool($config, "no_forum_rating");
|
||||
|
||||
/**
|
||||
* Process a user-supplied title to remove HTML stuff
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit
|
||||
|
||||
/**
|
||||
* This file allows people to rate posts in a thread
|
||||
**/
|
||||
|
@ -7,11 +9,11 @@ require_once('../inc/forum_std.inc');
|
|||
require_once('../inc/util.inc');
|
||||
|
||||
$config = get_config();
|
||||
if (parse_element($config,"<no_forum_rating/>")) {
|
||||
page_head("Rating offline");
|
||||
echo "This function is turned off by the project";
|
||||
page_tail();
|
||||
exit(0);
|
||||
if (parse_bool($config, "no_forum_rating")) {
|
||||
page_head("Rating offline");
|
||||
echo "This function is turned off by the project";
|
||||
page_tail();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
db_init();
|
||||
|
|
Loading…
Reference in New Issue