mirror of
https://github.com/dg/dibi.git
synced 2025-08-13 01:24:06 +02:00
updated for new Nette Debug Bar
This commit is contained in:
@@ -62,8 +62,8 @@ if (!class_exists('FileNotFoundException', FALSE)) {
|
||||
class FileNotFoundException extends IOException {}
|
||||
}
|
||||
|
||||
if (!interface_exists(/*Nette\*/'IDebuggable', FALSE)) {
|
||||
require_once dirname(__FILE__) . '/Nette/IDebuggable.php';
|
||||
if (!interface_exists(/*Nette\*/'IDebugPanel', FALSE)) {
|
||||
require_once dirname(__FILE__) . '/Nette/IDebugPanel.php';
|
||||
}
|
||||
|
||||
if (!class_exists('DateTime53', FALSE)) {
|
||||
@@ -737,23 +737,4 @@ class dibi
|
||||
return '<strong style="color:green">' . $matches[4] . '</strong>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns brief descriptions.
|
||||
* @return string
|
||||
* @return array
|
||||
*/
|
||||
public static function getColophon($sender = NULL)
|
||||
{
|
||||
$arr = array(
|
||||
'Number of SQL queries: ' . dibi::$numOfQueries
|
||||
. (dibi::$totalTime === NULL ? '' : ', elapsed time: ' . sprintf('%0.3f', dibi::$totalTime * 1000) . ' ms'),
|
||||
);
|
||||
if ($sender === 'bluescreen') {
|
||||
$arr[] = 'dibi ' . dibi::VERSION . ' (revision ' . dibi::REVISION . ')';
|
||||
}
|
||||
return $arr;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user