mirror of
https://github.com/Mowie/Mowie
synced 2024-06-07 11:19:39 +00:00
Fixed issue if home_url was '/'
This commit is contained in:
parent
e8b972543c
commit
b74cad4aa8
|
@ -22,8 +22,9 @@ if (file_exists('config/config.yml'))
|
||||||
$page->error_reporting = E_ALL & ~E_NOTICE;
|
$page->error_reporting = E_ALL & ~E_NOTICE;
|
||||||
|
|
||||||
//Set Url
|
//Set Url
|
||||||
$page->setUrl(str_replace($MCONF['home_uri'], '', $_SERVER['REQUEST_URI']));
|
$url = str_replace_first($MCONF['home_uri'], '', $_SERVER['REQUEST_URI']);
|
||||||
$base = explode('/', str_replace($MCONF['home_uri'], '', $_SERVER['REQUEST_URI']));
|
$page->setUrl($url);
|
||||||
|
$base = explode('/', $url);
|
||||||
$page->setBaseUrl('/');
|
$page->setBaseUrl('/');
|
||||||
if (count($base) > 1)
|
if (count($base) > 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user