You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2006/10/14 03:50:48 UTC
svn commit: r463880 -
/incubator/roller/trunk/src/org/apache/roller/business/ThemeManagerImpl.java
Author: agilliland
Date: Fri Oct 13 18:50:47 2006
New Revision: 463880
URL: http://svn.apache.org/viewvc?view=rev&rev=463880
Log:
we load themes from the "themes.dir" location now, so that themes can be maintained outside of the webapp.
Modified:
incubator/roller/trunk/src/org/apache/roller/business/ThemeManagerImpl.java
Modified: incubator/roller/trunk/src/org/apache/roller/business/ThemeManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/business/ThemeManagerImpl.java?view=diff&rev=463880&r1=463879&r2=463880
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/business/ThemeManagerImpl.java (original)
+++ incubator/roller/trunk/src/org/apache/roller/business/ThemeManagerImpl.java Fri Oct 13 18:50:47 2006
@@ -266,12 +266,10 @@
Map themes = new HashMap();
- // NOTE: we need to figure out how to get the roller context path
- String themespath = RollerConfig.getProperty("context.realPath");
- if(themespath.endsWith(File.separator))
- themespath += "themes";
- else
- themespath += File.separator + "themes";
+ String themespath = RollerConfig.getProperty("themes.dir");
+ if(themespath.endsWith(File.separator)) {
+ themespath.substring(0, themespath.length() - 1);
+ }
// first, get a list of the themes available
File themesdir = new File(themespath);