Lines 51-56
use C4::Languages qw( getTranslatedLanguages );
Link Here
|
51 |
use C4::ClassSource qw( GetClassSources GetClassSource ); |
51 |
use C4::ClassSource qw( GetClassSources GetClassSource ); |
52 |
use C4::Output qw( output_html_with_http_headers output_and_exit_if_error ); |
52 |
use C4::Output qw( output_html_with_http_headers output_and_exit_if_error ); |
53 |
use YAML::XS; |
53 |
use YAML::XS; |
|
|
54 |
use Koha::Config::Sysprefs; |
54 |
|
55 |
|
55 |
my %tabsysprefs; #we do no longer need to keep track of a tab per pref (yaml) |
56 |
my %tabsysprefs; #we do no longer need to keep track of a tab per pref (yaml) |
56 |
|
57 |
|
Lines 274-280
if ( $op eq 'update_and_reedit' ) {
Link Here
|
274 |
} |
275 |
} |
275 |
} |
276 |
} |
276 |
my $variable = $input->param('variable'); |
277 |
my $variable = $input->param('variable'); |
277 |
C4::Context->set_preference($variable, $value); |
278 |
Koha::Config::SysPrefs->set_preference($variable, $value); |
278 |
} |
279 |
} |
279 |
|
280 |
|
280 |
################## ADD_FORM ################################## |
281 |
################## ADD_FORM ################################## |
Lines 334-340
if ( $op eq 'add_form' ) {
Link Here
|
334 |
$value = encode_base64($value); |
335 |
$value = encode_base64($value); |
335 |
} |
336 |
} |
336 |
|
337 |
|
337 |
C4::Context->set_preference( $variable, $value, $expl, $type, $options ); |
338 |
Koha::Config::SysPrefs->set_preference( $variable, $value, $expl, $type, $options ); |
338 |
print $input->redirect("/cgi-bin/koha/admin/systempreferences.pl?tab="); |
339 |
print $input->redirect("/cgi-bin/koha/admin/systempreferences.pl?tab="); |
339 |
exit; |
340 |
exit; |
340 |
################## DELETE_CONFIRM ################################## |
341 |
################## DELETE_CONFIRM ################################## |
Lines 351-357
if ( $op eq 'add_form' ) {
Link Here
|
351 |
# called by delete_confirm, used to effectively confirm deletion of data in DB |
352 |
# called by delete_confirm, used to effectively confirm deletion of data in DB |
352 |
} elsif ( $op eq 'delete_confirmed' ) { |
353 |
} elsif ( $op eq 'delete_confirmed' ) { |
353 |
output_and_exit_if_error($input, $cookie, $template, { check => 'csrf_token' }); |
354 |
output_and_exit_if_error($input, $cookie, $template, { check => 'csrf_token' }); |
354 |
C4::Context->delete_preference($searchfield); |
355 |
Koha::Config::SysPrefs->delete_preference($searchfield); |
355 |
# END $OP eq DELETE_CONFIRMED |
356 |
# END $OP eq DELETE_CONFIRMED |
356 |
################## DEFAULT ################################## |
357 |
################## DEFAULT ################################## |
357 |
} else { # DEFAULT |
358 |
} else { # DEFAULT |