From 24119b61074bc5f9b27f0e0c917c8a7e528e2152 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 11 Jan 2008 13:25:53 +0000 Subject: [PATCH] Eine Fehlermeldung ausgeben, wenn der veraltete Aufruf "parse_html_template2" gefunden wird. --- locale/de/locales.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/locale/de/locales.pl b/locale/de/locales.pl index a183f1c9c..580c6052f 100755 --- a/locale/de/locales.pl +++ b/locale/de/locales.pl @@ -350,8 +350,11 @@ sub scanfile { } # is this a template call? - if (/parse_html_template\s*\(\s*[\"\']([\w\/]+)\s*[\"\']/) { + if (/parse_html_template2?\s*\(\s*[\"\']([\w\/]+)\s*[\"\']/) { my $newfile = "$basedir/templates/webpages/$1_master.html"; + if (/parse_html_template2/) { + print "E: " . strip_base($file) . " is still using 'parse_html_template2' for " . strip_base($newfile) . ".\n"; + } if (-f $newfile) { # &scanhtmlfile($newfile); # &converthtmlfile($newfile); -- 2.20.1