Skip to content

Commit

Permalink
Detail how many XIncludes have been performed
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias committed Apr 21, 2024
1 parent 9e2926d commit f4a3ad1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
Expand Down

0 comments on commit f4a3ad1

Please sign in to comment.