Skip to content

Commit

Permalink
Wrong minimum reputation comment length (mybb#3101)
Browse files Browse the repository at this point in the history
* THIS_SCRIPT Fallback added.

Moved from ./global.php

* Revert "THIS_SCRIPT Fallback added."

This reverts commit 81fecc7.

* Fixes mybb#3017 - PHP 7 / undefined constant THIS_SCRIPT (mybb#3092)

* THIS_SCRIPT Fallback Removed.

Shifted to ./inc/init.php

* THIS_SCRIPT Fallback added

Moved from ./global.php

* Wrong minimum reputation comment length
  • Loading branch information
effone authored and Eldenroot committed May 8, 2018
1 parent 7d1824d commit 28a88d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/languages/english/reputation.lang.php
Expand Up @@ -19,7 +19,7 @@
$l['add_maxperday'] = "You have already given as many reputation ratings as you are allowed to for today.";
$l['add_maxperuser'] = "You've already given this user as many reputation ratings as you can for today.";
$l['add_maxperthread'] = "You've already given this user as many reputation ratings (in one thread) as you can for today.";
$l['add_no_comment'] = "You must enter a comment of at least 10 characters to give this user a reputation rating.";
$l['add_no_comment'] = "You must enter a comment of at least {1} characters to give this user a reputation rating.";
$l['add_toolong'] = "You must enter a reason no longer than {1} characters.";
$l['add_negative_disabled'] = "The administrator has disabled negative reputations.";
$l['add_neutral_disabled'] = "The administrator has disabled neutral reputations.";
Expand Down
1 change: 1 addition & 0 deletions mybb
Submodule mybb added at 69799c
2 changes: 1 addition & 1 deletion reputation.php
Expand Up @@ -271,7 +271,7 @@
$mybb->input['comments'] = trim($mybb->get_input('comments')); // Trim whitespace to check for length
if(my_strlen($mybb->input['comments']) < $mybb->settings['minreplength'] && $mybb->get_input('pid', MyBB::INPUT_INT) == 0)
{
$message = $lang->add_no_comment;
$message = $lang->sprintf($lang->add_no_comment, $mybb->settings['minreplength']);
if($mybb->input['nomodal'])
{
eval("\$error = \"".$templates->get("reputation_add_error_nomodal", 1, 0)."\";");
Expand Down

0 comments on commit 28a88d9

Please sign in to comment.