Use fancy plural function

This commit is contained in:
tslocum 2010-11-29 16:59:28 -08:00
parent 6a6459fb13
commit 102e25c19a
1 changed files with 1 additions and 5 deletions

View File

@ -97,11 +97,7 @@ EOF;
if ($post['parent'] == 0) {
if (!$isrespage && $post["omitted"] > 0) {
$return .= '<span class="omittedposts">' . $post['omitted'] . ' post';
if ($post["omitted"] != "1") {
$return .= "s";
}
$return .= ' omitted. Click Reply to view.</span>';
$return .= '<span class="omittedposts">' . $post['omitted'] . ' ' . plural("post", $post["omitted"]) . ' omitted. Click Reply to view.</span>';
}
} else {
$return .= <<<EOF