]> git.deb.at Git - pkg/blosxom.git/commitdiff
Avoid "conditional and" for running plugins "date"
authorBarijaona Ramaholimihaso <barijaona@users.sourceforge.net>
Sat, 22 Sep 2007 09:09:19 +0000 (09:09 +0000)
committerBarijaona Ramaholimihaso <barijaona@users.sourceforge.net>
Sat, 22 Sep 2007 09:09:19 +0000 (09:09 +0000)
blosxom.cgi

index 2875b44a6b8917df9f5c4789bf14c44d2a9523ef..2e87b759c77a8acbaebd1749e6cf1215df584858 100755 (executable)
@@ -505,7 +505,13 @@ sub generate {
       my $date = (&$template($path,'date',$flavour));
       
       # Plugins: Date
-      foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('date') and $entries = $plugin->date($currentdir, \$date, $files{$path_file}, $dw,$mo,$mo_num,$da,$ti,$yr) }
+      foreach my $plugin (@plugins) {
+          if ( $plugins{$plugin} > 0 and $plugin->can('date') ) {
+              $entries
+                  = $plugin->date( $currentdir, \$date, $files{$path_file}, $dw,
+                  $mo, $mo_num, $da, $ti, $yr );
+          }
+      }
   
       $date = &$interpolate($date);