=cut
-use strict;
-use warnings;
+use Modern::Perl;
use CGI qw ( -utf8 );
use MIME::Base64;
}
}
my $variable = $input->param('variable');
- C4::Context->set_preference($variable, $value) unless C4::Context->config('demo');
+ C4::Context->set_preference($variable, $value);
}
################## ADD_FORM ##################################
$value = encode_base64($value);
}
- C4::Context->set_preference( $variable, $value, $expl, $type, $options )
- unless C4::Context->config('demo');
+ C4::Context->set_preference( $variable, $value, $expl, $type, $options );
print $input->redirect("/cgi-bin/koha/admin/systempreferences.pl?tab=");
exit;
################## DELETE_CONFIRM ##################################
'/prog/en/modules/admin/preferences';
# Get all .pref file names
opendir ( my $fh, $path_pref_en );
- my @pref_files = grep { /.pref/ } readdir($fh);
+ my @pref_files = grep { /.pref$/ } readdir($fh);
close $fh;
my @names = ();