Project

General

Profile

Bug #2202 ยป 2202.patch

krileon, 24 January 2011 16:54

View differences:

administrator/components/com_comprofiler/plugin.foundation.php
if ( ( $_CB_framework->getCfg( 'debug' ) > 0 ) && ( ob_get_length() || ( $_CB_framework->getCfg( 'debug' ) > 1 ) ) ) {
$outputBufferLength = ob_get_length();
$ticker = ( checkJversion() == 2 ? $_CB_database->_db->getTicker() : $_CB_database->_db->_ticker );
$log = ( checkJversion() == 2 ? $_CB_database->_db->getLog() : $_CB_database->_db->_log );
echo '<br /><br /><strong>Site Debug mode: CB redirection';
if ( $message ) {
echo ' with ' . $messageType . ' "' . $message . '"';
......
. '</strong>Click this link to proceed with the next page (in non-debug mode this is automatic): ';
echo '<a href="' . $url . '">' . htmlspecialchars( $url ) . '</a><br /><br /><hr />';
echo $_CB_database->_db->_ticker . ' queries executed'
echo $ticker . ' queries executed'
. '<pre>';
foreach ( $_CB_database->_db->_log as $k => $sql ) {
foreach ( $log as $k => $sql ) {
echo $k + 1 . "\n" . htmlspecialchars( $sql ) . '<hr />';
}
echo '</hr>'
    (1-1/1)