summaryrefslogtreecommitdiff
path: root/httemplate/edit/REAL_cust_pkg.cgi
diff options
context:
space:
mode:
authorivan <ivan>2010-03-09 08:05:39 +0000
committerivan <ivan>2010-03-09 08:05:39 +0000
commitcb7811b88f8b1bc8d4364c89cd7130a6b5e1bb74 (patch)
treed45e455324609a886bc0636e562c976e88ab0d2b /httemplate/edit/REAL_cust_pkg.cgi
parent2b33f138c2a795a4e49967b2f4bcc13c56531087 (diff)
date editing fix, fallout from date_format
Diffstat (limited to 'httemplate/edit/REAL_cust_pkg.cgi')
-rwxr-xr-xhttemplate/edit/REAL_cust_pkg.cgi11
1 files changed, 7 insertions, 4 deletions
diff --git a/httemplate/edit/REAL_cust_pkg.cgi b/httemplate/edit/REAL_cust_pkg.cgi
index 18d4415c6..29c8ca63f 100755
--- a/httemplate/edit/REAL_cust_pkg.cgi
+++ b/httemplate/edit/REAL_cust_pkg.cgi
@@ -128,16 +128,19 @@
</FORM>
<% include('/elements/footer.html') %>
+<%shared>
+my $conf = new FS::Conf;
+my $date_format = $conf->config('date_format') || '%m/%d/%Y';
+
+my $format = $date_format. ' %T %z (%Z)';
+
+</%shared>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Edit customer package dates');
-my $conf = new FS::Conf;
-my $date_format = $conf->config('date_format') || '%m/%d/%Y';
-
-my $format = $date_format. ' %T %z (%Z)';
my $error = '';
my( $pkgnum, $cust_pkg );