Commit 6e1ced7d authored by moshe weitzman's avatar moshe weitzman

fixed for anon users during a bootstrap

parent 3e9e620c
......@@ -38,22 +38,21 @@ function devel_exit() {
print "<div style=\"clear:both;\">";
// don't t() this text. it has to work for a cached (aka bootstrap) page.
$output = 'Executed '. count($queries). ' count queries in '. round($sum * 1000, 2). ' microseconds. ';
$txt = 'Executed '. count($queries). ' queries in '. round($sum * 1000, 2). ' microseconds. ';
if (function_exists('theme_table')) {
$output .= 'Queries taking longer than '. variable_get("devel_execution", 5). ' ms are <span class="marker">highlighted</span>. '. devel_timer();
$output .= theme("box", t("Query log"), $output. devel_query_table($queries, $counts));
$txt .= 'Queries taking longer than '. variable_get("devel_execution", 5). ' ms are <span class="marker">highlighted</span>. '. devel_timer();
print theme("box", t("Query log"), $txt. devel_query_table($queries, $counts));
}
else {
print $output;
print $txt;
dprint_r($queries);
}
$output .= "</div>";
print "</div>";
}
// lots of profile info. not sure how to use it yet.
if (extension_loaded('xdebug') && ini_get("xdebug.auto_profile")) {
xdebug_dump_function_profile(3);
};
print $output;
}
function devel_query_table($queries, $counts) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment