diff options
author | ivan <ivan> | 2009-02-07 08:23:10 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-02-07 08:23:10 +0000 |
commit | 7d751137371d5e6e263265e7aa37433ad7f871c3 (patch) | |
tree | 1f7d0586cb3afe82bc535d61f364449d348c550b /httemplate/view/cust_main/packages.html | |
parent | e7ab6cb3a3e2b1cb9a33fa162356b428f02bae2d (diff) |
optimize customer view: avoid looking up config values inside loops, RT#4728
Diffstat (limited to 'httemplate/view/cust_main/packages.html')
-rwxr-xr-x | httemplate/view/cust_main/packages.html | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index afd9941..5c0ee48 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -145,10 +145,24 @@ Current packages % $bgcolor = $bgcolor1; % } % +% my $countrydefault = scalar($conf->config('countrydefault')) || 'US'; % my %iopt = ( -% 'bgcolor' => $bgcolor, -% 'cust_pkg' => $cust_pkg, -% 'part_pkg' => $cust_pkg->part_pkg, +% 'bgcolor' => $bgcolor, +% 'cust_pkg' => $cust_pkg, +% 'part_pkg' => $cust_pkg->part_pkg, +% +% #for services.html and status.html +% 'cust_pkg-display_times' => $conf->exists('cust_pkg-display_times'), +% +% #for location.html +% 'countrydefault' => $countrydefault, +% 'statedefault' => ( scalar($conf->config('statedefault')) +% || ($countrydefault eq 'US' ? 'CA' : '') ), +% +% #for services.html +% 'svc_external-skip_manual' => $conf->exists('svc_external-skip_manual'), +% 'legacy_link' => $conf->exists('legacy_link'), +% % ); <!--pkgnum: <% $cust_pkg->pkgnum %>--> |