Updated Lang

Error now displays message from en.php
This commit is contained in:
aftercase 2021-07-12 23:33:54 +01:00
parent ddcb18a85c
commit 60fa6fe5fe
2 changed files with 2 additions and 1 deletions

View file

@ -213,7 +213,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
]);
$success = $paste_id;
} else {
$error = 'You must be logged in to do that.'; // TODO: Lang?
$error = $lang['loginwarning']; //"You must be logged in to do that."
}
} else {
$statement = $conn->prepare(

View file

@ -4,6 +4,7 @@
*/
$lang = array();
$lang['loginwarning'] = "You must be logged in to do that.";
$lang['titlelen'] = "Title too long";
$lang['notags'] = "Please tag your paste";
$lang['maxnamelimit'] = "Username too long";