From 7160bfb71d993da3029f0fd47c136000e1fc26fb Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 9 Feb 2016 14:45:51 +0000 Subject: [PATCH] Bug 9021 [QA Followup] - Use TT plugin instead of passing syspref via script --- admin/admin-home.pl | 22 +++++++++------------- .../prog/en/modules/admin/admin-home.tt | 3 ++- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/admin/admin-home.pl b/admin/admin-home.pl index 327d24d..08c6ed1 100755 --- a/admin/admin-home.pl +++ b/admin/admin-home.pl @@ -22,20 +22,16 @@ use CGI qw ( -utf8 ); use C4::Auth; use C4::Output; - - my $query = new CGI; -my ($template, $loggedinuser, $cookie) - = get_template_and_user({template_name => "admin/admin-home.tt", - query => $query, - type => "intranet", - authnotrequired => 0, - flagsrequired => {parameters => '*'}, - debug => 1, - }); - -$template->param( - SMSSendDriver => C4::Context->preference('SMSSendDriver'), +my ( $template, $loggedinuser, $cookie ) = get_template_and_user( + { + template_name => "admin/admin-home.tt", + query => $query, + type => "intranet", + authnotrequired => 0, + flagsrequired => { parameters => '*' }, + debug => 1, + } ); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt index d3285c7..d0f65f2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt @@ -1,3 +1,4 @@ +[% USE Koha %] [% INCLUDE 'doc-head-open.inc' %] Koha › Administration [% INCLUDE 'doc-head-close.inc' %] @@ -110,7 +111,7 @@
Hide or show columns for tables.
Audio alerts
Define which events trigger which sounds
- [% IF SMSSendDriver == 'Email' %] + [% IF Koha.Preference('SMSSendDriver') == 'Email' %]
SMS cellular providers
Define a list of cellular providers for sending SMS messages via email.
[% END %] -- 2.1.4