aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-05-07 05:11:13 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-05-07 05:11:13 +0000
commitd795c66b0ae26c6eb2edff4bac433171bf7c45f9 (patch)
tree398924fc4e35436ad6710d099b661f6d3184b03e /scripts
parentdc4180456accd99cdd0fd97443f36cc622473a8c (diff)
downloadpmwiki.svn-d795c66b0ae26c6eb2edff4bac433171bf7c45f9.tar.bz2
phpdiff.php fix for PHP 8.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4706 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts')
-rw-r--r--scripts/phpdiff.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/phpdiff.php b/scripts/phpdiff.php
index 0b486cb2..476d6454 100644
--- a/scripts/phpdiff.php
+++ b/scripts/phpdiff.php
@@ -1,7 +1,7 @@
<?php if (!defined('PmWiki')) exit();
/*
Copyright 2003,2004 Nils Knappmeier (nk@knappi.org)
- Copyright 2004-2021 Patrick R. Michaud (pmichaud@pobox.com)
+ Copyright 2004-2024 Patrick R. Michaud (pmichaud@pobox.com)
This file is part of PmWiki; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -22,7 +22,7 @@
## PHPDiff returns the differences between $old and $new, formatted
## in the standard diff(1) output format.
-function PHPDiff($old, $new)
+function PHPDiff($old = '', $new = '')
{
StopWatch("PHPDiff: begin");
# split the source text into arrays of lines