From: zach%zachlipton.com <> Date: Thu, 4 Apr 2002 15:01:09 +0000 (+0000) Subject: Fix for bug 135291: add version string to new templates and fix the string for non X-Git-Tag: bugzilla-2.16rc1~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f9b581340be60e5017d4387de4048881afcb075;p=thirdparty%2Fbugzilla.git Fix for bug 135291: add version string to new templates and fix the string for non xml templates. r=bbaetz, r2=ddk --- diff --git a/t/004template.t b/t/004template.t index e831e42e4d..cf63975d15 100644 --- a/t/004template.t +++ b/t/004template.t @@ -94,7 +94,7 @@ close SAVEERR; foreach my $file(@testitems) { open(TMPL,"$include_path/$file"); my $firstline = ; - if ($firstline =~ //) { + if ($firstline =~ /\d+\.\d+\@[\w\.-]+/) { ok(1,"$file has a version string"); } else { ok(0,"$file does not have a version string --ERROR"); diff --git a/template/default/global/code-error.html.tmpl b/template/default/global/code-error.html.tmpl index 4e73a7738d..47987729a3 100644 --- a/template/default/global/code-error.html.tmpl +++ b/template/default/global/code-error.html.tmpl @@ -1,3 +1,4 @@ + [%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of diff --git a/template/default/global/user-error.html.tmpl b/template/default/global/user-error.html.tmpl index 1e8e34b018..a76ad5fa77 100644 --- a/template/default/global/user-error.html.tmpl +++ b/template/default/global/user-error.html.tmpl @@ -1,3 +1,4 @@ + [%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of diff --git a/template/default/sidebar/xul.tmpl b/template/default/sidebar/xul.tmpl index 9f42ddf3ba..d8af5d3f20 100644 --- a/template/default/sidebar/xul.tmpl +++ b/template/default/sidebar/xul.tmpl @@ -1,4 +1,4 @@ - +[%# 1.0@bugzilla.org %] [%# -*- mode: sgml -*- %] [%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file diff --git a/template/default/token/emailchangenew.txt.tmpl b/template/default/token/emailchangenew.txt.tmpl index 7fd195c6fe..9a0a1e8d7c 100644 --- a/template/default/token/emailchangenew.txt.tmpl +++ b/template/default/token/emailchangenew.txt.tmpl @@ -1,4 +1,4 @@ - +[%# 1.0@bugzilla.org %] [%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of diff --git a/template/default/token/emailchangeold.txt.tmpl b/template/default/token/emailchangeold.txt.tmpl index 14bea8a225..661f8f1d47 100644 --- a/template/default/token/emailchangeold.txt.tmpl +++ b/template/default/token/emailchangeold.txt.tmpl @@ -1,4 +1,4 @@ - +[%# 1.0@bugzilla.org %] [%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of diff --git a/template/default/token/tokencancel.txt.tmpl b/template/default/token/tokencancel.txt.tmpl index 1a90971158..b37d0da2da 100644 --- a/template/default/token/tokencancel.txt.tmpl +++ b/template/default/token/tokencancel.txt.tmpl @@ -1,4 +1,4 @@ - +[%# 1.0@bugzilla.org %] [%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of