summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2010-03-09 08:05:40 +0000
committerivan <ivan>2010-03-09 08:05:40 +0000
commit92d0bc2bf6c4c6d43c7209b9bf437da05d2cfa8f (patch)
tree66d62961b6447d44b7a38d1b6b47817a3623636d
parentffe23c8e09cefb514363aca032de429ff25ed33d (diff)
date editing fix, fallout from date_format
-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 );