]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove toggleEvenOdd()
authorAndrew Dolgov <fox@fakecake.org>
Sun, 11 Dec 2011 09:03:17 +0000 (13:03 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Sun, 11 Dec 2011 15:37:03 +0000 (19:37 +0400)
functions.php
modules/pref-users.php

index cad0b21c33536405d2fb6cf3519c42f5e0e855cd..0f589e1ee8d37beb0cbed063d9cef7863d335c56 100644 (file)
                }
        }
 
-       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.
index 8586abf2d584dcf70d16eed3d774cab83a663e02..984b2c55bdaa19a468748f707c442199f12e9a57 100644 (file)
@@ -83,7 +83,7 @@
 
                                print "<li class=\"$row_class\">$feed_icon&nbsp;<a href=\"".$line["site_url"]."\">".$line["title"]."</a></li>";
 
-                               $row_class = toggleEvenOdd($row_class);
+                               $row_class = $row_class == "even" ? "odd" : "even";
 
                        }