[core] make PageRequest->page_starts_with be less weird

This commit is contained in:
Shish 2024-04-27 01:09:41 +01:00 committed by Shish
parent 124f3ebb8d
commit f6973fd01f

View file

@ -167,7 +167,7 @@ class PageRequestEvent extends Event
public function page_starts_with(string $name): bool
{
return (count($this->args) >= 1) && ($this->args[0] == $name);
return str_starts_with($this->path, $name);
}
/**