Fix isPretty returning wrong value

This commit is contained in:
grandeljay 2022-05-28 18:02:02 +02:00
parent 80d171daf8
commit 7dda115d73

View file

@ -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'));