diff --git a/content/content.profile.php b/content/content.profile.php index f10ec71..f1c67bf 100644 --- a/content/content.profile.php +++ b/content/content.profile.php @@ -123,15 +123,15 @@ public function buildContent(XMLElement $wrapper) { foreach ($this->_records['data-sources'] as $data) $ds_total += $data[1]; $this->_records = array( - array(__('Total Database Queries'), $this->_dbstats['queries'], NULL, NULL, false), - array(__('Slow Queries (> 0.09s)'), (string)count($this->_dbstats['slow-queries']), NULL, NULL, false), + array(__('Total Database Queries'), $this->_dbstats['queries'], null, null, false), + array(__('Slow Queries (> 0.09s)'), (string)count($this->_dbstats['slow-queries']), null, null, false), array(__('Total Time Spent on Queries'), $this->_dbstats['total-query-time']), array(__('Time Triggering All Events'), $event_total), array(__('Time Running All Data Sources'), $ds_total), array(__('XML Generation'), $xml_generation[1]), array(__('XSLT Transformation'), $xsl_transformation[1]), array(__('Output Creation Time'), Symphony::Profiler()->retrieveTotalRunningTime()), - array(__('Total Memory Usage'), General::formatFilesize(Symphony::Profiler()->retrieveTotalMemoryUsage()), NULL, NULL, false), + array(__('Total Memory Usage'), General::formatFilesize(Symphony::Profiler()->retrieveTotalMemoryUsage()), null, null, false), ); foreach ($this->_records as $data) { @@ -240,19 +240,19 @@ public function buildContent(XMLElement $wrapper) { } elseif ($this->_view == 'slow-queries') { - + $value = $data[1]; if(!isset($data[4]) || $data[4] !== false){ - $data[1] = number_format($data[1], 4) . ' s'; + $value = number_format($data[1], 4) . ' s'; } - $row->appendChild(new XMLElement('td', $data[1])); + $row->appendChild(new XMLElement('td', $value)); } else { $row->appendChild(new XMLElement('td', number_format($data[1], 4) . ' s from ' . $data[4] . ' ' . ($data[4] == 1 ? 'query' : 'queries'))); } - $ds_total += $data[1]; + $ds_total += intval($data[1]); $table->appendChild($row); } } diff --git a/extension.meta.xml b/extension.meta.xml index d82e79b..d96e9d4 100644 --- a/extension.meta.xml +++ b/extension.meta.xml @@ -19,6 +19,10 @@ + + - Update for Symphony 4.x + - PHP7 Compatibility + - Mark compatibility with Symphony 2.6+