]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/html_mail_functions.php
Fix for wrong variable name
[mailer.git] / inc / libs / html_mail_functions.php
index 86584ac60845622c78c6343d531e8234ddbbedd3..62bc294d941e195bd9e7668648062492b832de36 100644 (file)
@@ -82,7 +82,7 @@ function insertUrlsIntoHtml ($text) {
                } // END - foreach
 
                // Now replace the URL against anchor container and pray...
-               $text = substr($text, 0, strpos($text, $check2)) . '<a href="' . generateDerefererUrl($check) . '" target="_blank">' . $check . '</a>' . substr($text, strpos($text, $check2) + strlen($check));
+               $text = substr($text, 0, strpos($text, $check2)) . '<a href="' . generateDereferrerUrl($check) . '" target="_blank">' . $check . '</a>' . substr($text, strpos($text, $check2) + strlen($check));
 
                // Finally remove the url from testing string (or we have a loop and maybe server overload!)
                $test = substr($test, strpos($test, $check) + strlen($check));
@@ -148,7 +148,7 @@ function insertUrlsIntoHtml ($text) {
        } // END - foreach
 
        // Replace new-lines agains <br />-s and finally compile possible own HTML tags out...
-       return preCompileCode(str_replace(chr(10), "<br />\n", $text));
+       return preCompileCode(str_replace(PHP_EOL, '<br />' . PHP_EOL, $text));
 }
 
 // [EOF]