1998-09-16 01:49:26 +04:00
|
|
|
# -*- Mode: perl; indent-tabs-mode: nil -*-
|
|
|
|
#
|
1999-11-02 02:33:56 +03:00
|
|
|
# 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
|
|
|
|
# the License at http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS
|
|
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
# implied. See the License for the specific language governing
|
|
|
|
# rights and limitations under the License.
|
|
|
|
#
|
1998-09-16 01:49:26 +04:00
|
|
|
# The Original Code is the Bugzilla Bug Tracking System.
|
1999-11-02 02:33:56 +03:00
|
|
|
#
|
1998-09-16 01:49:26 +04:00
|
|
|
# The Initial Developer of the Original Code is Netscape Communications
|
1999-11-02 02:33:56 +03:00
|
|
|
# Corporation. Portions created by Netscape are
|
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
1998-09-16 01:49:26 +04:00
|
|
|
# Contributor(s): Terry Weissman <terry@mozilla.org>
|
2001-04-17 06:26:16 +04:00
|
|
|
# Dave Miller <justdave@syndicomm.com>
|
2002-08-13 12:02:04 +04:00
|
|
|
# Vaskin Kissoyan <vkissoyan@yahoo.com>
|
1998-09-16 01:49:26 +04:00
|
|
|
|
|
|
|
use strict;
|
|
|
|
|
2000-03-29 01:31:24 +04:00
|
|
|
use RelationSet;
|
|
|
|
|
2002-01-30 17:14:12 +03:00
|
|
|
# Use the Attachment module to display attachments for the bug.
|
|
|
|
use Attachment;
|
|
|
|
|
2002-09-28 22:42:54 +04:00
|
|
|
# Use the Flag modules to display flags on the bug.
|
|
|
|
use Bugzilla::Flag;
|
|
|
|
use Bugzilla::FlagType;
|
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
sub show_bug {
|
|
|
|
# Shut up misguided -w warnings about "used only once". For some reason,
|
|
|
|
# "use vars" chokes on me when I try it here.
|
|
|
|
sub bug_form_pl_sillyness {
|
|
|
|
my $zz;
|
|
|
|
$zz = %::FORM;
|
|
|
|
$zz = %::proddesc;
|
|
|
|
$zz = %::prodmaxvotes;
|
|
|
|
$zz = @::enterable_products;
|
|
|
|
$zz = @::settable_resolution;
|
|
|
|
$zz = $::unconfirmedstate;
|
|
|
|
$zz = $::milestoneurl;
|
|
|
|
$zz = $::template;
|
|
|
|
$zz = $::vars;
|
|
|
|
$zz = @::legal_priority;
|
|
|
|
$zz = @::legal_platform;
|
|
|
|
$zz = @::legal_severity;
|
|
|
|
$zz = @::legal_bug_status;
|
|
|
|
$zz = @::target_milestone;
|
|
|
|
$zz = @::components;
|
|
|
|
$zz = @::legal_keywords;
|
|
|
|
$zz = @::versions;
|
|
|
|
$zz = @::legal_opsys;
|
1998-09-16 01:49:26 +04:00
|
|
|
}
|
2000-02-17 08:15:23 +03:00
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
# Use templates
|
|
|
|
my $template = $::template;
|
|
|
|
my $vars = $::vars;
|
|
|
|
|
|
|
|
$vars->{'GetBugLink'} = \&GetBugLink;
|
|
|
|
$vars->{'lsearch'} = \&lsearch,
|
|
|
|
$vars->{'header_done'} = (@_),
|
|
|
|
|
|
|
|
quietly_check_login();
|
|
|
|
|
|
|
|
my $id = $::FORM{'id'};
|
|
|
|
|
|
|
|
if (!defined($id)) {
|
2002-04-24 11:24:50 +04:00
|
|
|
$template->process("bug/choose.html.tmpl", $vars)
|
|
|
|
|| ThrowTemplateError($template->error());
|
2002-03-23 20:58:41 +03:00
|
|
|
exit;
|
2001-11-21 11:30:47 +03:00
|
|
|
}
|
2002-03-23 20:58:41 +03:00
|
|
|
|
2002-05-08 23:02:58 +04:00
|
|
|
my %user = %{$vars->{'user'}};
|
2002-03-23 20:58:41 +03:00
|
|
|
my %bug;
|
|
|
|
|
|
|
|
# Populate the bug hash with the info we get directly from the DB.
|
|
|
|
my $query = "
|
2002-09-28 22:42:54 +04:00
|
|
|
SELECT bugs.bug_id, alias, bugs.product_id, products.name, version,
|
|
|
|
rep_platform, op_sys, bug_status, resolution, priority,
|
|
|
|
bug_severity, bugs.component_id, components.name, assigned_to,
|
|
|
|
reporter, bug_file_loc, short_desc, target_milestone,
|
2002-03-23 20:58:41 +03:00
|
|
|
qa_contact, status_whiteboard,
|
|
|
|
date_format(creation_ts,'%Y-%m-%d %H:%i'),
|
2002-10-13 08:26:24 +04:00
|
|
|
delta_ts, sum(votes.count), delta_ts calc_disp_date,
|
|
|
|
estimated_time, remaining_time
|
2002-08-12 09:43:05 +04:00
|
|
|
FROM bugs LEFT JOIN votes USING(bug_id), products, components
|
2002-03-23 20:58:41 +03:00
|
|
|
WHERE bugs.bug_id = $id
|
2002-08-12 09:43:05 +04:00
|
|
|
AND bugs.product_id = products.id
|
|
|
|
AND bugs.component_id = components.id
|
2002-03-23 20:58:41 +03:00
|
|
|
GROUP BY bugs.bug_id";
|
|
|
|
|
|
|
|
SendSQL($query);
|
|
|
|
|
2002-08-12 09:43:05 +04:00
|
|
|
# The caller is meant to have checked this. Abort here so that
|
|
|
|
# we don't get obscure SQL errors, below
|
|
|
|
if (!MoreSQLData()) {
|
2002-08-16 03:01:30 +04:00
|
|
|
$vars->{'bug_id'} = $id;
|
|
|
|
ThrowCodeError("no_bug_data");
|
2002-08-12 09:43:05 +04:00
|
|
|
}
|
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
my $value;
|
2002-08-13 12:02:04 +04:00
|
|
|
my $disp_date;
|
2002-03-23 20:58:41 +03:00
|
|
|
my @row = FetchSQLData();
|
2002-09-28 22:42:54 +04:00
|
|
|
foreach my $field ("bug_id", "alias", "product_id", "product", "version",
|
|
|
|
"rep_platform", "op_sys", "bug_status", "resolution",
|
|
|
|
"priority", "bug_severity", "component_id", "component",
|
|
|
|
"assigned_to", "reporter", "bug_file_loc", "short_desc",
|
|
|
|
"target_milestone", "qa_contact", "status_whiteboard",
|
2002-10-13 08:26:24 +04:00
|
|
|
"creation_ts", "delta_ts", "votes", "calc_disp_date",
|
|
|
|
"estimated_time", "remaining_time")
|
2001-11-21 11:30:47 +03:00
|
|
|
{
|
2002-03-23 20:58:41 +03:00
|
|
|
$value = shift(@row);
|
2002-08-13 12:02:04 +04:00
|
|
|
if ($field eq "calc_disp_date") {
|
|
|
|
# Convert MySQL timestamp (_ts) to datetime format(%Y-%m-%d %H:%i)
|
|
|
|
$disp_date = substr($value,0,4) . '-';
|
|
|
|
$disp_date .= substr($value,4,2) . '-';
|
|
|
|
$disp_date .= substr($value,6,2) . ' ';
|
|
|
|
$disp_date .= substr($value,8,2) . ':';
|
|
|
|
$disp_date .= substr($value,10,2);
|
|
|
|
$value = $disp_date;
|
|
|
|
}
|
2002-03-23 20:58:41 +03:00
|
|
|
$bug{$field} = defined($value) ? $value : "";
|
2001-11-21 11:30:47 +03:00
|
|
|
}
|
2002-02-14 04:25:25 +03:00
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
# General arrays of info about the database state
|
|
|
|
GetVersionTable();
|
|
|
|
|
|
|
|
# Fiddle the product list.
|
|
|
|
my $seen_curr_prod;
|
|
|
|
my @prodlist;
|
|
|
|
|
|
|
|
foreach my $product (@::enterable_products) {
|
|
|
|
if ($product eq $bug{'product'}) {
|
|
|
|
# if it's the product the bug is already in, it's ALWAYS in
|
|
|
|
# the popup, period, whether the user can see it or not, and
|
|
|
|
# regardless of the disallownew setting.
|
|
|
|
$seen_curr_prod = 1;
|
|
|
|
push(@prodlist, $product);
|
|
|
|
next;
|
|
|
|
}
|
2001-11-21 11:30:47 +03:00
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
if (Param("usebuggroupsentry")
|
|
|
|
&& GroupExists($product)
|
|
|
|
&& !UserInGroup($product))
|
|
|
|
{
|
|
|
|
# If we're using bug groups to restrict entry on products, and
|
|
|
|
# this product has a bug group, and the user is not in that
|
|
|
|
# group, we don't want to include that product in this list.
|
|
|
|
next;
|
|
|
|
}
|
2001-11-21 11:30:47 +03:00
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
push(@prodlist, $product);
|
1999-02-03 05:46:51 +03:00
|
|
|
}
|
1999-01-28 00:17:10 +03:00
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
# The current product is part of the popup, even if new bugs are no longer
|
|
|
|
# allowed for that product
|
|
|
|
if (!$seen_curr_prod) {
|
|
|
|
push (@prodlist, $bug{'product'});
|
|
|
|
@prodlist = sort @prodlist;
|
2000-01-07 00:16:15 +03:00
|
|
|
}
|
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
$vars->{'product'} = \@prodlist;
|
|
|
|
$vars->{'rep_platform'} = \@::legal_platform;
|
|
|
|
$vars->{'priority'} = \@::legal_priority;
|
|
|
|
$vars->{'bug_severity'} = \@::legal_severity;
|
|
|
|
$vars->{'op_sys'} = \@::legal_opsys;
|
|
|
|
$vars->{'bug_status'} = \@::legal_bug_status;
|
|
|
|
|
|
|
|
# Hack - this array contains "" for some reason. See bug 106589.
|
|
|
|
shift @::settable_resolution;
|
|
|
|
$vars->{'resolution'} = \@::settable_resolution;
|
|
|
|
|
|
|
|
$vars->{'component_'} = $::components{$bug{'product'}};
|
|
|
|
$vars->{'version'} = $::versions{$bug{'product'}};
|
|
|
|
$vars->{'target_milestone'} = $::target_milestone{$bug{'product'}};
|
|
|
|
$bug{'milestoneurl'} = $::milestoneurl{$bug{'product'}} ||
|
|
|
|
"notargetmilestone.html";
|
|
|
|
|
2002-07-10 04:05:42 +04:00
|
|
|
$vars->{'use_votes'} = Param('usevotes')
|
|
|
|
&& $::prodmaxvotes{$bug{'product'}} > 0;
|
2002-03-23 20:58:41 +03:00
|
|
|
|
|
|
|
# Add additional, calculated fields to the bug hash
|
|
|
|
if (@::legal_keywords) {
|
|
|
|
$vars->{'use_keywords'} = 1;
|
|
|
|
|
|
|
|
SendSQL("SELECT keyworddefs.name
|
|
|
|
FROM keyworddefs, keywords
|
|
|
|
WHERE keywords.bug_id = $id
|
|
|
|
AND keyworddefs.id = keywords.keywordid
|
|
|
|
ORDER BY keyworddefs.name");
|
|
|
|
my @keywords;
|
|
|
|
while (MoreSQLData()) {
|
|
|
|
push(@keywords, FetchOneColumn());
|
|
|
|
}
|
|
|
|
|
|
|
|
$bug{'keywords'} = \@keywords;
|
|
|
|
}
|
1999-05-27 18:13:41 +04:00
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
# Attachments
|
|
|
|
$bug{'attachments'} = Attachment::query($id);
|
2002-09-28 22:42:54 +04:00
|
|
|
|
|
|
|
# The types of flags that can be set on this bug.
|
|
|
|
# If none, no UI for setting flags will be displayed.
|
|
|
|
my $flag_types =
|
|
|
|
Bugzilla::FlagType::match({ 'target_type' => 'bug',
|
|
|
|
'product_id' => $bug{'product_id'},
|
|
|
|
'component_id' => $bug{'component_id'},
|
|
|
|
'is_active' => 1 });
|
|
|
|
foreach my $flag_type (@$flag_types) {
|
|
|
|
$flag_type->{'flags'} =
|
|
|
|
Bugzilla::Flag::match({ 'bug_id' => $id ,
|
|
|
|
'target_type' => 'bug' });
|
|
|
|
}
|
|
|
|
$vars->{'flag_types'} = $flag_types;
|
|
|
|
|
|
|
|
# The number of types of flags that can be set on attachments
|
|
|
|
# to this bug. If none, flags won't be shown in the list of attachments.
|
|
|
|
$vars->{'num_attachment_flag_types'} =
|
|
|
|
Bugzilla::FlagType::count({ 'target_type' => 'a',
|
|
|
|
'product_id' => $bug{'product_id'},
|
|
|
|
'component_id' => $bug{'component_id'},
|
|
|
|
'is_active' => 1 });
|
1999-05-27 18:13:41 +04:00
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
# Dependencies
|
1999-05-27 18:13:41 +04:00
|
|
|
my @list;
|
2002-03-23 20:58:41 +03:00
|
|
|
SendSQL("SELECT dependson FROM dependencies WHERE
|
|
|
|
blocked = $id ORDER BY dependson");
|
1999-05-27 18:13:41 +04:00
|
|
|
while (MoreSQLData()) {
|
2002-03-23 20:58:41 +03:00
|
|
|
my ($i) = FetchSQLData();
|
1999-05-27 18:13:41 +04:00
|
|
|
push(@list, $i);
|
|
|
|
}
|
1999-01-28 00:17:10 +03:00
|
|
|
|
2002-10-13 08:26:24 +04:00
|
|
|
if (UserInGroup(Param("timetrackinggroup"))) {
|
|
|
|
|
|
|
|
SendSQL("SELECT SUM(work_time)
|
|
|
|
FROM longdescs WHERE longdescs.bug_id=$id");
|
|
|
|
$bug{'actual_time'} = FetchSQLData();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
$bug{'dependson'} = \@list;
|
1999-10-08 03:54:52 +04:00
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
my @list2;
|
|
|
|
SendSQL("SELECT blocked FROM dependencies WHERE
|
|
|
|
dependson = $id ORDER BY blocked");
|
1999-03-11 19:30:54 +03:00
|
|
|
while (MoreSQLData()) {
|
2002-03-23 20:58:41 +03:00
|
|
|
my ($i) = FetchSQLData();
|
|
|
|
push(@list2, $i);
|
2001-11-07 19:11:33 +03:00
|
|
|
}
|
2001-08-13 04:46:20 +04:00
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
$bug{'blocked'} = \@list2;
|
|
|
|
|
|
|
|
# Groups
|
2002-04-15 06:19:19 +04:00
|
|
|
my @groups;
|
2002-03-23 20:58:41 +03:00
|
|
|
|
2002-09-22 21:15:13 +04:00
|
|
|
# For every group, we need to know if there is ANY bug_group_map
|
|
|
|
# record putting the current bug in that group and if there is ANY
|
|
|
|
# user_group_map record putting the user in that group.
|
|
|
|
# The LEFT JOINs are checking for record existence.
|
|
|
|
#
|
|
|
|
SendSQL("SELECT DISTINCT groups.id, name, description," .
|
|
|
|
" bug_group_map.group_id IS NOT NULL," .
|
|
|
|
" user_group_map.group_id IS NOT NULL," .
|
|
|
|
" isactive" .
|
|
|
|
" FROM groups" .
|
|
|
|
" LEFT JOIN bug_group_map" .
|
|
|
|
" ON bug_group_map.group_id = groups.id" .
|
|
|
|
" AND bug_id = $bug{'bug_id'}" .
|
|
|
|
" LEFT JOIN user_group_map" .
|
|
|
|
" ON user_group_map.group_id = groups.id" .
|
|
|
|
" AND user_id = $::userid" .
|
|
|
|
" AND NOT isbless" .
|
|
|
|
" WHERE isbuggroup");
|
|
|
|
|
|
|
|
$user{'inallgroups'} = 1;
|
2002-03-23 20:58:41 +03:00
|
|
|
|
2002-09-22 21:15:13 +04:00
|
|
|
while (MoreSQLData()) {
|
|
|
|
my ($groupid, $name, $description, $ison, $ingroup, $isactive)
|
|
|
|
= FetchSQLData();
|
|
|
|
|
|
|
|
$bug{'inagroup'} = 1 if ($ison);
|
|
|
|
|
|
|
|
# For product groups, we only want to display the checkbox if either
|
|
|
|
# (1) The bit is already set, or
|
|
|
|
# (2) The user is in the group, but either:
|
|
|
|
# (a) The group is a product group for the current product, or
|
|
|
|
# (b) The group name isn't a product name
|
|
|
|
# This means that all product groups will be skipped, but
|
|
|
|
# non-product bug groups will still be displayed.
|
|
|
|
if($ison ||
|
|
|
|
($isactive && ($ingroup && (!Param("usebuggroups") || ($name eq $bug{'product'}) ||
|
|
|
|
(!defined $::proddesc{$name})))))
|
|
|
|
{
|
|
|
|
$user{'inallgroups'} &= $ingroup;
|
2002-03-23 20:58:41 +03:00
|
|
|
|
2002-09-22 21:15:13 +04:00
|
|
|
push (@groups, { "bit" => $groupid,
|
|
|
|
"ison" => $ison,
|
|
|
|
"ingroup" => $ingroup,
|
|
|
|
"description" => $description });
|
2000-07-14 03:12:52 +04:00
|
|
|
}
|
2002-09-22 21:15:13 +04:00
|
|
|
}
|
2002-03-23 20:58:41 +03:00
|
|
|
|
2002-09-22 21:15:13 +04:00
|
|
|
# If the bug is restricted to a group, get flags that allow
|
|
|
|
# the user to set whether or not the reporter
|
|
|
|
# and cc list can see the bug even if they are not members of all
|
|
|
|
# groups to which the bug is restricted.
|
|
|
|
if ($bug{'inagroup'}) {
|
|
|
|
|
|
|
|
# Determine whether or not the bug is always accessible by the
|
|
|
|
# reporter, QA contact, and/or users on the cc: list.
|
|
|
|
SendSQL("SELECT reporter_accessible, cclist_accessible
|
|
|
|
FROM bugs
|
|
|
|
WHERE bug_id = $id
|
|
|
|
");
|
|
|
|
($bug{'reporter_accessible'},
|
|
|
|
$bug{'cclist_accessible'}) = FetchSQLData();
|
1998-09-16 01:49:26 +04:00
|
|
|
}
|
2002-04-15 06:19:19 +04:00
|
|
|
$vars->{'groups'} = \@groups;
|
2000-07-14 03:12:52 +04:00
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
my $movers = Param("movers");
|
|
|
|
$user{'canmove'} = Param("move-enabled")
|
|
|
|
&& (defined $::COOKIE{"Bugzilla_login"})
|
2002-06-14 20:56:20 +04:00
|
|
|
&& ($::COOKIE{"Bugzilla_login"} =~ /$movers/);
|
2002-03-23 20:58:41 +03:00
|
|
|
|
|
|
|
# User permissions
|
|
|
|
|
|
|
|
# In the below, if the person hasn't logged in ($::userid == 0), then
|
|
|
|
# we treat them as if they can do anything. That's because we don't
|
|
|
|
# know why they haven't logged in; it may just be because they don't
|
|
|
|
# use cookies. Display everything as if they have all the permissions
|
|
|
|
# in the world; their permissions will get checked when they log in
|
|
|
|
# and actually try to make the change.
|
|
|
|
$user{'canedit'} = $::userid == 0
|
|
|
|
|| $::userid == $bug{'reporter'}
|
|
|
|
|| $::userid == $bug{'qa_contact'}
|
|
|
|
|| $::userid == $bug{'assigned_to'}
|
2002-07-09 05:17:17 +04:00
|
|
|
|| UserInGroup("editbugs");
|
|
|
|
$user{'canconfirm'} = ($::userid == 0)
|
|
|
|
|| UserInGroup("canconfirm")
|
|
|
|
|| UserInGroup("editbugs");
|
2002-03-23 20:58:41 +03:00
|
|
|
|
|
|
|
# Bug states
|
|
|
|
$bug{'isunconfirmed'} = ($bug{'bug_status'} eq $::unconfirmedstate);
|
|
|
|
$bug{'isopened'} = IsOpenedState($bug{'bug_status'});
|
|
|
|
|
|
|
|
# People involved with the bug
|
|
|
|
$bug{'assigned_to_email'} = DBID_to_name($bug{'assigned_to'});
|
|
|
|
$bug{'assigned_to'} = DBID_to_real_or_loginname($bug{'assigned_to'});
|
|
|
|
$bug{'reporter'} = DBID_to_real_or_loginname($bug{'reporter'});
|
|
|
|
$bug{'qa_contact'} = $bug{'qa_contact'} > 0 ?
|
|
|
|
DBID_to_name($bug{'qa_contact'}) : "";
|
|
|
|
|
|
|
|
my $ccset = new RelationSet;
|
|
|
|
$ccset->mergeFromDB("SELECT who FROM cc WHERE bug_id=$id");
|
|
|
|
|
|
|
|
my @cc = $ccset->toArrayOfStrings();
|
|
|
|
$bug{'cc'} = \@cc if $cc[0];
|
|
|
|
|
|
|
|
# Next bug in list (if there is one)
|
2002-04-15 06:19:19 +04:00
|
|
|
my @bug_list;
|
2002-03-23 20:58:41 +03:00
|
|
|
if ($::COOKIE{"BUGLIST"} && $id)
|
|
|
|
{
|
2002-04-15 06:19:19 +04:00
|
|
|
@bug_list = split(/:/, $::COOKIE{"BUGLIST"});
|
2002-03-23 20:58:41 +03:00
|
|
|
}
|
2002-04-15 06:19:19 +04:00
|
|
|
$vars->{'bug_list'} = \@bug_list;
|
1998-09-16 01:49:26 +04:00
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
$bug{'comments'} = GetComments($bug{'bug_id'});
|
1998-09-16 01:49:26 +04:00
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
# This is length in number of comments
|
|
|
|
$bug{'longdesclength'} = scalar(@{$bug{'comments'}});
|
1998-09-16 01:49:26 +04:00
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
# Add the bug and user hashes to the variables
|
|
|
|
$vars->{'bug'} = \%bug;
|
2002-05-09 01:25:15 +04:00
|
|
|
$vars->{'user'} = \%user;
|
2000-01-15 01:35:49 +03:00
|
|
|
|
2002-03-23 20:58:41 +03:00
|
|
|
# Generate and return the UI (HTML page) from the appropriate template.
|
2002-04-24 11:24:50 +04:00
|
|
|
$template->process("bug/edit.html.tmpl", $vars)
|
|
|
|
|| ThrowTemplateError($template->error());
|
2002-03-23 20:58:41 +03:00
|
|
|
}
|
|
|
|
|
1999-01-28 00:17:10 +03:00
|
|
|
1;
|
2002-07-06 13:33:39 +04:00
|
|
|
|