}
// Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
if (isset($_POST['ok']))
{
$_POST['text'] = COMPILE_CODE($_POST['text']);
// Load template
- $msg = LOAD_EMAIL_TEMPLATE($template, $_POST['text'], $id);
+ $msg = LOAD_EMAIL_TEMPLATE($template, array('text' => $_POST['text']), $id);
// ... and send it away!
SEND_NEWSLETTER($email, $_POST['subject'], $msg, $_POST['mode']);