diff options
author | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2024-05-07 05:11:13 +0000 |
---|---|---|
committer | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2024-05-07 05:11:13 +0000 |
commit | d795c66b0ae26c6eb2edff4bac433171bf7c45f9 (patch) | |
tree | 398924fc4e35436ad6710d099b661f6d3184b03e /scripts | |
parent | dc4180456accd99cdd0fd97443f36cc622473a8c (diff) | |
download | pmwiki.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.php | 4 |
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 |