This commit is contained in:
Shish 2020-10-24 22:16:18 +01:00
parent 583cf6751a
commit c11f0dafd0
3 changed files with 22 additions and 6 deletions

View file

@ -86,7 +86,9 @@ class Image
{ {
if (!is_null($row)) { if (!is_null($row)) {
foreach ($row as $name => $value) { foreach ($row as $name => $value) {
if(is_numeric($name)) continue; if (is_numeric($name)) {
continue;
}
// some databases use table.name rather than name // some databases use table.name rather than name
$name = str_replace("images.", "", $name); $name = str_replace("images.", "", $name);

View file

@ -1,10 +1,23 @@
<?php declare(strict_types=1); <?php declare(strict_types=1);
use \MicroHTML\HTMLElement; use \MicroHTML\HTMLElement;
function TAGS(...$args) {return new HTMLElement("tags", $args);}
function TAG(...$args) {return new HTMLElement("tag", $args);} function TAGS(...$args)
function POSTS(...$args) {return new HTMLElement("posts", $args);} {
function POST(...$args) {return new HTMLElement("post", $args);} return new HTMLElement("tags", $args);
}
function TAG(...$args)
{
return new HTMLElement("tag", $args);
}
function POSTS(...$args)
{
return new HTMLElement("posts", $args);
}
function POST(...$args)
{
return new HTMLElement("post", $args);
}
class DanbooruApi extends Extension class DanbooruApi extends Extension

View file

@ -58,7 +58,8 @@ class PoolCreationEvent extends Event
} }
} }
class PoolDeletionEvent extends Event { class PoolDeletionEvent extends Event
{
public $pool_id; public $pool_id;
public function __construct(int $pool_id) public function __construct(int $pool_id)