Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jgambarios authored Apr 27, 2017
1 parent dbfe631 commit cfdeabb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.liferay.portlet.JSPPortlet;
import com.liferay.portlet.PortletURLImpl;
import com.liferay.portlet.StrutsPortlet;
import com.liferay.portlet.VelocityPortlet;

import java.io.Serializable;
import java.util.ArrayList;
Expand Down Expand Up @@ -109,7 +110,9 @@ public String getUrl(MenuContext menuContext) throws ClassNotFoundException {

Logger.debug(MenuResource.class, "### getPortletId" + menuContext.getPortletId());
Logger.debug(MenuResource.class, "### portletClass" + portletClass);
if (StrutsPortlet.class.isAssignableFrom(classs) || JSPPortlet.class.isAssignableFrom(classs)) {
if ( StrutsPortlet.class.isAssignableFrom(classs)
|| JSPPortlet.class.isAssignableFrom(classs)
|| VelocityPortlet.class.isAssignableFrom(classs) ) {
PortletURLImpl portletURLImpl = new PortletURLImpl(menuContext.getHttpServletRequest(),
menuContext.getPortletId(), menuContext.getLayout().getId(), false);
return portletURLImpl.toString() + "&dm_rlout=1&r=" + System.currentTimeMillis();
Expand Down

0 comments on commit cfdeabb

Please sign in to comment.