X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Fpublic%2Ftracer.php;fp=www%2Fecrire%2Fpublic%2Ftracer.php;h=5cccef013f2c493e83d54749d25f2bda1d817282;hp=9d316de921348c4e0104281ab3d950d1d327f925;hb=5be150361b3c836d9206941ba43f862df11466db;hpb=bca3db9e1ab94e469b01f7e994a5e095de5f88c4 diff --git a/www/ecrire/public/tracer.php b/www/ecrire/public/tracer.php index 9d316de..5cccef0 100644 --- a/www/ecrire/public/tracer.php +++ b/www/ecrire/public/tracer.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2012 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -59,7 +59,7 @@ function trace_query_chrono($m1, $m2, $query, $result, $serveur='') $tt += $dt; $nb++; - $q = preg_replace('/([a-z)`])\s+([A-Z])/', "$1\n
$2",htmlentities($query)); + $q = preg_replace('/([a-z)`])\s+([A-Z])/', "$1\n
$2",spip_htmlentities($query)); $e = sql_explain($query, $serveur); $r = str_replace('Resource id ','',(is_object($result)?get_class($result):$result)); $tableau_des_temps[] = array($dt, $nb, $boucle, $q, $e, $r, $contexte);