@@ -, +, @@ - Apply the unit tests patch - Run: $ kshell k$ prove t/db_dependent/Plugins.t - Apply this patch - Run: k$ prove t/db_dependent/Plugins.t - Sign off :-D --- Koha/Plugins/Base.pm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) --- a/Koha/Plugins/Base.pm +++ a/Koha/Plugins/Base.pm @@ -69,6 +69,8 @@ sub new { $self->store_data({ '__INSTALLED_VERSION__' => $plugin_version }); } + $self->{_bundle_path} = abs_path($self->mbf_dir); + return $self; } @@ -210,6 +212,20 @@ sub output_html { output_with_http_headers( $self->{cgi}, undef, $data, 'html', $status, $extra_options ); } +=head2 bundle_path + + my $bundle_path = $self->bundle_path + +Returns the directory in which bundled files are. + +=cut + +sub bundle_path { + my ($self) = @_; + + return $self->{_bundle_path}; +} + =head2 output $self->output( $data, $content_type[, $status[, $extra_options]]); --