[rss_images] fix page matching

This commit is contained in:
Shish 2024-04-08 21:19:18 +01:00 committed by Shish
parent 4807064a65
commit 4544960a4b

View file

@ -24,7 +24,7 @@ class RSSImages extends Extension
public function onPageRequest(PageRequestEvent $event): void
{
global $config;
if ($event->page_matches("rss/images")) {
if ($event->page_starts_with("rss/images")) {
if ($event->page_matches("rss/images/{search}/{page}")) {
$search_terms = Tag::explode($event->get_arg('search'));
$page_number = int_escape($event->get_arg('page'));