diff options
author | z0rglub <z0rglub@piwigo.org> | 2003-09-10 22:24:03 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2003-09-10 22:24:03 +0000 |
commit | 637cdd1e23a6faadfea3988da80ee3648cf8999a (patch) | |
tree | 4b86f1e1ed353fb1f9c5a390b3e98f2396525b1b /picture.php | |
parent | 122ac485f7330a9544504e2355fbdf53124e5702 (diff) |
Mail notification for admins
git-svn-id: http://piwigo.org/svn/trunk@85 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | picture.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/picture.php b/picture.php index 403301de7..4af9ce5ed 100644 --- a/picture.php +++ b/picture.php @@ -605,6 +605,15 @@ if ( $conf['show_comments'] ) } $vtp->setVar( $handle, 'information.content', $message ); $vtp->closeSession( $handle, 'information' ); + // notification to the administrators + if ( $conf['mail_notification'] ) + { + $cat_name = get_cat_display_name( $page['cat_name'], ' > ', '' ); + $cat_name = strip_tags( $cat_name ); + if ( $page['name'] == '' ) $picture = $page['file']; + else $picture = $page['name']; + notify( 'comment', $cat_name.' > '.$picture ); + } } else { |