OSDN Git Service

Model::Skins: fix to run
authorhylom <hylom@users.sourceforge.jp>
Fri, 28 Oct 2016 19:03:55 +0000 (04:03 +0900)
committerhylom <hylom@users.sourceforge.jp>
Fri, 28 Oct 2016 19:03:55 +0000 (04:03 +0900)
src/newslash_web/lib/Newslash/Model/Skins.pm

index e7cec98..6555e07 100644 (file)
@@ -39,7 +39,7 @@ sub getSkin {
 ########################################################
 sub getSkins {
     my($self, $options) = @_;
-    my $db = $self->new_instance_of('LegacyDB');
+    my $db = $self->new_instance_of('Newslash::Model::LegacyDB');
 
     my $ref_func = sub{
        my($self, $options) = @_;
@@ -106,7 +106,7 @@ sub getSkins {
        return $skins_ref;
     };
     #return $self->cache_local_and_memcached('getSkins', $ref_func);
-    return $ref_func($options);
+    return $ref_func->($options);
 }