1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

Merge pull request #3662 from arunshekher/feature-branch/chatbox-ternary-variable-logic-out-of-lan-file

Move ternary variable logic out of LAN file.
This commit is contained in:
Cameron
2019-02-03 11:23:43 -08:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ if ((isset($_POST['chat_submit']) || e_AJAX_REQUEST) && $_POST['cmessage'] !== '
$emessage = CHATBOX_L15;
}
} else {
$emessage = CHATBOX_L19;
$emessage = $tp->lanVars(CHATBOX_L19, FLOODPROTECT ?: 'n/a');
}
}
}

View File

@@ -33,7 +33,8 @@ define("CHATBOX_L15", "Post too long, or empty post submitted");
// define("CHATBOX_L16", "Anonymous");
define("CHATBOX_L17", "Duplicate post");
define("CHATBOX_L18", "Chatbox messages moderated");
define("CHATBOX_L19", "You may only post once every ".(FLOODPROTECT ? FLOODTIMEOUT : 'n/a')." seconds");
//define("CHATBOX_L19", "You may only post once every ".(FLOODPROTECT ? FLOODTIMEOUT : 'n/a')." seconds");
define("CHATBOX_L19", "You may only post once every [x] seconds");
define("CHATBOX_L20", "Chatbox (all posts)");
// define("CHATBOX_L21", "Chat Posts");