mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
#1264 - fix redirecting if page dir is empty
git-svn-id: file:///svn/phpbb/trunk@5745 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
7e47a8ddb0
commit
9adbf3726a
1 changed files with 8 additions and 1 deletions
|
@ -1193,7 +1193,14 @@ function redirect($url)
|
||||||
// Is the uri pointing to the current directory?
|
// Is the uri pointing to the current directory?
|
||||||
if ($pathinfo['dirname'] == '.')
|
if ($pathinfo['dirname'] == '.')
|
||||||
{
|
{
|
||||||
$url = generate_board_url() . '/' . $user->page['page_dir'] . '/' . str_replace('./', '', $url);
|
if ($user->page['page_dir'])
|
||||||
|
{
|
||||||
|
$url = generate_board_url() . '/' . $user->page['page_dir'] . '/' . str_replace('./', '', $url);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$url = generate_board_url() . '/' . str_replace('./', '', $url);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue