mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 08:29:06 +00:00
Refactor
This commit is contained in:
parent
57cb8c54e8
commit
52499677c1
4
info.php
4
info.php
@ -120,9 +120,9 @@ $type = $_GET['type'];
|
||||
$id = $_GET['id'];
|
||||
$page = new Page($type);
|
||||
|
||||
($page->type !== null) or die($page->t("info.error.type.invalid"));
|
||||
($page->type !== null) or die("Unknown page type requested");
|
||||
|
||||
filter_var($id, FILTER_VALIDATE_INT) or die($page->t("info.error.id.invalid"));
|
||||
filter_var($id, FILTER_VALIDATE_INT) or die("Invalid ID");
|
||||
|
||||
$id = (int)$id;
|
||||
|
||||
|
@ -54,8 +54,6 @@ class DefaultLang {
|
||||
$array["error.name.unseen"] = "{name} has not joined before.";
|
||||
$array["error.name.invalid"] = "Invalid name.";
|
||||
$array["history.error.uuid.no-result"] = "No punishments found.";
|
||||
$array["info.error.type.invalid"] = "Unknown page type requested.";
|
||||
$array["info.error.id.invalid"] = "Invalid ID";
|
||||
$array["info.error.id.no-result"] = "Error: {type} not found in database.";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user