#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
#
# END BPS TAGGED BLOCK }}}
-use warnings;
use strict;
+use warnings;
package RT::Plugin;
use File::ShareDir;
my $plugin_etc_dir = $plugin->Path('etc');
-See also L</ComponentRoot>, L</PoDir> and other shortcut methods.
+See also L</ComponentRoot>, L</StaticDir>, L</PoDir> and other shortcut methods.
=cut
sub ComponentRoot { return $_[0]->Path('html') }
+=head2 StaticDir
+
+Returns the directory this plugin has installed its static files into
+
+=cut
+
+sub StaticDir { return $_[0]->Path('static') }
+
=head2 PoDir
Returns the directory this plugin has installed its message catalogs into.
sub PoDir { return $_[0]->Path('po') }
-eval "require RT::Plugin_Vendor";
-if ($@ && $@ !~ qr{^Can't locate RT/Plugin_Vendor.pm}) {
- die $@;
-};
-
-eval "require RT::Plugin_Local";
-if ($@ && $@ !~ qr{^Can't locate RT/Plugin_Local.pm}) {
- die $@;
-};
+RT::Base->_ImportOverlays();
1;