Commit 03f46040 authored by elky's avatar elky Committed by Marco Villegas
Browse files

Issue #1124448 by elky: Fixed format_plural() reports plural for singular down vote.

parent 3f1a5a14
Loading
Loading
Loading
Loading
+2 −2
Changes for vud.theme.inc: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ function vud_widget_proxy($content_id, $type, $tag, $widget_theme, $readonly=NUL
      $variables['class'] = 'neutral';
    }
  }
  $variables['vote_label'] = format_plural($vote_result, 'vote', 'votes');
  $variables['vote_label'] = format_plural(abs($vote_result), 'vote', 'votes');

  $variables['readonly'] = $readonly;
  $link_up = url("vote/$type/$content_id/1/$tag/$widget_theme/$token_up");
@@ -306,7 +306,7 @@ function vud_votes_proxy($content_id, $type, $tag, $widget_theme) {
      $variables['class'] = 'neutral';
    }
  }
  $variables['vote_label'] = format_plural($vote_result, 'vote', 'votes');
  $variables['vote_label'] = format_plural(abs($vote_result), 'vote', 'votes');

  vud_add_files('css', $plugin);  // Search and add the CSS files.
  vud_add_files('js', $plugin);   // Search and add the JS files.