aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-09-10 22:24:03 +0000
committerz0rglub <z0rglub@piwigo.org>2003-09-10 22:24:03 +0000
commit637cdd1e23a6faadfea3988da80ee3648cf8999a (patch)
tree4b86f1e1ed353fb1f9c5a390b3e98f2396525b1b /picture.php
parent122ac485f7330a9544504e2355fbdf53124e5702 (diff)
Mail notification for admins
git-svn-id: http://piwigo.org/svn/trunk@85 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'picture.php')
-rw-r--r--picture.php9
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
{