]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/example/init.php
remove $link
[tt-rss.git] / plugins / example / init.php
index 333efd92da7705c8760e3daa033f2adf3834c06b..8deee84b49e0aa20718149948b2790a14c73b97e 100644 (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);