Skip to content

Commit

Permalink
LPS-64405 simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Mar 31, 2016
1 parent 95c4c25 commit 5b6b3d1
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -303,16 +303,14 @@ public long copyFromLive(PortletRequest portletRequest, Portlet portlet)
ThemeDisplay themeDisplay = (ThemeDisplay)portletRequest.getAttribute(
WebKeys.THEME_DISPLAY);

long scopeGroupId = PortalUtil.getScopeGroupId(portletRequest);

long plid = ParamUtil.getLong(portletRequest, "plid");

Map<String, String[]> parameterMap =
ExportImportConfigurationParameterMapFactory.buildParameterMap(
portletRequest);

return publishPortlet(
themeDisplay.getUserId(), scopeGroupId, plid,
themeDisplay.getUserId(), themeDisplay.getScopeGroupId(), plid,
portlet.getPortletId(), parameterMap, true);
}

Expand Down Expand Up @@ -1672,16 +1670,14 @@ public long publishToLive(PortletRequest portletRequest, Portlet portlet)
ThemeDisplay themeDisplay = (ThemeDisplay)portletRequest.getAttribute(
WebKeys.THEME_DISPLAY);

long scopeGroupId = PortalUtil.getScopeGroupId(portletRequest);

long plid = ParamUtil.getLong(portletRequest, "plid");

Map<String, String[]> parameterMap =
ExportImportConfigurationParameterMapFactory.buildParameterMap(
portletRequest);

return publishPortlet(
themeDisplay.getUserId(), scopeGroupId, plid,
themeDisplay.getUserId(), themeDisplay.getScopeGroupId(), plid,
portlet.getPortletId(), parameterMap, false);
}

Expand Down

0 comments on commit 5b6b3d1

Please sign in to comment.