bumps
This commit is contained in:
@ -43,7 +43,7 @@ class TagToolsTest extends ShimmiePHPUnitTestCase
|
||||
send_event(new UserLoginEvent(User::by_name(self::$admin_name)));
|
||||
$database->execute(
|
||||
"INSERT INTO tags(tag, count) VALUES(:tag, :count)",
|
||||
["tag"=>"tes$ts", "count"=>42]
|
||||
["tag" => "tes$ts", "count" => 42]
|
||||
);
|
||||
|
||||
// Fix
|
||||
@ -54,7 +54,7 @@ class TagToolsTest extends ShimmiePHPUnitTestCase
|
||||
0,
|
||||
$database->get_one(
|
||||
"SELECT count FROM tags WHERE tag = :tag",
|
||||
["tag"=>"tes$ts"]
|
||||
["tag" => "tes$ts"]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ use function MicroHTML\INPUT;
|
||||
|
||||
class TagToolsTheme extends Themelet
|
||||
{
|
||||
protected function button(string $name, string $action, bool $protected=false): string
|
||||
protected function button(string $name, string $action, bool $protected = false): string
|
||||
{
|
||||
$c_protected = $protected ? " protected" : "";
|
||||
$html = make_form(make_link("admin/$action"), "POST", false, "admin$c_protected");
|
||||
@ -39,7 +39,7 @@ class TagToolsTheme extends Themelet
|
||||
|
||||
$html = (string)SHM_SIMPLE_FORM(
|
||||
"admin/set_tag_case",
|
||||
INPUT(["type"=>'text', "name"=>'tag', "placeholder"=>'Enter tag with correct case', "autocomplete"=>'off']),
|
||||
INPUT(["type" => 'text', "name" => 'tag', "placeholder" => 'Enter tag with correct case', "autocomplete" => 'off']),
|
||||
SHM_SUBMIT('Set Tag Case'),
|
||||
);
|
||||
$page->add_block(new Block("Set Tag Case", $html));
|
||||
|
Reference in New Issue
Block a user