summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-11 13:03:17 +0400
committerAndrew Dolgov <[email protected]>2011-12-11 19:37:03 +0400
commitaea655489ccd1472794de190a03b2d3b2b4bf8e9 (patch)
treee8b4ee99160f399395e4dcf4e8674a9d9d05ff22
parent63bb227547133885d8088704519a2f8ad54e8b44 (diff)
remove toggleEvenOdd()
-rw-r--r--functions.php7
-rw-r--r--modules/pref-users.php2
2 files changed, 1 insertions, 8 deletions
diff --git a/functions.php b/functions.php
index cad0b21c3..0f589e1ee 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 8586abf2d..984b2c55b 100644
--- a/modules/pref-users.php
+++ b/modules/pref-users.php
@@ -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";
}