mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/16138] Eliminate redundant parameters from board URLs
Minor fixes after review PHPBB3-16138
This commit is contained in:
parent
adacf21edb
commit
62f59fa59d
1 changed files with 7 additions and 9 deletions
|
@ -42,9 +42,9 @@ $submit = $request->is_set_post('post') && !$refresh && !$preview;
|
||||||
$mode = $request->variable('mode', '');
|
$mode = $request->variable('mode', '');
|
||||||
|
|
||||||
// We need to choose which of the url parameters we must trust and ignore the others
|
// We need to choose which of the url parameters we must trust and ignore the others
|
||||||
$forum_id = 0;
|
$forum_id = 0;
|
||||||
$topic_id = 0;
|
$topic_id = 0;
|
||||||
$post_id = 0;
|
$post_id = 0;
|
||||||
|
|
||||||
switch ($mode)
|
switch ($mode)
|
||||||
{
|
{
|
||||||
|
@ -57,7 +57,6 @@ switch ($mode)
|
||||||
$forum_id = $request->variable('f', 0);
|
$forum_id = $request->variable('f', 0);
|
||||||
if (!$forum_id)
|
if (!$forum_id)
|
||||||
{
|
{
|
||||||
$user->setup('posting');
|
|
||||||
trigger_error('NO_FORUM');
|
trigger_error('NO_FORUM');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -76,7 +75,6 @@ switch ($mode)
|
||||||
}
|
}
|
||||||
if (!$topic_id || !$forum_id)
|
if (!$topic_id || !$forum_id)
|
||||||
{
|
{
|
||||||
$user->setup('posting');
|
|
||||||
trigger_error('NO_TOPIC');
|
trigger_error('NO_TOPIC');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue