diff options
author | gerv%gerv.net <> | 2002-04-24 16:24:43 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2002-04-24 16:24:43 +0200 |
commit | 05d101e58b400b1a52adcc86515b5442b85cd2f5 (patch) | |
tree | ded36788873d147ce2a62bd76239e0e99974c621 /attachment.cgi | |
parent | c29a6dcb565731ef6757a625b7374e7ff46d417c (diff) | |
download | bugzilla-05d101e58b400b1a52adcc86515b5442b85cd2f5.tar.gz bugzilla-05d101e58b400b1a52adcc86515b5442b85cd2f5.tar.xz |
Bug 138588 - change to use new template structure. Patch by gerv, r=myk, afranke.
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/attachment.cgi b/attachment.cgi index 66c3236a7..f45b4efd3 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -416,9 +416,8 @@ sub viewall print "Content-Type: text/html\n\n"; # Generate and return the UI (HTML page) from the appropriate template. - $template->process("attachment/viewall.atml", $vars) - || DisplayError("Template process failed: " . $template->error()) - && exit; + $template->process("attachment/show-multiple.html.tmpl", $vars) + || ThrowTemplateError($template->error()); } @@ -459,9 +458,8 @@ sub enter print "Content-Type: text/html\n\n"; # Generate and return the UI (HTML page) from the appropriate template. - $template->process("attachment/enter.atml", $vars) - || DisplayError("Template process failed: " . $template->error()) - && exit; + $template->process("attachment/create.html.tmpl", $vars) + || ThrowTemplateError($template->error()); } @@ -527,9 +525,8 @@ sub insert print "Content-Type: text/html\n\n"; # Generate and return the UI (HTML page) from the appropriate template. - $template->process("attachment/created.atml", $vars) - || DisplayError("Template process failed: " . $template->error()) - && exit; + $template->process("attachment/created.html.tmpl", $vars) + || ThrowTemplateError($template->error()); } @@ -603,9 +600,8 @@ sub edit print "Content-Type: text/html\n\n"; # Generate and return the UI (HTML page) from the appropriate template. - $template->process("attachment/edit.atml", $vars) - || DisplayError("Template process failed: " . $template->error()) - && exit; + $template->process("attachment/edit.html.tmpl", $vars) + || ThrowTemplateError($template->error()); } @@ -787,8 +783,6 @@ sub update print "Content-Type: text/html\n\n"; # Generate and return the UI (HTML page) from the appropriate template. - $template->process("attachment/updated.atml", $vars) - || DisplayError("Template process failed: " . $template->error()) - && exit; - + $template->process("attachment/updated.html.tmpl", $vars) + || ThrowTemplateError($template->error()); } |