Index: trunk/wp-content/plugins/xpressme/include/notify_functions.php
===================================================================
--- trunk/wp-content/plugins/xpressme/include/notify_functions.php	(revision 88)
+++ trunk/wp-content/plugins/xpressme/include/notify_functions.php	(revision 91)
@@ -1,9 +1,12 @@
 <?php
 	
-function onaction_publish_post_notify($post_id)
+function onaction_publish_post_notify($new_status, $old_status, $post)
 {
-	include_once ABSPATH . '/include/notification.inc.sub.php';
-	do_PostNotifications($post_id,'newpost');
+	if ($new_status == 'publish'){
+		include_once dirname(__FILE__) . '/notification.inc.sub.php';
+		do_PostNotifications($post->ID,'newpost');
+	}
 }
+
 function onaction_edit_post_notify($post_id)
 {
Index: trunk/wp-content/plugins/xpressme/xpressme.php
===================================================================
--- trunk/wp-content/plugins/xpressme/xpressme.php	(revision 88)
+++ trunk/wp-content/plugins/xpressme/xpressme.php	(revision 91)
@@ -39,5 +39,5 @@
 //XOOPS notifiction
 require_once dirname( __FILE__ ).'/include/notify_functions.php' ;
-add_action("private_to_published",	"onaction_publish_post_notify");
+add_action("transition_post_status",	"onaction_publish_post_notify" ,10 , 3);
 //	add_action("edit_post",	"onaction_edit_post_notify");
 add_action("comment_post",	"onaction_comment_notify");
