mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 14:40:09 +01:00
Updated Lang
Error now displays message from en.php
This commit is contained in:
parent
ddcb18a85c
commit
60fa6fe5fe
2 changed files with 2 additions and 1 deletions
|
@ -213,7 +213,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
]);
|
]);
|
||||||
$success = $paste_id;
|
$success = $paste_id;
|
||||||
} else {
|
} else {
|
||||||
$error = 'You must be logged in to do that.'; // TODO: Lang?
|
$error = $lang['loginwarning']; //"You must be logged in to do that."
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$statement = $conn->prepare(
|
$statement = $conn->prepare(
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$lang = array();
|
$lang = array();
|
||||||
|
$lang['loginwarning'] = "You must be logged in to do that.";
|
||||||
$lang['titlelen'] = "Title too long";
|
$lang['titlelen'] = "Title too long";
|
||||||
$lang['notags'] = "Please tag your paste";
|
$lang['notags'] = "Please tag your paste";
|
||||||
$lang['maxnamelimit'] = "Username too long";
|
$lang['maxnamelimit'] = "Username too long";
|
||||||
|
|
Loading…
Add table
Reference in a new issue