Commit 08776536 authored by webchick's avatar webchick

Issue #2406903 by gvso, wizonesolutions, penyaskito, holingpoon: HTML...

Issue #2406903 by gvso, wizonesolutions, penyaskito, holingpoon: HTML double-escaping in views debug messages
parent 0cf457f4
......@@ -710,10 +710,20 @@ public function renderPreview($display_id, $args = array()) {
}
if ($show_stats) {
$rows['statistics'][] = array('<strong>' . t('Query build time') . '</strong>', t('@time ms', array('@time' => intval($this->executable->build_time * 100000) / 100)));
$rows['statistics'][] = array('<strong>' . t('Query execute time') . '</strong>', t('@time ms', array('@time' => intval($this->executable->execute_time * 100000) / 100)));
$rows['statistics'][] = array('<strong>' . t('View render time') . '</strong>', t('@time ms', array('@time' => intval($this->executable->render_time * 100000) / 100)));
$rows['statistics'][] = array(
array('data' => array('#type' => 'inline_template', '#template' => "<strong>{% trans 'Query build time' %}</strong>")),
t('@time ms', array('@time' => intval($this->executable->build_time * 100000) / 100)),
);
$rows['statistics'][] = array(
array('data' => array('#type' => 'inline_template', '#template' => "<strong>{% trans 'Query execute time' %}</strong>")),
t('@time ms', array('@time' => intval($this->executable->execute_time * 100000) / 100)),
);
$rows['statistics'][] = array(
array('data' => array('#type' => 'inline_template', '#template' => "<strong>{% trans 'View render time' %}</strong>")),
t('@time ms', array('@time' => intval($this->executable->render_time * 100000) / 100)),
);
}
\Drupal::moduleHandler()->alter('views_preview_info', $rows, $this->executable);
}
......
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