From 0f57ecbb37e12710479b50746d35a17635a2b64a 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 Signed-off-by: Mark Tompsett Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- 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 327d24dedc..08c6ed196a 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 d3285c7567..d0f65f2241 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.39.5