This commit is contained in:
Shish 2019-11-05 00:19:31 +00:00
parent 15e61c5bf4
commit 1a4a76c324
2 changed files with 4 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class IPBan extends Extension
if (empty($_POST['end'])) {
$end = null;
} else {
$end = date("Y-m-d H:M:S", strtotime(trim($_POST['end'])));
$end = date("Y-m-d H:i:s", strtotime(trim($_POST['end'])));
}
send_event(new AddIPBanEvent($_POST['ip'], $_POST['reason'], $end));

View File

@ -24,7 +24,9 @@ class TagList extends Extension
if ($event->page_matches("tags")) {
$this->theme->set_navigation($this->build_navigation());
switch ($event->get_arg(0)) {
if($event->count_args() == 0) $sub = "map";
else $sub = $event->get_arg(0);
switch ($sub) {
default:
case 'map':
$this->theme->set_heading("Tag Map");