@@ -543,13 +543,12 @@ function show_post(
543543 return ;
544544 }
545545
546- $ config = get_config ();
547546 BoincForumPrefs::lookup ($ user );
548547 if (is_banished ($ user ) && !is_moderator ($ logged_in_user , $ forum )) {
549548 return ;
550549 }
551550
552- $ no_forum_rating = parse_bool ( $ config , "no_forum_rating " );
551+ $ no_forum_rating = project_config_bool ( "no_forum_rating " );
553552
554553 $ tokens = "" ;
555554 $ options = get_output_options ($ logged_in_user );
@@ -694,7 +693,7 @@ function show_post(
694693 show_button_small ("forum_edit.php?id= " .$ post ->id ."$ tokens " , tra ("Edit " ), tra ("Edit this message " ));
695694 }
696695 if (is_moderator ($ logged_in_user , $ forum )) {
697- show_post_moderation_links ($ config , $ logged_in_user , $ post , $ forum , $ tokens );
696+ show_post_moderation_links ($ logged_in_user , $ post , $ forum , $ tokens );
698697 }
699698 if ($ post ->modified ) {
700699 echo "<br> " .tra ("Last modified: %1 " , pretty_time_Str ($ post ->modified ));
@@ -784,7 +783,6 @@ function show_post_and_context($post, $thread, $forum, $options, $n) {
784783 return ;
785784 }
786785
787- $ config = get_config ();
788786 $ title = cleanup_title ($ thread ->title );
789787 if ($ post ->hidden ) {
790788 $ deleted = "<br><font color=red>[ " .tra ("Hidden by a moderator " )."]</font> " ;
@@ -1222,10 +1220,10 @@ function get_thread_posts($threadid, $sort_style, $show_hidden) {
12221220// logged in user has moderation rights.
12231221//
12241222function show_post_moderation_links (
1225- $ config , $ logged_in_user , $ post , $ forum , $ tokens
1223+ $ logged_in_user , $ post , $ forum , $ tokens
12261224){
1227- $ moderators_allowed_to_ban = parse_bool ( $ config , "moderators_allowed_to_ban " );
1228- $ moderators_vote_to_ban = parse_bool ( $ config , "moderators_vote_to_ban " );
1225+ $ moderators_allowed_to_ban = project_config_bool ( "moderators_allowed_to_ban " );
1226+ $ moderators_vote_to_ban = project_config_bool ( "moderators_vote_to_ban " );
12291227
12301228 if ($ post ->hidden ) {
12311229 show_button_small ("forum_moderate_post_action.php?action=unhide&id= " .$ post ->id ."$ tokens " , tra ("Unhide " ), tra ("Unhide this post " ));
@@ -1458,7 +1456,7 @@ function is_subscribed($id, $subs) {
14581456//
14591457function is_forum_visible_to_user ($ forum , $ user ) {
14601458 if ($ forum ->parent_type == 1 ) {
1461- if (parse_config ( get_config (), " < team_forums_members_only> " )) {
1459+ if (project_config_val ( " team_forums_members_only " )) {
14621460 if (!$ user ) return false ;
14631461 if ($ user ->teamid != $ forum ->category ) return false ;
14641462 }
0 commit comments