This commit is contained in:
Shish
2019-11-04 00:42:06 +00:00
parent d17e207984
commit f79eafc91e
11 changed files with 32 additions and 46 deletions

View File

@ -39,13 +39,11 @@ class ShimmieApi extends Extension
$page->set_type("text/plain");
if ($event->page_matches("api/shimmie/get_tags")) {
if($event->count_args() > 0) {
if ($event->count_args() > 0) {
$tag = $event->get_arg(0);
}
elseif (isset($_GET['tag'])) {
} elseif (isset($_GET['tag'])) {
$tag = $_GET['tag'];
}
else {
} else {
$tag = null;
}
$res = $this->api_get_tags($tag);