diff options
author | Andrew Dolgov <[email protected]> | 2013-05-07 15:36:14 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-05-07 15:36:14 +0400 |
commit | 82076ce53113be9cc053f8740356e7e1b81e5643 (patch) | |
tree | 5eba36805f593ec7dd0aad671b5bcca0ae01cf53 /plugins/mark_button | |
parent | 66af65f14b4f3c670bb3f9ca7b1c80081f9281d1 (diff) | |
parent | 23923fb29b345c1eea5b70a6df4d30395425bf37 (diff) |
Merge branch 'master' into css-feedtree-counter
Conflicts:
tt-rss.css
Diffstat (limited to 'plugins/mark_button')
-rw-r--r-- | plugins/mark_button/init.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/mark_button/init.php b/plugins/mark_button/init.php index 4cf1c5949..971b12932 100644 --- a/plugins/mark_button/init.php +++ b/plugins/mark_button/init.php @@ -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\" @@ -36,5 +34,10 @@ class Mark_Button extends Plugin { return $marked_pic; } + + function api_version() { + return 2; + } + } ?> |