From 6322ac79a020ab584d412d782d62b2ee77d7c6cf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 17 Apr 2013 16:23:15 +0400 Subject: remove $link --- plugins/example/init.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/example/init.php') diff --git a/plugins/example/init.php b/plugins/example/init.php index 333efd92d..8deee84b4 100644 --- a/plugins/example/init.php +++ b/plugins/example/init.php @@ -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); -- cgit v1.2.3-54-g00ecf