[Koha-patches] [PATCH] bug_7520 Added helper "syspref" to Mojolicious handlers
Srdjan
srdjan at catalyst.net.nz
Tue Aug 2 03:43:48 CEST 2016
---
Koha/REST/V1.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Koha/REST/V1.pm b/Koha/REST/V1.pm
index b692a38..b8f2bd6 100644
--- a/Koha/REST/V1.pm
+++ b/Koha/REST/V1.pm
@@ -25,6 +25,8 @@ use Koha::Patrons;
sub startup {
my $self = shift;
+ $self->helper(syspref => sub { C4::Context->preference($_[1]) });
+
my $route = $self->routes->under->to(
cb => sub {
my $c = shift;
--
2.7.4
More information about the Koha-patches
mailing list