debug_report_bug() should be used as a replacement for app_die() calls
[mailer.git] / inc / code-functions.php
index 6670ed1cf6c5c07494969467e34d9acf7359860c..4f4156fe351c21beccfb1dbc8d926986c0c80cfe 100644 (file)
@@ -52,7 +52,7 @@ function getCode ($key) {
        // Is the key set?
        if (!isCodeSet($key)) {
                // Abort here
-               debug_report_bug(sprintf("%s[%s:] Code %s is not set.",
+               debug_report_bug(__FUNCTION__, __LINE__, sprintf("%s[%s:] Code %s is not set.",
                        __FUNCTION__,
                        __LINE__,
                        $key