Author: Jonathan.Wage
Date: 2009-05-12 20:40:36 +0200 (Tue, 12 May 2009)
New Revision: 18188

Modified:
   
plugins/sfSympalBlogPlugin/branches/1.2/lib/sfSympalBlogPluginInstall.class.php
Log:
[1.0] sfSympalBlogPlugin: Fixing blog list template


Modified: 
plugins/sfSympalBlogPlugin/branches/1.2/lib/sfSympalBlogPluginInstall.class.php
===================================================================
--- 
plugins/sfSympalBlogPlugin/branches/1.2/lib/sfSympalBlogPluginInstall.class.php 
    2009-05-12 18:39:10 UTC (rev 18187)
+++ 
plugins/sfSympalBlogPlugin/branches/1.2/lib/sfSympalBlogPluginInstall.class.php 
    2009-05-12 18:40:36 UTC (rev 18188)
@@ -6,7 +6,6 @@
   {
     $installVars['content']['BlogPost']['teaser'] = 'This is the teaser line 
for the sample blog post';
     $installVars['content']->save();
-    $installVars['contentList']->save();
     $installVars['contentType']->save();
 
     $this->saveMenuItem($installVars['menuItem']);
@@ -23,5 +22,8 @@
     $contentTemplate->partial_path = 'sympal_blog/list';
     $contentTemplate->ContentType = $installVars['contentType'];
     $contentTemplate->save();
+
+    $installVars['contentList']->Template = $contentTemplate;
+    $installVars['contentList']->save();
   }
 }
\ No newline at end of file


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to