roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r545667 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/WeblogTemplate.java
Date Sat, 09 Jun 2007 00:11:50 GMT
Author: agilliland
Date: Fri Jun  8 17:11:49 2007
New Revision: 545667

URL: http://svn.apache.org/viewvc?view=rev&rev=545667
Log:
the proper way to get templates is through the weblog theme, not the weblog getPageBy methods.


Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/WeblogTemplate.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/WeblogTemplate.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/WeblogTemplate.java?view=diff&rev=545667&r1=545666&r2=545667
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/WeblogTemplate.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/WeblogTemplate.java
Fri Jun  8 17:11:49 2007
@@ -85,7 +85,7 @@
     public ThemeTemplate getDecorator() {
         if(decoratorName != null && !id.equals(decoratorName)) {
             try {
-                return weblog.getPageByName(decoratorName);
+                return weblog.getTheme().getTemplateByName(decoratorName);
             } catch (WebloggerException ex) {
                 log.error("Error getting decorator["+decoratorName+"] "+
                         "for template "+id);



Mime
View raw message