1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-07 14:46:50 +02:00

fixed compatibility with Nette / RobotLoader

This commit is contained in:
David Grudl
2010-11-02 03:29:19 +01:00
parent 36fe9d42c1
commit 33ef22b488
2 changed files with 111 additions and 96 deletions

View File

@@ -111,6 +111,7 @@ class DibiConnection extends DibiObject
}
if (!empty($profilerCfg['run'])) {
class_exists('dibi'); // ensure dibi.php is processed
$class = isset($profilerCfg['class']) ? $profilerCfg['class'] : 'DibiProfiler';
if (!class_exists($class)) {
throw new DibiException("Unable to create instance of dibi profiler '$class'.");

File diff suppressed because one or more lines are too long