From 666f9ee415d30f21ef1b14502556d406083a4397 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 17 Feb 2006 08:59:31 +0000 Subject: [PATCH] Wenn die Datei .developper im Lx-Office-Installationsverzeichnis exisitert, dann bei Ausgabe einer HTML-Vorlage ueberpruefen, ob die Master-Vorlage neuer ist und gegebenenfalls abbrechen. [r809 aus LINET prog-Repo] --- SL/Form.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/SL/Form.pm b/SL/Form.pm index 3c0e2e6bb..a77c302f8 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -418,6 +418,17 @@ sub parse_html_template { if (-f "templates/webpages/${file}_" . $main::myconfig{"countrycode"} . ".html") { + if ((-f ".developper") && + (-f "templates/webpages/${file}_master.html") && + ((stat("templates/webpages/${file}_master.html"))[9] > + (stat("templates/webpages/${file}_" . $main::myconfig{"countrycode"} . + ".html"))[9])) { + my $info = "Developper information: templates/webpages/${file}_master.html is newer than the localized version.\n" . + "Please re-run 'locales.pl' in 'locale/" . $main::myconfig{"countrycode"} . "'."; + print(qq|
$info
|); + die($info); + } + $file = "templates/webpages/${file}_" . $main::myconfig{"countrycode"} . ".html"; } elsif (-f "templates/webpages/${file}.html") { -- 2.20.1