Return url if pretty is not found

This commit is contained in:
grandeljay 2022-05-28 17:42:48 +02:00
parent b0a3cd166a
commit 80d171daf8

View file

@ -55,7 +55,7 @@ class URL
public function getPretty(): string public function getPretty(): 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'));
$pretty_url = ''; $pretty_url = $this->url;
if (!$this->url) { if (!$this->url) {
return ''; return '';