From f4a3ad1cccb73e2ef23a441ab6be07395abe1421 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Sun, 21 Apr 2024 19:38:42 +0100 Subject: [PATCH] Detail how many XIncludes have been performed --- configure.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.php b/configure.php index 4f7eb20df..7d79dd0ce 100755 --- a/configure.php +++ b/configure.php @@ -778,8 +778,14 @@ function getFileModificationHistory(): array { echo "done.\n"; echo "Running XInclude/XPointer... "; -$dom->xinclude(); -echo "done.\n"; +$status = $dom->xinclude(); +if ($status === -1) { + echo "failed.\n"; +} else { + /* For some dumb reason when no substitution are made it returns false instead of 0... */ + $status = (int) $status; + echo "done. Performed $status XIncludes\n"; +} flush(); if ( $ac['XPOINTER_REPORTING'] == 'yes' || $ac['LANG'] == 'en' )