mirror of
https://github.com/e107inc/e107.git
synced 2025-07-26 17:30:24 +02:00
Move ternary variable logic out of LAN file.
This commit is contained in:
@@ -112,7 +112,7 @@ if ((isset($_POST['chat_submit']) || e_AJAX_REQUEST) && $_POST['cmessage'] !== '
|
|||||||
$emessage = CHATBOX_L15;
|
$emessage = CHATBOX_L15;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$emessage = CHATBOX_L19;
|
$emessage = $tp->lanVars(CHATBOX_L19, FLOODPROTECT ?: 'n/a');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -33,7 +33,8 @@ define("CHATBOX_L15", "Post too long, or empty post submitted");
|
|||||||
// define("CHATBOX_L16", "Anonymous");
|
// define("CHATBOX_L16", "Anonymous");
|
||||||
define("CHATBOX_L17", "Duplicate post");
|
define("CHATBOX_L17", "Duplicate post");
|
||||||
define("CHATBOX_L18", "Chatbox messages moderated");
|
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_L20", "Chatbox (all posts)");
|
||||||
// define("CHATBOX_L21", "Chat Posts");
|
// define("CHATBOX_L21", "Chat Posts");
|
||||||
|
Reference in New Issue
Block a user