diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-11-26 20:23:23 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-11-26 20:23:23 +0000 |
commit | e7ddbb822ac6251bc2204b86495d86f631937d1f (patch) | |
tree | abe0bb27665e7268fad696244c2408871982cd0c | |
parent | fb796fa725413b0404a05b44ced6e3216304ab08 (diff) | |
download | ikiwiki-e7ddbb822ac6251bc2204b86495d86f631937d1f.tar ikiwiki-e7ddbb822ac6251bc2204b86495d86f631937d1f.tar.gz |
bugs
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 2 | ||||
-rw-r--r-- | IkiWiki/Plugin/poll.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 890cdb446..eb9708a8c 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -113,7 +113,7 @@ sub preprocess_inline (@) { #{{{ my $file = $pagesources{$page}; my $type = pagetype($file); if (! $raw || ($raw && ! defined $type)) { - if (! $archive && $quick) { + unless ($archive && $quick) { # Get the content before populating the # template, since getting the content uses # the same template if inlines are nested. diff --git a/IkiWiki/Plugin/poll.pm b/IkiWiki/Plugin/poll.pm index b862ccdaa..e92d0292f 100644 --- a/IkiWiki/Plugin/poll.pm +++ b/IkiWiki/Plugin/poll.pm @@ -45,7 +45,7 @@ sub preprocess (@) { #{{{ my $ret=""; foreach my $choice (@choices) { - my $percent=int($choices{$choice} / $total * 100); + my $percent=$total > 0 ? int($choices{$choice} / $total * 100) : 0; if ($percent) { $ret.="$choice ($percent%) "; } |