trunk_user_register_internal_drafts.patch (714 b) added by Kristof Coomans
Description: Patch for trunk to make user/register use internal drafts
Index: kernel/user/register.php
===================================================================
--- kernel/user/register.php (revision 17744)
+++ kernel/user/register.php (working copy)
@@ -84,7 +84,7 @@
$userCreatorID = $ini->variable( "UserSettings", "UserCreatorID" );
$defaultSectionID = $ini->variable( "UserSettings", "DefaultSectionID" );
// Create object by user 14 in section 1
- $contentObject = $class->instantiate( $userCreatorID, $defaultSectionID );
+ $contentObject = $class->instantiate( $userCreatorID, $defaultSectionID, false, false, EZ_VERSION_STATUS_INTERNAL_DRAFT );
$objectID = $contentObject->attribute( 'id' );
// Store the ID in session variable