From: <vb...@us...> - 2003-09-12 10:58:20
|
Update of /cvsroot/webnotes/webnotes In directory sc8-pr-cvs1:/tmp/cvs-serv19810 Modified Files: note_add.php Log Message: M note_add.php - Call the email notification function. M core/database_api.php - Added support for getting the id of the inserted record. M core/email_api.php - Email sending function. M core/note_api.php - Change note_add() to return the id of the inserted record. Index: note_add.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/note_add.php,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- note_add.php 21 Sep 2002 02:44:32 -0000 1.18 +++ note_add.php 12 Sep 2003 10:58:16 -0000 1.19 @@ -20,6 +20,9 @@ ### insert note if ( 0 == $f_note_id ) { $result = note_add( $f_page_id, $f_email, $REMOTE_ADDR, $f_note); + if ( $result !== false ) { + email_note_added( $result ); + } } else { $result = note_update( $f_note_id, $f_email, $f_note ); } |