From c052582670524ff4976076041a27ad1af8f65d4e Mon Sep 17 00:00:00 2001 From: David Grudl Date: Wed, 15 Sep 2010 13:25:46 +0200 Subject: [PATCH] DibiProfiler: the file can be specified in a configuration --- dibi/libs/DibiProfiler.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dibi/libs/DibiProfiler.php b/dibi/libs/DibiProfiler.php index f25e37ac..c92445e1 100644 --- a/dibi/libs/DibiProfiler.php +++ b/dibi/libs/DibiProfiler.php @@ -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']); }