]> git.mjollnir.org Git - cil.git/commitdiff
Fix which class name the new 'basething' should be blessed under.
authorAndrew Chilton <andychilton@gmail.com>
Sat, 21 Jun 2008 13:02:12 +0000 (01:02 +1200)
committerAndrew Chilton <andychilton@gmail.com>
Sat, 21 Jun 2008 13:02:12 +0000 (01:02 +1200)
lib/CIL/Base.pm

index ed2c88a83cf64c947b18ebb96ae91520b39f2f22..843677fa3419c0c7a2ad82681192a1381dcba636 100644 (file)
@@ -42,7 +42,7 @@ sub new_from_name {
         unless -f $filename;
 
     my $data = CIL::Utils->parse_cil_file($filename, 'Description');
-    my $issue = CIL::Issue->new_from_data( $name, $data );
+    my $issue = $class->new_from_data( $name, $data );
     return $issue;
 }