diff --git a/ext/blotter/main.php b/ext/blotter/main.php index 18dcb9af..87439c37 100644 --- a/ext/blotter/main.php +++ b/ext/blotter/main.php @@ -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); } } diff --git a/ext/tips/main.php b/ext/tips/main.php index 1b26efff..7016aa51 100644 --- a/ext/tips/main.php +++ b/ext/tips/main.php @@ -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. Donate through paypal."] - ); - $this->set_version("ext_tips_version", 2); } if ($this->get_version("ext_tips_version") < 2) {