[pLog-svn] r3186 - plog/trunk
mark at devel.lifetype.net
mark at devel.lifetype.net
Tue Apr 4 15:29:32 GMT 2006
Author: mark
Date: 2006-04-04 15:29:32 +0000 (Tue, 04 Apr 2006)
New Revision: 3186
Modified:
plog/trunk/wizard.php
Log:
Now, the wizard will add the default GalleryAlbum to admin (site owner) when the default blog created.
Modified: plog/trunk/wizard.php
===================================================================
--- plog/trunk/wizard.php 2006-04-04 15:19:45 UTC (rev 3185)
+++ plog/trunk/wizard.php 2006-04-04 15:29:32 UTC (rev 3186)
@@ -59,7 +59,8 @@
include_once( PLOG_CLASS_PATH."class/dao/articles.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" );
+ include_once( PLOG_CLASS_PATH."class/dao/globalarticlecategories.class.php" );
+ include_once( PLOG_CLASS_PATH."class/gallery/dao/galleryalbums.class.php" );
// table schemas
include_once( PLOG_CLASS_PATH."install/dbschemas.properties.php" );
@@ -1033,6 +1034,19 @@
$articles = new Articles();
$articles->addArticle( $article );
+ // add a new first album so that users can start uploading stuff right away
+ $t = new Timestamp();
+ $album = new GalleryAlbum( $newblogId,
+ "General",
+ "General",
+ GALLERY_RESOURCE_PREVIEW_AVAILABLE,
+ 0,
+ $t->getTimestamp(),
+ Array(),
+ true );
+ $albums = new GalleryAlbums();
+ $albums->addAlbum( $album );
+
// save a few things in the default configuration
$config =& Config::getConfig();
// default blog id
More information about the pLog-svn
mailing list