Skip to content

Commit

Permalink
dialogcommon.pl aktualisieren
Browse files Browse the repository at this point in the history
Brute force solution to #525 only
  • Loading branch information
FAJ-Munich authored Jul 8, 2024
1 parent dc1b643 commit 8a16867
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions web/cgi-bin/horas/dialogcommon.pl
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ ($$%)
}

# Fill in the missing things from the layer below.
${$new_sections}{'__preamble'} .= "\n${$base_sections}{'__preamble'}";
unless (${$new_sections}{'__preamble'} eq ${$base_sections}{'__preamble'}) {
${$new_sections}{'__preamble'} .= "\n${$base_sections}{'__preamble'}";
}
${$new_sections}{$_} ||= ${$base_sections}{$_} foreach (keys(%{$base_sections}));

# Ensure consistency in ranking of Offices by always defaulting to Latin even if there is a Translation itself
Expand Down Expand Up @@ -333,13 +335,25 @@ ($$%)
# out some subsequent substitutions.
foreach my $key ((exists $sections{'Rule'}) ? 'Rule' : (), sort(keys(%sections))) {
if ($key !~ /Commemoratio|LectioE/i || $missa) {
1 while $sections{$key} =~ s/$inclusionregex/
my $iiij = 0;
my $iiiT = $sections{$key};

while (
$sections{$key} =~ s/$inclusionregex/
get_loadtime_inclusion(\%sections, $basedir, $lang,
$1, # Filename.
$2 ? $2 : $key, # Keyword.
$3, # Substitutions.
$fname) # Caller's filename.
/ge;
/ge
) {

if ($iiij++ > 6) {
$error .= "Error in resolving $fname : $key :: $lang ::: $iiiT<br>";
$sections{$key} = "Cannot resolve too deeply nested Hashes";
last;
}
}
}
}
} else {
Expand Down

0 comments on commit 8a16867

Please sign in to comment.