$functionname not defined in this context, replacing with hardcoded "-setup" array...
authorNick Jenkins <nickj@users.mediawiki.org>
Wed, 29 Nov 2006 12:32:43 +0000 (12:32 +0000)
committerNick Jenkins <nickj@users.mediawiki.org>
Wed, 29 Nov 2006 12:32:43 +0000 (12:32 +0000)
includes/ProfilerSimple.php

index eb2985c..e69bfc4 100644 (file)
@@ -25,7 +25,7 @@ class ProfilerSimple extends Profiler {
                        $entry =& $this->mCollated["-setup"];
                        if (!is_array($entry)) {
                                $entry = array('cpu'=> 0.0, 'cpu_sq' => 0.0, 'real' => 0.0, 'real_sq' => 0.0, 'count' => 0);
-                               $this->mCollated[$functionname] =& $entry;
+                               $this->mCollated["-setup"] =& $entry;
                                
                        }
                        $entry['cpu'] += $elapsedcpu;