[pLog-svn] r3294 - plog/trunk/class/summary/action

mark at devel.lifetype.net mark at devel.lifetype.net
Fri Apr 28 06:54:01 GMT 2006


Author: mark
Date: 2006-04-28 06:54:01 +0000 (Fri, 28 Apr 2006)
New Revision: 3294

Modified:
   plog/trunk/class/summary/action/dofinishregister.class.php
Log:
Add a new default mylinksCategory when register a new blog through the summary.php

Modified: plog/trunk/class/summary/action/dofinishregister.class.php
===================================================================
--- plog/trunk/class/summary/action/dofinishregister.class.php	2006-04-28 06:45:55 UTC (rev 3293)
+++ plog/trunk/class/summary/action/dofinishregister.class.php	2006-04-28 06:54:01 UTC (rev 3294)
@@ -9,6 +9,7 @@
     include_once( PLOG_CLASS_PATH."class/dao/userinfo.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/article.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/globalarticlecategories.class.php" );
 	include_once( PLOG_CLASS_PATH."class/summary/mail/summarymailer.class.php" );
 
@@ -182,6 +183,11 @@
                                        true );  // show the album in the interface
             $albums = new GalleryAlbums();
             $albums->addAlbum( $album );
+            
+            // add a new default mylinkscategory
+            $linksCategory = new MyLinksCategory( $locale->tr("register_default_category" ), $this->_blogInfo->getId() );
+            $linksCategories = new MyLinksCategories();
+            $linksCategories->addMyLinksCategory( $linksCategory ); 
 
             return true;
         }



More information about the pLog-svn mailing list