]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/mark_button/init.php
remove $link
[tt-rss.git] / plugins / mark_button / init.php
index 4cf1c5949db0b7a1c4c7adf3dc407ed9ec6f3451..1ed2ea43899db2ad7c0ff73c667ab53d168814fe 100644 (file)
@@ -1,10 +1,8 @@
 <?php
 class Mark_Button extends Plugin {
-       private $link;
        private $host;
 
        function init($host) {
-               $this->link = $host->get_link();
                $this->host = $host;
 
                $host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
@@ -20,7 +18,7 @@ class Mark_Button extends Plugin {
                $marked_pic = "";
                $id = $line["id"];
 
-               if (get_pref($this->link, "COMBINED_DISPLAY_MODE")) {
+               if (get_pref( "COMBINED_DISPLAY_MODE")) {
                        if (sql_bool_to_bool($line["marked"])) {
                                $marked_pic = "<img
                                        src=\"images/mark_set.svg\"