Fix isPretty returning wrong value
This commit is contained in:
parent
80d171daf8
commit
7dda115d73
1 changed files with 2 additions and 1 deletions
|
@ -16,8 +16,9 @@ class URL
|
||||||
|
|
||||||
public function isPretty(): bool
|
public function isPretty(): bool
|
||||||
{
|
{
|
||||||
return !preg_match('/^\/\?.+?=.+?$/', $this->url);
|
return preg_match('/^\/\?.+?=.+?$/', $this->url);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPermalink(): string
|
public function getPermalink(): string
|
||||||
{
|
{
|
||||||
$htaccess = preg_split('/\r\n|\r|\n/', file_get_contents(ROOT . '/.htaccess'));
|
$htaccess = preg_split('/\r\n|\r|\n/', file_get_contents(ROOT . '/.htaccess'));
|
||||||
|
|
Loading…
Reference in a new issue