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)";
|
$post_ratings['-2'] = "Off topic (-2)";
|
||||||
|
|
||||||
$config = get_config();
|
$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
|
* Process a user-supplied title to remove HTML stuff
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This file allows people to rate posts in a thread
|
* This file allows people to rate posts in a thread
|
||||||
**/
|
**/
|
||||||
|
@ -7,7 +9,7 @@ require_once('../inc/forum_std.inc');
|
||||||
require_once('../inc/util.inc');
|
require_once('../inc/util.inc');
|
||||||
|
|
||||||
$config = get_config();
|
$config = get_config();
|
||||||
if (parse_element($config,"<no_forum_rating/>")) {
|
if (parse_bool($config, "no_forum_rating")) {
|
||||||
page_head("Rating offline");
|
page_head("Rating offline");
|
||||||
echo "This function is turned off by the project";
|
echo "This function is turned off by the project";
|
||||||
page_tail();
|
page_tail();
|
||||||
|
|
Loading…
Reference in New Issue