summaryrefslogtreecommitdiff
path: root/plugins/example
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-17 16:23:15 +0400
committerAndrew Dolgov <[email protected]>2013-04-17 16:48:41 +0400
commit6322ac79a020ab584d412d782d62b2ee77d7c6cf (patch)
treeb2e64a140a3bc9d9ce649ee67f8a687b6511d9f4 /plugins/example
parentaca75cb5cb323535099c7aef46a78ea3cec082f2 (diff)
remove $link
Diffstat (limited to 'plugins/example')
-rw-r--r--plugins/example/init.php5
1 files changed, 1 insertions, 4 deletions
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);