Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Giraffaman committed Mar 23, 2024
1 parent 3aef5ce commit e3fe2fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/auto_tagger/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,20 +151,20 @@ public function onDatabaseUpgrade(DatabaseUpgradeEvent $event): void
public function onTagSet(TagSetEvent $event): void
{
error_log("auto-tagger: tag set!");
foreach($nt in $event->new_tags) {
foreach($event->new_tags as $nt) {
error_log("new tag: ".$nt);
}
foreach($ot in $event->old_tags) {
foreach($event->new_tags as $ot) {
error_log("old tag: ".$ot);
}
foreach($mt in $event->metatags) {
foreach($event->new_tags as $mt) {
error_log("meta tag: ".$mt);
}
$results = $this->apply_auto_tags($event->new_tags);
if (!empty($results)) {
$event->new_tags = $results;
error_log("auto-tagger: results");
foreach($r in $results) {
foreach($results as $r) {
error_log($r);
}
}
Expand Down

0 comments on commit e3fe2fc

Please sign in to comment.