Skip to content

Commit

Permalink
LPS-23088
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Nov 11, 2011
1 parent 1a2e07b commit aaf781c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ protected Object getDynamicContent(
return null;
}

request.setAttribute(WebKeys.CSS_REAL_PATH, realPath);

StringBundler sb = new StringBundler(4);

sb.append(_tempDir);
Expand Down Expand Up @@ -133,9 +131,6 @@ protected Object getDynamicContent(

String content = null;

String cssRealPath = (String)request.getAttribute(
WebKeys.CSS_REAL_PATH);

try {
if (realPath.endsWith(_CSS_EXTENSION)) {
if (_log.isInfoEnabled()) {
Expand All @@ -145,7 +140,7 @@ protected Object getDynamicContent(
content = FileUtil.read(file);

dynamicContent = DynamicCSSUtil.parseSass(
request, cssRealPath, content);
request, realPath, content);

response.setContentType(ContentTypes.TEXT_CSS);

Expand All @@ -171,7 +166,7 @@ else if (realPath.endsWith(_JSP_EXTENSION)) {
content = stringResponse.getString();

dynamicContent = DynamicCSSUtil.parseSass(
request, cssRealPath, content);
request, realPath, content);

FileUtil.write(
cacheContentTypeFile, stringResponse.getContentType());
Expand All @@ -181,7 +176,7 @@ else if (realPath.endsWith(_JSP_EXTENSION)) {
}
}
catch (Exception e) {
_log.error("Unable to parse SASS on CSS " + cssRealPath, e);
_log.error("Unable to parse SASS on CSS " + realPath, e);

if (_log.isDebugEnabled()) {
_log.debug(content);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ public interface WebKeys {

public static final String CLP_MESSAGE_LISTENERS = "CLP_MESSAGE_LISTENERS";

public static final String CSS_REAL_PATH = "CSS_REAL_PATH";

public static final String CTX = "CTX";

public static final String CTX_PATH = "CTX_PATH";
Expand Down

0 comments on commit aaf781c

Please sign in to comment.