php...
This commit is contained in:
parent
15e61c5bf4
commit
1a4a76c324
@ -54,7 +54,7 @@ class IPBan extends Extension
|
|||||||
if (empty($_POST['end'])) {
|
if (empty($_POST['end'])) {
|
||||||
$end = null;
|
$end = null;
|
||||||
} else {
|
} 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));
|
send_event(new AddIPBanEvent($_POST['ip'], $_POST['reason'], $end));
|
||||||
|
|
||||||
|
@ -24,7 +24,9 @@ class TagList extends Extension
|
|||||||
|
|
||||||
if ($event->page_matches("tags")) {
|
if ($event->page_matches("tags")) {
|
||||||
$this->theme->set_navigation($this->build_navigation());
|
$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:
|
default:
|
||||||
case 'map':
|
case 'map':
|
||||||
$this->theme->set_heading("Tag Map");
|
$this->theme->set_heading("Tag Map");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user