diff --git a/portal-web/docroot/html/portlet/wiki/page_tabs.jsp b/portal-web/docroot/html/portlet/wiki/page_tabs.jsp
index 199b7f697fbaeca9a5e61553d14512b3a78ddb91..808a7a87741be2834ad4b58f68f01e830f4ed9d3 100644
--- a/portal-web/docroot/html/portlet/wiki/page_tabs.jsp
+++ b/portal-web/docroot/html/portlet/wiki/page_tabs.jsp
@@ -63,30 +63,19 @@ viewPageAttachmentsURL.setParameter("struts_action", "/wiki/view_page_attachment
 PortletURL viewPageActivitiesURL = PortletURLUtil.clone(viewPageDetailsURL, renderResponse);
 
 viewPageActivitiesURL.setParameter("struts_action", "/wiki/view_page_activities");
+
+String[] tabs1Names = {"details", "history", "incoming-links", "outgoing-links", "attachments"};
+String[] tabs1URLs = {viewPageDetailsURL.toString(), viewPageHistoryURL.toString(), viewPageIncomingLinksURL.toString(), viewPageOutgoingLinksURL.toString(), viewPageAttachmentsURL.toString()};
+
+if (WikiPagePermission.contains(permissionChecker, wikiPage, ActionKeys.UPDATE)) {
+	tabs1Names = ArrayUtil.append(new String[] {"content"}, tabs1Names);
+	tabs1URLs = ArrayUtil.append(new String[] {editPageURL.toString()}, tabs1URLs);
+}
 %>
 
 <%@ include file="/html/portlet/wiki/page_name.jspf" %>
 
-<c:choose>
-	<c:when test="<%= WikiPagePermission.contains(permissionChecker, wikiPage, ActionKeys.UPDATE) %>">
-		<liferay-ui:tabs
-			names="content,details,history,incoming-links,outgoing-links,attachments"
-			url0="<%= editPageURL.toString() %>"
-			url1="<%= viewPageDetailsURL.toString() %>"
-			url2="<%= viewPageHistoryURL.toString() %>"
-			url3="<%= viewPageIncomingLinksURL.toString() %>"
-			url4="<%= viewPageOutgoingLinksURL.toString() %>"
-			url5="<%= viewPageAttachmentsURL.toString() %>"
-		/>
-	</c:when>
-	<c:otherwise>
-		<liferay-ui:tabs
-			names="details,history,incoming-links,outgoing-links,attachments"
-			url0="<%= viewPageDetailsURL.toString() %>"
-			url1="<%= viewPageHistoryURL.toString() %>"
-			url2="<%= viewPageIncomingLinksURL.toString() %>"
-			url3="<%= viewPageOutgoingLinksURL.toString() %>"
-			url4="<%= viewPageAttachmentsURL.toString() %>"
-		/>
-	</c:otherwise>
-</c:choose>
\ No newline at end of file
+<liferay-ui:tabs
+	names="<%= StringUtil.merge(tabs1Names) %>"
+	urls="<%= tabs1URLs %>"
+/>
\ No newline at end of file
