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 2005/11/15 23:05:45 UTC

svn commit: r344451 - /incubator/roller/trunk/src/org/roller/presentation/website/actions/ThemeEditorAction.java

Author: snoopdave
Date: Tue Nov 15 14:05:43 2005
New Revision: 344451

URL: http://svn.apache.org/viewcvs?rev=344451&view=rev
Log:
Merging missed changes from 1.x to trunk

Modified:
    incubator/roller/trunk/src/org/roller/presentation/website/actions/ThemeEditorAction.java

Modified: incubator/roller/trunk/src/org/roller/presentation/website/actions/ThemeEditorAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/presentation/website/actions/ThemeEditorAction.java?rev=344451&r1=344450&r2=344451&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/roller/presentation/website/actions/ThemeEditorAction.java (original)
+++ incubator/roller/trunk/src/org/roller/presentation/website/actions/ThemeEditorAction.java Tue Nov 15 14:05:43 2005
@@ -451,6 +451,13 @@
                 }
             }
             
+            // we also want to set the weblogdayid
+            WeblogTemplate dayTemplate = userMgr.getPageByName(website, "_day");
+            if(dayTemplate != null) {
+                mLogger.debug("Setting default day page to "+dayTemplate.getId());
+                website.setWeblogDayPageId(dayTemplate.getId());
+            }
+            
             // save our updated website
             userMgr.storeWebsite(website);