[core] make PageRequest->page_starts_with be less weird
This commit is contained in:
parent
124f3ebb8d
commit
f6973fd01f
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ class PageRequestEvent extends Event
|
||||||
|
|
||||||
public function page_starts_with(string $name): bool
|
public function page_starts_with(string $name): bool
|
||||||
{
|
{
|
||||||
return (count($this->args) >= 1) && ($this->args[0] == $name);
|
return str_starts_with($this->path, $name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Reference in a new issue