diff options
Diffstat (limited to 'plugins/note')
-rw-r--r-- | plugins/note/init.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/note/init.php b/plugins/note/init.php index f95ba9fa8..28d3c8c3a 100644 --- a/plugins/note/init.php +++ b/plugins/note/init.php @@ -1,9 +1,6 @@ <?php class Note extends Plugin { - /* @var PluginHost $host */ - private $host; - function about() { return array(null, "Adds support for setting article notes", @@ -11,8 +8,6 @@ class Note extends Plugin { } function init($host) { - $this->host = $host; - $host->add_hook($host::HOOK_ARTICLE_BUTTON, $this); } @@ -26,7 +21,7 @@ class Note extends Plugin { style='cursor : pointer' title='".__('Edit article note')."'>note</i>"; } - function edit() { + function edit() : void { $id = clean($_REQUEST['id']); $sth = $this->pdo->prepare("SELECT note FROM ttrss_user_entries WHERE @@ -54,7 +49,7 @@ class Note extends Plugin { <?php } - function setNote() { + function setNote() : void { $id = (int)clean($_REQUEST["id"]); $note = clean($_REQUEST["note"]); |