[tips] remove old link

This commit is contained in:
Shish 2024-02-11 11:42:49 +00:00
parent 8c22cb1fb6
commit 72474b18dc
2 changed files with 4 additions and 10 deletions

View file

@ -108,9 +108,10 @@ class Blotter extends Extension
private function display_blotter(): void
{
global $database, $config;
$limit = $config->get_int("blotter_recent", 5);
$sql = 'SELECT * FROM blotter ORDER BY id DESC LIMIT ' . intval($limit);
$entries = $database->get_all($sql);
$entries = $database->get_all(
'SELECT * FROM blotter ORDER BY id DESC LIMIT :limit',
["limit" => $config->get_int("blotter_recent", 5)]
);
$this->theme->display_blotter($entries);
}
}

View file

@ -46,13 +46,6 @@ class Tips extends Extension
text TEXT NOT NULL,
");
$database->execute(
"
INSERT INTO tips (enable, image, text)
VALUES (:enable, :image, :text)",
["enable" => true, "image" => "coins.png", "text" => "Do you like this extension? Please support us for developing new ones. <a href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8235933\" target=\"_blank\">Donate through paypal</a>."]
);
$this->set_version("ext_tips_version", 2);
}
if ($this->get_version("ext_tips_version") < 2) {