diff --git a/src/classes/url.php b/src/classes/url.php index 368013db..a70b5cf6 100644 --- a/src/classes/url.php +++ b/src/classes/url.php @@ -16,8 +16,9 @@ class URL public function isPretty(): bool { - return !preg_match('/^\/\?.+?=.+?$/', $this->url); + return preg_match('/^\/\?.+?=.+?$/', $this->url); } + public function getPermalink(): string { $htaccess = preg_split('/\r\n|\r|\n/', file_get_contents(ROOT . '/.htaccess'));