[pLog-svn] r3293 - plog/trunk

mark at devel.lifetype.net mark at devel.lifetype.net
Fri Apr 28 06:45:56 GMT 2006


Author: mark
Date: 2006-04-28 06:45:55 +0000 (Fri, 28 Apr 2006)
New Revision: 3293

Modified:
   plog/trunk/wizard.php
Log:
Add a default MyLinksCategory when install through wizard.php.

Modified: plog/trunk/wizard.php
===================================================================
--- plog/trunk/wizard.php	2006-04-28 03:17:38 UTC (rev 3292)
+++ plog/trunk/wizard.php	2006-04-28 06:45:55 UTC (rev 3293)
@@ -57,6 +57,7 @@
     include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/articlecategories.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );
+    include_once( PLOG_CLASS_PATH."class/dao/mylinkscategories.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/userpermissions.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/blogcategories.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/globalarticlecategories.class.php" );
@@ -1154,7 +1155,12 @@
                                        Array(),
                                        true );
             $albums = new GalleryAlbums();
-            $albums->addAlbum( $album );            
+            $albums->addAlbum( $album );
+            
+            // add a new default mylinkscategory
+            $linksCategory = new MyLinksCategory( "General", $newblogId );
+            $linksCategories = new MyLinksCategories();
+            $linksCategories->addMyLinksCategory( $linksCategory );         
 
             // save a few things in the default configuration
             $config =& Config::getConfig();



More information about the pLog-svn mailing list