Bug 9021 [QA Followup] - Use TT plugin instead of passing syspref via script

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Kyle M Hall 2016-02-09 14:45:51 +00:00
parent f347754d52
commit 0f57ecbb37
2 changed files with 11 additions and 14 deletions

View File

@ -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;

View File

@ -1,3 +1,4 @@
[% USE Koha %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration</title>
[% INCLUDE 'doc-head-close.inc' %]
@ -110,7 +111,7 @@
<dd>Hide or show columns for tables.</dd>
<dt><a href="/cgi-bin/koha/admin/audio_alerts.pl">Audio alerts</a></dt>
<dd>Define which events trigger which sounds</dd>
[% IF SMSSendDriver == 'Email' %]
[% IF Koha.Preference('SMSSendDriver') == 'Email' %]
<dt><a href="/cgi-bin/koha/admin/sms_providers.pl">SMS cellular providers</a></dt>
<dd>Define a list of cellular providers for sending SMS messages via email.</dd>
[% END %]