A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / libs / yoomedia_functions.php
index 69d4b301f79e44fe70cec8ae52be93d5311a140f..1eeaa3ef5b3736247f4e7ab280060ccf549c93cc 100644 (file)
@@ -172,13 +172,13 @@ function YOOMEDIA_PARSE_RESPONSE ($response, $type) {
        return $result;
 }
 
-// Prepares a bonus mail for delivery. Works only if extension "bonus" is active
+// Prepares a bonus mail for delivery. Works only if extension 'bonus' is active
 function YOOMEDIA_PREPARE_MAIL_DELIVERY ($data) {
        // Is this an admin?
        if (!IS_ADMIN()) {
                // Abort here
                return false;
-       } elseif (!EXT_IS_ACTIVE("bonus")) {
+       } elseif (!EXT_IS_ACTIVE('bonus')) {
                // Abort here
                return false;
        }
@@ -199,7 +199,7 @@ function YOOMEDIA_PREPARE_MAIL_DELIVERY ($data) {
        $data['all'] = TRANSLATE_COMMA(GET_TOTAL_RECEIVERS());
 
        // Add categories
-       $data['categories'] = ADD_CATEGORY_OPTIONS("normal");
+       $data['categories'] = ADD_CATEGORY_OPTIONS('normal');
 
        // Load template
        LOAD_TEMPLATE("admin_send_yoomedia", false, $data);
@@ -211,7 +211,7 @@ function YOOMEDIA_SEND_BONUS_MAIL ($data, $mode) {
        if (!IS_ADMIN()) {
                // Abort here
                return false;
-       } elseif (!EXT_IS_ACTIVE("bonus")) {
+       } elseif (!EXT_IS_ACTIVE('bonus')) {
                // Abort here
                return false;
        }
@@ -220,8 +220,8 @@ function YOOMEDIA_SEND_BONUS_MAIL ($data, $mode) {
        $data['receiver'] = 0;
 
        // HTML or normal? (normal is default...)
-       $type = "t";
-       if (($mode == "html") && (EXT_IS_ACTIVE("html"))) $type = "h";
+       $type = 't';
+       if (($mode == 'html') && (EXT_IS_ACTIVE('html_mail'))) $type = 'h';
 
        // Auto-generate URL
        $data['url'] = sprintf("http://www.yoomedia.de/code/%s-mail.php?id=%s&sid=%s",
@@ -345,11 +345,11 @@ function YOOMEDIA_RELOAD_LOCK ($data, $mode) {
 function YOOMEDIA_CONVERT_MODE ($mode) {
        // Convert mode for normal/html
        switch ($mode) {
-               case "normal":
+               case 'normal':
                        $mode = "textmail";
                        break;
 
-               case "html":
+               case 'html':
                        $mode = "htmlmail";
                        break;
        } // END - switch