From bdd7c68ede05d46ba758b0ab3e04b46202d761af Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 22 Dec 2009 15:41:47 -0800 Subject: Fix some function definitions (they should be static) --- modules/gallery_unit_test/helpers/diff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gallery_unit_test/helpers/diff.php') diff --git a/modules/gallery_unit_test/helpers/diff.php b/modules/gallery_unit_test/helpers/diff.php index 1ea16fa6..7b573732 100644 --- a/modules/gallery_unit_test/helpers/diff.php +++ b/modules/gallery_unit_test/helpers/diff.php @@ -18,7 +18,7 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class diff_Core { - public function compare($a, $b) { + static function compare($a, $b) { fwrite(fopen($a_name = tempnam("/tmp", "test"), "w"), $a); fwrite(fopen($b_name = tempnam("/tmp", "test"), "w"), $b); return `diff $a_name $b_name`; -- cgit v1.2.3