summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test/helpers/diff.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery_unit_test/helpers/diff.php')
-rw-r--r--modules/gallery_unit_test/helpers/diff.php2
1 files changed, 1 insertions, 1 deletions
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`;