roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ghu...@apache.org
Subject svn commit: r1603369 - /roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/StylesheetEdit.java
Date Wed, 18 Jun 2014 08:36:08 GMT
Author: ghuber
Date: Wed Jun 18 08:36:08 2014
New Revision: 1603369

URL: http://svn.apache.org/r1603369
Log:
Make sure mobile template gets the right code, not standard template code.

Modified:
    roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/StylesheetEdit.java

Modified: roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/StylesheetEdit.java
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/StylesheetEdit.java?rev=1603369&r1=1603368&r2=1603369&view=diff
==============================================================================
--- roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/StylesheetEdit.java
(original)
+++ roller/trunk/app/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/StylesheetEdit.java
Wed Jun 18 08:36:08 2014
@@ -113,11 +113,13 @@ public class StylesheetEdit extends UIAc
                     standardTemplateCode.setTemplateLanguage(stylesheetTmpl
                             .getTemplateLanguage());
 
+                    TemplateCode tCode = stylesheet
+                            .getTemplateCode(MOBILE_THEME_TYPE);
+
                     WeblogThemeTemplateCode mobileTemplateCode = new WeblogThemeTemplateCode(
                             stylesheetTmpl.getId(), MOBILE_THEME_TYPE);
-                    mobileTemplateCode
-                            .setTemplate(stylesheetTmpl.getContents());
-                    mobileTemplateCode.setTemplateLanguage(stylesheetTmpl
+                    mobileTemplateCode.setTemplate(tCode.getTemplate());
+                    mobileTemplateCode.setTemplateLanguage(tCode
                             .getTemplateLanguage());
 
                     WebloggerFactory.getWeblogger().getWeblogManager()



Mime
View raw message