diff --git a/includes/ProfilerSimpleText.php b/includes/ProfilerSimpleText.php index d206feeae32..e1cd921036d 100644 --- a/includes/ProfilerSimpleText.php +++ b/includes/ProfilerSimpleText.php @@ -20,7 +20,7 @@ class ProfilerSimpleText extends ProfilerSimple { else print "-->\n"; } /* dense is good */ - function sort($a,$b) { return $a['real']<$b['real']; /* sort descending by time elapsed */ } - function format($item,$key) { printf("%3.6f %6d - %s\n",$item['real'],$item['count'], $key); } + static function sort($a,$b) { return $a['real']<$b['real']; /* sort descending by time elapsed */ } + static function format($item,$key) { printf("%3.6f %6d - %s\n",$item['real'],$item['count'], $key); } } ?>