]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/ExtSearch.pm
lei_store: local storage for Local Email Interface
[public-inbox.git] / lib / PublicInbox / ExtSearch.pm
index 2a560935e7c7a0ad27458058e65155348b99e69e..410ae95854f6a2a4d2e572c26e8aceaa19ddd55a 100644 (file)
@@ -17,13 +17,13 @@ use DBI qw(:sql_types); # SQL_BLOB
 use parent qw(PublicInbox::Search);
 
 sub new {
-       my (undef, $topdir) = @_;
+       my ($class, $topdir) = @_;
        $topdir = File::Spec->canonpath($topdir);
        bless {
                topdir => $topdir,
                # xpfx => 'ei15'
                xpfx => "$topdir/ei".PublicInbox::Search::SCHEMA_VERSION
-       }, __PACKAGE__;
+       }, $class;
 }
 
 sub misc {