1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 10:46:49 +00:00

remove $link

This commit is contained in:
Andrew Dolgov
2013-04-17 16:23:15 +04:00
parent aca75cb5cb
commit 6322ac79a0
80 changed files with 1624 additions and 1727 deletions

View File

@@ -2,8 +2,6 @@
class Example extends Plugin {
// Demonstrates how to add a separate panel to the preferences screen and inject Javascript/save data using Dojo forms.
private $link;
private $host;
function about() {
@@ -15,14 +13,13 @@ class Example extends Plugin {
}
function init($host) {
$this->link = $host->get_link();
$this->host = $host;
$host->add_hook($host::HOOK_PREFS_TAB, $this);
}
function save() {
$example_value = db_escape_string($this->link, $_POST["example_value"]);
$example_value = db_escape_string( $_POST["example_value"]);
$this->host->set($this, "example", $example_value);