@@ -103,7 +103,7 @@ public function __construct(\phpbb\auth\auth $auth, \phpbb\config\config $config
103103 /**
104104 * Display the post rating page
105105 *
106- * @param string $mode Mode taken from the URL
106+ * @param string $mode Mode taken from the URL
107107 * @param int $post_id Post ID taken from the URL
108108 * @return Symfony\Component\HttpFoundation\Response A Symfony Response object
109109 * @access public
@@ -434,7 +434,7 @@ public function post($mode, $post_id)
434434 // Save vote
435435 if ($ submit )
436436 {
437- // Prevent cheater to break the forum permissions to give negative points or give more points than they can
437+ // Prevent cheater to break the forum permissions to give negative points or give more points than they can
438438 if (!$ this ->auth ->acl_get ('f_rs_rate_negative ' , $ row ['forum_id ' ]) && $ points < 0 || $ points < 0 && $ this ->config ['rs_min_rep_negative ' ] && ($ this ->user ->data ['user_reputation ' ] < $ this ->config ['rs_min_rep_negative ' ]) || $ this ->config ['rs_enable_power ' ] && (($ points > $ max_voting_allowed ) || ($ points < -$ max_voting_allowed )))
439439 {
440440 $ submit = false ;
@@ -483,6 +483,7 @@ public function post($mode, $post_id)
483483 'user_id_from ' => $ this ->user ->data ['user_id ' ],
484484 'post_id ' => $ post_id ,
485485 'post_subject ' => $ row ['post_subject ' ],
486+ 'comment ' => $ comment ,
486487 );
487488
488489 $ notification_type = ($ points > 0 ) ? 'pico.reputation.notification.type.rate_post_positive ' : 'pico.reputation.notification.type.rate_post_negative ' ;
@@ -825,7 +826,7 @@ public function user($uid)
825826
826827 if ($ submit )
827828 {
828- //Prevent cheater to break the forum permissions to give negative points or give more points than they can
829+ //Prevent cheater to break the forum permissions to give negative points or give more points than they can
829830 if (!$ this ->auth ->acl_get ('u_rs_rate_negative ' ) && $ points < 0 || $ points < 0 && $ this ->config ['rs_min_rep_negative ' ] && ($ this ->user ->data ['user_reputation ' ] < $ this ->config ['rs_min_rep_negative ' ]) || $ this ->config ['rs_enable_power ' ] && (($ points > $ max_voting_allowed ) || ($ points < -$ max_voting_allowed )))
830831 {
831832 $ submit = false ;
@@ -898,4 +899,4 @@ public function user($uid)
898899
899900 return $ this ->helper ->render ('rateuser.html ' , $ this ->user ->lang ('RS_USER_RATING ' ));
900901 }
901- }
902+ }
0 commit comments