Skip to content

Commit

Permalink
unacms#2504 Mobile apps: redirect loop error when splash is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTr committed Dec 11, 2019
1 parent 47c7645 commit c7f09e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
require_once('./inc/header.inc.php');
require_once(BX_DIRECTORY_PATH_INC . "profiles.inc.php");

if (!isLogged() && getParam('sys_site_splash_enabled')) {
if (!isLogged() && getParam('sys_site_splash_enabled') && false === strpos($_SERVER['HTTP_USER_AGENT'], 'UNAMobileApp')) {
require_once("./splash.php");
exit;
}
Expand Down

0 comments on commit c7f09e6

Please sign in to comment.