X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-send_newsletter.php;h=285fc0f0592fae93d72367f5ccd3090008bf5bdd;hp=d63e71c103e58c6c64c82d8637a21ddb7a2c4150;hb=a090e351c49fe021fb3064325694da03402332e0;hpb=f212df3d9d1d3c7f8632040130be9e7160980de6 diff --git a/inc/modules/admin/what-send_newsletter.php b/inc/modules/admin/what-send_newsletter.php index d63e71c103..285fc0f059 100644 --- a/inc/modules/admin/what-send_newsletter.php +++ b/inc/modules/admin/what-send_newsletter.php @@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { } // Add description as navigation point -ADD_DESCR("admin", __FILE__); +ADD_DESCR('admin', __FILE__); if (IS_FORM_SENT()) { $result = SQL_QUERY("SELECT userid, email @@ -54,13 +54,13 @@ ORDER BY userid ASC", __FILE__, __LINE__); // Members are available so we can send out the newsletter! while ($content = SQL_FETCHARRAY($result)) { // Construct mail... - $template = "newsletter"; + $template = 'newsletter'; // Check for extension and sending-mode - if (!EXT_IS_ACTIVE("html_mail", true) && (REQUEST_POST('mode') == "html")) { + if (!EXT_IS_ACTIVE('html_mail', true) && (REQUEST_POST('mode') == 'html')) { // Set mode to text mode REQUEST_POST('mode') == "text"; - } elseif (REQUEST_POST('mode') == "html") { + } elseif (REQUEST_POST('mode') == 'html') { // Set HTML templates $template = "newsletter_html"; } @@ -79,13 +79,13 @@ ORDER BY userid ASC", __FILE__, __LINE__); SQL_FREERESULT($result); // Output message - LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_NL_SEND_DONE')); + LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_NL_SEND_DONE')); } } else { // Copy data into constants for the template and load it // @TODO Rewrite this constant define('_DATESTAMP', MAKE_DATETIME(time(), "3")); - if (EXT_IS_ACTIVE("html_mail")) { + if (EXT_IS_ACTIVE('html_mail')) { // Load template with HTML mode LOAD_TEMPLATE("admin_newsletter"); } else {