format
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user