Return url if pretty is not found
This commit is contained in:
parent
b0a3cd166a
commit
80d171daf8
1 changed files with 1 additions and 1 deletions
|
@ -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 '';
|
||||||
|
|
Loading…
Reference in a new issue