Skip to content

Commit

Permalink
fix: bad redirection
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Jun 15, 2020
1 parent 8bb3c3d commit 3ba9748
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ function plugin_init_formcreator() {
}

$pages = [
'front/reservationitem.php' => FORMCREATOR_ROOTDOC . '/plugins/formcreator/front/reservationitem.php',
'front/helpdesk.faq.php' => FORMCREATOR_ROOTDOC . '/plugins/formcreator/front/wizard.php',
'front/ticket.php' => FORMCREATOR_ROOTDOC . '/plugins/formcreator/front/issue.php',
'front/reservationitem.php' => FORMCREATOR_ROOTDOC . '/front/reservationitem.php',
'front/helpdesk.faq.php' => FORMCREATOR_ROOTDOC . '/front/wizard.php',
'front/ticket.php' => FORMCREATOR_ROOTDOC . '/front/issue.php',
];
foreach ($pages as $srcPage => $dstPage) {
if (strpos($_SERVER['REQUEST_URI'], $srcPage) !== false && strpos($_SERVER['REQUEST_URI'], $dstPage) === false) {
Html::redirect(FORMCREATOR_ROOTDOC . $dstPage);
Html::redirect($dstPage);
break;
}
}
Expand Down

0 comments on commit 3ba9748

Please sign in to comment.