]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
exit with error if Text::Typography cannot be loaded
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 5 Jun 2007 19:06:54 +0000 (19:06 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 5 Jun 2007 19:06:54 +0000 (19:06 +0000)
IkiWiki/Plugin/typography.pm

index 5073d51d31a79858bfe68c3809a92f7c09a03ee0..fe69968981029f07e0a60c2903bfb9e02fe6a4a6 100644 (file)
@@ -22,7 +22,7 @@ sub sanitize (@) { #{{{
        my %params=@_;
 
        eval q{use Text::Typography};
-       return $params{content} if $@;
+       error($@) if $@;
 
        my $attributes=defined $config{typographyattributes} ? $config{typographyattributes} : '3';
        return Text::Typography::typography($params{content}, $attributes);