[tips] remove old link
This commit is contained in:
parent
8c22cb1fb6
commit
72474b18dc
2 changed files with 4 additions and 10 deletions
|
@ -108,9 +108,10 @@ class Blotter extends Extension
|
||||||
private function display_blotter(): void
|
private function display_blotter(): void
|
||||||
{
|
{
|
||||||
global $database, $config;
|
global $database, $config;
|
||||||
$limit = $config->get_int("blotter_recent", 5);
|
$entries = $database->get_all(
|
||||||
$sql = 'SELECT * FROM blotter ORDER BY id DESC LIMIT ' . intval($limit);
|
'SELECT * FROM blotter ORDER BY id DESC LIMIT :limit',
|
||||||
$entries = $database->get_all($sql);
|
["limit" => $config->get_int("blotter_recent", 5)]
|
||||||
|
);
|
||||||
$this->theme->display_blotter($entries);
|
$this->theme->display_blotter($entries);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,13 +46,6 @@ class Tips extends Extension
|
||||||
text TEXT NOT NULL,
|
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);
|
$this->set_version("ext_tips_version", 2);
|
||||||
}
|
}
|
||||||
if ($this->get_version("ext_tips_version") < 2) {
|
if ($this->get_version("ext_tips_version") < 2) {
|
||||||
|
|
Reference in a new issue