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:
parent
f347754d52
commit
0f57ecbb37
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
[% USE Koha %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › 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 %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue