Weiterer fix f. ccm-ldn-theme, Korrektur fest kodiereter Pfade, noch quick and very dirty!

git-svn-id: https://svn.libreccm.org/ccm/trunk@201 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2009-06-20 16:12:56 +00:00
parent 13d832807b
commit 5d5c67db9a
2 changed files with 4 additions and 3 deletions

View File

@ -28,7 +28,7 @@ public interface ThemeConstants {
// TODO: it would be nice if this value in com.arsdigita.web.URL
// was public
public final static String CCM_PREFIX = "__ccm__";
public final static String WEB_APP_NAME = "ccm-ldn-theme";
public final static String WEB_APP_NAME = "ROOT";
// The location of the sync jsp used to sync up the multiple servers.
public final static String SYNC_JSP = "sync-theme.jsp";

View File

@ -73,7 +73,8 @@ public class ThemeXSLParameterGenerator implements XSLParameterGenerator,
}
if (themeURL != null) {
return "/" + WEB_APP_NAME + "/" + CCM_PREFIX + "/" +
// return "/" + WEB_APP_NAME + "/" + CCM_PREFIX + "/" +
return "/" + CCM_PREFIX + "/" +
Web.getContext().getRequestURL().getContextPath() +
baseDir + themeURL;
} else {
@ -88,4 +89,4 @@ public class ThemeXSLParameterGenerator implements XSLParameterGenerator,
return themeURL;
}
}
}
}