]> git.mxchange.org Git - mailer.git/blobdiff - inc/template-functions.php
Template renamed, some minor improvements
[mailer.git] / inc / template-functions.php
index 34469e68de3b650fa1864f8245c78be203f20224..495cccb3458ba81f441ad5339b6ac68f6c20d8fd 100644 (file)
@@ -311,6 +311,7 @@ function loadTemplate ($template, $return = false, $content = array(), $compileC
 
                // Generate FQFN
                $FQFN = $basePath . $extraPath . $template . '.tpl';
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Template ' . $template . ' is solved to FQFN=' . $FQFN);
 
                // Does the special template exists?
                if (!isFileReadable($FQFN)) {
@@ -1196,7 +1197,7 @@ function app_exit ($F, $L, $message) {
        );
 
        // Load the message template
-       loadTemplate('app_die_message', false, $message);
+       loadTemplate('app_exit_message', false, $message);
 
        // Load footer
        loadIncludeOnce('inc/footer.php');
@@ -1276,7 +1277,7 @@ function reportBug ($F, $L, $message = '', $sendEmail = true) {
        } // END - if
 
        // Add output
-       $debug .= 'Please report this bug at <a title="Direct link to the bug-tracker" href="http://bugs.mxchange.org" rel="external" target="_blank">http://bugs.mxchange.org</a> and include the logfile from <strong>' . str_replace(getPath(), '', getCachePath()) . 'debug.log</strong> in your report (you can now attach files):<pre>';
+       $debug .= 'Please report this bug at <a title="Direct link to the bug-tracker" href="http://bugs.mxchange.org" rel="external" target="_blank">http://bugs.mxchange.org</a> and include this whole message + logfile from <strong>' . str_replace(getPath(), '', getCachePath()) . 'debug.log</strong> in your report (you can now attach files).<br />Backtrace:<pre>';
        $debug .= debug_get_printable_backtrace();
        $debug .= '</pre>';
        $debug .= '<div class="para">Request-URI: ' . getRequestUri() . '</div>';