From 6fcbc97c4e386bd7cfa9f4d8ac41484554b5dc79 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Tue, 25 Mar 2008 17:45:35 +0000 Subject: [PATCH] make it static :) --- includes/ProfilerSimpleText.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ProfilerSimpleText.php b/includes/ProfilerSimpleText.php index d206feeae3..e1cd921036 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); } } ?> -- 2.20.1