Notifications now send emails when a comment is published. It won't

send the email if the comment status is not published.  This gives the
administrator to moderate the comments prior to being published.
This commit is contained in:
Tim Almdal
2009-02-02 15:41:47 +00:00
parent 89edd4d3ff
commit ef58ac91e8
5 changed files with 39 additions and 16 deletions

View File

@@ -0,0 +1,19 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<html>
<head>
<title><?= $subject ?> </title>
</head>
<body>
<h2><?= sprintf(t("A new comment was added by %s"), $author); ?></h2>
<table>
<tr>
<td><?= t("Comment:") ?></td>
<td><?= $text ?></td>
</tr>
<tr>
<td><?= t("Url:") ?></td>
<td><a href="<?= $url ?>"><?= $url ?></a></td>
</tr>
</table>
</body>
</html>