From: Martin Mares Date: Wed, 19 Aug 2020 19:23:41 +0000 (+0200) Subject: UCW::Gallery::Web: try_get is exported to themes X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7525e7944b4dbf294e66858adf0815fda30c64f5;p=gallery.git UCW::Gallery::Web: try_get is exported to themes --- diff --git a/lib/UCW/Gallery/Web.pm b/lib/UCW/Gallery/Web.pm index 78445c6..ba116a0 100644 --- a/lib/UCW/Gallery/Web.pm +++ b/lib/UCW/Gallery/Web.pm @@ -27,6 +27,11 @@ sub get($$) { return $self->{gal}->get($key); } +sub try_get($$) { + my ($self, $key) = @_; + return $self->{gal}->try_get($key); +} + sub extras($$) { my ($self, $key) = @_; my $val = $self->get($key);