diff options
author | Andrew Dolgov <[email protected]> | 2021-11-15 06:51:10 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-15 06:51:10 +0300 |
commit | 627702f0b2ad8eed2f92b41f1840f8b6a6227912 (patch) | |
tree | 390626258405670bd05e1adaba3dce324b2eb6af | |
parent | caa5fe9c1541947067114e0968be7a2a28e35bc0 (diff) |
fix phpstan warnings
-rw-r--r-- | init.php | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,6 +1,5 @@ <?php class Labels_To_Tags extends Plugin { - private $host; public function about() { return array(1.0, @@ -14,14 +13,13 @@ class Labels_To_Tags extends Plugin { } public function init( $host ) { - $this->host = $host; $host->add_hook( $host::HOOK_ARTICLE_EXPORT_FEED, $this ); } public function hook_article_export_feed( $line, $feed, $is_cat, $owner_uid ) { // get all LABELS for this article / line - $labels = Article::_get_labels($line['id'], $owner_uid); + $labels = Article::_get_labels($line['id'], $owner_uid); if (count($labels) > 0) { foreach ($labels as $label) { |