1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 13:47:33 +02:00

DibiProfiler: the file can be specified in a configuration

This commit is contained in:
David Grudl
2010-09-15 13:25:46 +02:00
parent e6e7babe22
commit c052582670

View File

@@ -61,6 +61,10 @@ class DibiProfiler extends DibiObject implements IDibiProfiler, IDebugPanel
$this->useFirebug = isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'FirePHP/');
if (isset($config['file'])) {
$this->setFile($config['file']);
}
if (isset($config['filter'])) {
$this->setFilter($config['filter']);
}