Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Giraffaman committed Apr 12, 2024
1 parent 32179d0 commit 8c42d20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion ext/auto_tagger/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ public function onTagSet(TagSetEvent $event): void
foreach ($results as $r) {
if ((!str_contains($r, ':')) && (!str_contains($r, '='))) {
$tmp_new_tags[] = $r;
error_log("auto-tagger: result ".$r." is metatag?");
continue;
}

Expand Down
5 changes: 3 additions & 2 deletions ext/rating/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public function onTagTermCheck(TagTermCheckEvent $event): void
{
if (preg_match($this->search_regexp, $event->term)) {
$event->metatag = true;
error_log("ratings: ".$event->metatag." is a ratings tag!");
error_log("ratings: ".$event->term." is a ratings tag!");
}
}

Expand Down Expand Up @@ -695,7 +695,8 @@ private function set_rating(int $image_id, string $rating, string $old_rating):
global $database;
if ($old_rating != $rating) {
$database->execute("UPDATE images SET rating=:rating WHERE id=:id", ['rating' => $rating, 'id' => $image_id]);
log_info("rating", "Rating for >>{$image_id} set to: ".$this->rating_to_human($rating));
#log_info("rating", "Rating for >>{$image_id} set to: ".$this->rating_to_human($rating));
error_log("rating", "Rating for >>{$image_id} set to: ".$this->rating_to_human($rating));
}
}
}

0 comments on commit 8c42d20

Please sign in to comment.