From: Andrew Dolgov Date: Sun, 11 Dec 2011 09:03:17 +0000 (+0400) Subject: remove toggleEvenOdd() X-Git-Tag: 1.5.8~33 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=aea655489ccd1472794de190a03b2d3b2b4bf8e9;p=tt-rss.git remove toggleEvenOdd() --- diff --git a/functions.php b/functions.php index cad0b21c..0f589e1e 100644 --- a/functions.php +++ b/functions.php @@ -2273,13 +2273,6 @@ } } - function toggleEvenOdd($a) { - if ($a == "even") - return "odd"; - else - return "even"; - } - // Session caching removed due to causing wrong redirects to upgrade // script when get_schema_version() is called on an obsolete session // created on a previous schema version. diff --git a/modules/pref-users.php b/modules/pref-users.php index 8586abf2..984b2c55 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -83,7 +83,7 @@ print "
  • $feed_icon ".$line["title"]."
  • "; - $row_class = toggleEvenOdd($row_class); + $row_class = $row_class == "even" ? "odd" : "even"; }