Browse Source

Passer par un tampon pour afficher le debug backtrace au bon endroit dans le html

pull/4/head
Cerdic 8 months ago
parent
commit
4bf422868e
  1. 9
      inc/minipres.php

9
inc/minipres.php

@ -109,12 +109,15 @@ function install_debut_html($titre = 'AUTO', $onLoad = '', $all_inline = false)
* @return string Code HTML
*/
function install_fin_html() {
$trace = '';
if (!_request('exec') == 'install' && defined('_DEBUG_MINIPRES') && _DEBUG_MINIPRES) {
echo "<pre>";
ob_start();
debug_print_backtrace();
echo "</pre>";
$trace = ob_get_contents();
ob_end_clean();
$trace = "<pre>$trace</pre>";
}
return "\n\t</div>\n\t</div>\n</body>\n</html>";
return "\n\t</div>\n\t</div>{$trace}\n</body>\n</html>";
}

Loading…
Cancel
Save