summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-15 06:51:10 +0300
committerAndrew Dolgov <[email protected]>2021-11-15 06:51:10 +0300
commit627702f0b2ad8eed2f92b41f1840f8b6a6227912 (patch)
tree390626258405670bd05e1adaba3dce324b2eb6af
parentcaa5fe9c1541947067114e0968be7a2a28e35bc0 (diff)
fix phpstan warnings
-rw-r--r--init.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/init.php b/init.php
index 49320e5..7b34a9f 100644
--- a/init.php
+++ b/init.php
@@ -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) {