diff --git a/contrib/tag_history/test.php b/contrib/tag_history/test.php index 0049cbf8..17a599e1 100644 --- a/contrib/tag_history/test.php +++ b/contrib/tag_history/test.php @@ -13,8 +13,8 @@ class TagHistoryTest extends ShimmieWebTestCase { $this->click("Revert To"); $this->assert_title("Image $image_id: pbx"); - $this->get_page("tag_history"); - $this->click("Global Tag History"); + $this->get_page("tag_history/all/1"); + $this->assert_title("Global Tag History"); $this->delete_image($image_id); $this->log_out(); diff --git a/core/util.inc.php b/core/util.inc.php index d32facdb..5ebbb8d5 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -172,15 +172,6 @@ function isValidDate($date) { return false; } -/** - * Return a pluraliser if necessary - * - * @retval string - */ -function plural($num, $single_form="", $plural_form="s") { - return ($num == 1) ? $single_form : $plural_form; -} - /** * Give a HTML string which shows an IP (if the user is allowed to see IPs), * and a link to ban that IP (if the user is allowed to ban IPs)