Bug 138588 - change to use new template structure. Patch by gerv, r=myk, afranke.

git-svn-id: svn://10.0.0.236/trunk@119695 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gerv%gerv.net
2002-04-24 07:24:50 +00:00
parent 3675c24e79
commit c8a771fb68
28 changed files with 118 additions and 160 deletions

View File

@@ -73,9 +73,8 @@ my $useragent = $ENV{HTTP_USER_AGENT};
if ($useragent =~ m:Mozilla/([1-9][0-9]*):i && $1 >= 5 && $useragent !~ m/compatible/i) {
print "Content-type: application/vnd.mozilla.xul+xml\n\n";
# Generate and return the XUL from the appropriate template.
$template->process("sidebar/xul.tmpl", $vars)
|| DisplayError("Template process failed: " . $template->error())
&& exit;
$template->process("sidebar.xul.tmpl", $vars)
|| ThrowTemplateError($template->error());
} else {
DisplayError("sidebar.cgi currently only supports Mozilla based web browsers");
exit;