You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/06/05 18:05:16 UTC

svn commit: r411839 - /incubator/roller/branches/roller_3.0/src/org/apache/roller/business/ThemeManagerImpl.java

Author: snoopdave
Date: Mon Jun  5 09:05:16 2006
New Revision: 411839

URL: http://svn.apache.org/viewvc?rev=411839&view=rev
Log:
Don't use underbars in links when loading themes

Modified:
    incubator/roller/branches/roller_3.0/src/org/apache/roller/business/ThemeManagerImpl.java

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/business/ThemeManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/business/ThemeManagerImpl.java?rev=411839&r1=411838&r2=411839&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/business/ThemeManagerImpl.java (original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/business/ThemeManagerImpl.java Mon Jun  5 09:05:16 2006
@@ -281,13 +281,19 @@
                 continue;
             }
 
+            // Strip "_" from to form link
+            String template_link = template_name;
+            if (template_name.startsWith("_") && template_name.length() > 1) {
+                template_link = template_link.substring(1);
+            }
+            
             // construct ThemeTemplate representing this file
             theme_template = new ThemeTemplate(
                     theme_name+":"+template_name,
                     template_name,
                     template_name,
                     new String(chars),
-                    template_name,
+                    template_link,
                     new Date(template_file.lastModified()));
 
             // add it to the theme