From c1c1c5eddbc157d946e3d6493cf28808caa8e71f Mon Sep 17 00:00:00 2001 From: Srdjan Date: Tue, 2 Aug 2016 13:37:56 +1200 Subject: [PATCH] bug_7520 Added helper "syspref" to Mojolicious handlers --- Koha/REST/V1.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Koha/REST/V1.pm b/Koha/REST/V1.pm index e307552..ad2110a 100644 --- a/Koha/REST/V1.pm +++ b/Koha/REST/V1.pm @@ -56,6 +56,8 @@ sub startup { validate => 1, spec_path => '/spec' }); + + $self->helper(syspref => sub { C4::Context->preference($_[1]) }); } =head3 authenticate_api_request -- 2.7.4