@@ -98,7 +98,7 @@ org.opengrok.indexer.web.Util"
98
98
response. sendError(HttpServletResponse . SC_NOT_FOUND );
99
99
return ;
100
100
}
101
- request. setAttribute(PageConfig . HISTORY_JSP_ATTR_NAME , hist);
101
+ request. setAttribute(cfg . getHistoryAttrName() , hist);
102
102
}
103
103
}
104
104
% >
@@ -109,7 +109,8 @@ include file="/httpheader.jspf"
109
109
% >
110
110
<%
111
111
{
112
- if ((request. getAttribute(PageConfig . HISTORY_JSP_ATTR_NAME )) != null ) {
112
+ PageConfig cfg = PageConfig . get(request);
113
+ if ((request. getAttribute(cfg. getHistoryAttrName())) != null ) {
113
114
% >
114
115
<body >
115
116
<script type =" text/javascript" >/* <![CDATA[ */
@@ -124,7 +125,8 @@ include file="/httpheader.jspf"
124
125
}
125
126
}
126
127
{
127
- if (request. getAttribute(PageConfig . HISTORY_JSP_ATTR_NAME ) != null ) {
128
+ PageConfig cfg = PageConfig . get(request);
129
+ if (request. getAttribute(cfg. getHistoryAttrName()) != null ) {
128
130
% >
129
131
<%@include file =" /pageheader.jspf" %>
130
132
<%
@@ -136,7 +138,7 @@ include file="/httpheader.jspf"
136
138
String path = cfg. getPath();
137
139
138
140
History hist;
139
- if ((hist = (History ) request. getAttribute(PageConfig . HISTORY_JSP_ATTR_NAME )) != null ) {
141
+ if ((hist = (History ) request. getAttribute(cfg . getHistoryAttrName() )) != null ) {
140
142
141
143
int startIndex = cfg. getStartIndex();
142
144
int max = cfg. getMaxItems();
@@ -155,7 +157,8 @@ include file="/httpheader.jspf"
155
157
}
156
158
}
157
159
{
158
- if (request. getAttribute(PageConfig . HISTORY_JSP_ATTR_NAME ) != null ) {
160
+ PageConfig cfg = PageConfig . get(request);
161
+ if (request. getAttribute(cfg. getHistoryAttrName()) != null ) {
159
162
% >
160
163
<% @
161
164
@@ -170,7 +173,8 @@ include file="/minisearch.jspf"
170
173
String context = request. getContextPath();
171
174
String path = cfg. getPath();
172
175
History hist;
173
- if ((hist = (History ) request. getAttribute(PageConfig . HISTORY_JSP_ATTR_NAME )) != null ) {
176
+
177
+ if ((hist = (History ) request. getAttribute(cfg. getHistoryAttrName())) != null ) {
174
178
RuntimeEnvironment env = cfg. getEnv();
175
179
String uriEncodedName = cfg. getUriEncodedPath();
176
180
Project project = cfg. getProject();
0 commit comments