Skip to content

Commit 12844a3

Browse files
Stian Sigvartsenbrianchandotcom
authored andcommitted
LPS-135470 SF
1 parent 9d76768 commit 12844a3

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

portal-impl/src/com/liferay/portal/events/ServicePreAction.java

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -887,10 +887,6 @@ private ThemeDisplay _initThemeDisplay(
887887
return null;
888888
}
889889

890-
// Portal URL
891-
892-
String portalURL = PortalUtil.getPortalURL(httpServletRequest);
893-
894890
boolean signedIn = !user.isDefaultUser();
895891

896892
if (PropsValues.BROWSER_CACHE_DISABLED ||
@@ -916,15 +912,6 @@ private ThemeDisplay _initThemeDisplay(
916912
realUser = UserLocalServiceUtil.getUserById(realUserId.longValue());
917913
}
918914

919-
String doAsUserId = ParamUtil.getString(
920-
httpServletRequest, "doAsUserId");
921-
String doAsUserLanguageId = ParamUtil.getString(
922-
httpServletRequest, "doAsUserLanguageId");
923-
long doAsGroupId = ParamUtil.getLong(httpServletRequest, "doAsGroupId");
924-
925-
long refererGroupId = ParamUtil.getLong(
926-
httpServletRequest, "refererGroupId");
927-
928915
long refererPlid = ParamUtil.getLong(httpServletRequest, "refererPlid");
929916

930917
if ((refererPlid != 0) &&
@@ -978,7 +965,6 @@ private ThemeDisplay _initThemeDisplay(
978965
}
979966

980967
Layout layout = null;
981-
List<Layout> layouts = null;
982968

983969
long plid = ParamUtil.getLong(httpServletRequest, "p_l_id");
984970

@@ -1057,6 +1043,21 @@ private ThemeDisplay _initThemeDisplay(
10571043
}
10581044
}
10591045

1046+
// Portal URL
1047+
1048+
String portalURL = PortalUtil.getPortalURL(httpServletRequest);
1049+
1050+
String doAsUserId = ParamUtil.getString(
1051+
httpServletRequest, "doAsUserId");
1052+
String doAsUserLanguageId = ParamUtil.getString(
1053+
httpServletRequest, "doAsUserLanguageId");
1054+
long doAsGroupId = ParamUtil.getLong(httpServletRequest, "doAsGroupId");
1055+
1056+
long refererGroupId = ParamUtil.getLong(
1057+
httpServletRequest, "refererGroupId");
1058+
1059+
List<Layout> layouts = null;
1060+
10601061
String ppid = ParamUtil.getString(httpServletRequest, "p_p_id");
10611062

10621063
Boolean redirectToDefaultLayout =

0 commit comments

Comments
 (0)