From: Sam Reed Date: Sat, 24 Jul 2010 19:06:19 +0000 (+0000) Subject: $self to $this X-Git-Tag: 1.31.0-rc.0~35975 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=8a8620bdb490043320d5bad1b0619315c9f542c6;p=lhc%2Fweb%2Fwiklou.git $self to $this Remove 1 unused global --- diff --git a/includes/ProfilerSimpleTrace.php b/includes/ProfilerSimpleTrace.php index 631192288c..8d1a0d81ba 100644 --- a/includes/ProfilerSimpleTrace.php +++ b/includes/ProfilerSimpleTrace.php @@ -30,7 +30,6 @@ class ProfilerSimpleTrace extends ProfilerSimple { } function profileIn($functionname) { - global $wgDebugFunctionEntry; $this->mWorkStack[] = array($functionname, count( $this->mWorkStack ), microtime(true), $this->getCpuTime()); $this->trace .= " " . sprintf("%6.1f",$this->memoryDiff()) . str_repeat( " ", count($this->mWorkStack)) . " > " . $functionname . "\n"; } @@ -53,7 +52,7 @@ class ProfilerSimpleTrace extends ProfilerSimple { $this->trace .= $message . "\n"; } elseif ($ofname != $functionname) { - $self->trace .= "Profiling error: in({$ofname}), out($functionname)"; + $this->trace .= "Profiling error: in({$ofname}), out($functionname)"; } $elapsedcpu = $this->getCpuTime() - $octime; $elapsedreal = microtime(true) - $ortime;