summaryrefslogtreecommitdiffstats
path: root/lib/ui.lib.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-01-26 00:52:50 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-01-26 00:52:50 -0500
commit5f02e4f43cb1423653c156e612da53e4c5938583 (patch)
tree062c545dbc8cb1c50f1629ce055fc6cc3dbe6e9e /lib/ui.lib.php
parent31920c88a7b109d789511f45502c6291a2e617a0 (diff)
downloadampache-5f02e4f43cb1423653c156e612da53e4c5938583.tar.gz
ampache-5f02e4f43cb1423653c156e612da53e4c5938583.tar.bz2
ampache-5f02e4f43cb1423653c156e612da53e4c5938583.zip
Move flip_class() from lib/ui.lib.php to UI
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r--lib/ui.lib.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php
index 0b56b221..45c87016 100644
--- a/lib/ui.lib.php
+++ b/lib/ui.lib.php
@@ -49,29 +49,6 @@ function show_confirmation($title,$text,$next_url,$cancel=0,$form_name='confirma
} // show_confirmation
/**
- * flip_class
- *
- * First called with an array of 2 class names. Subsequent calls reverse the
- * array then return the first element.
- *
- * @param array $array
- * @return mixed void or classname
- */
-function flip_class($array=0) {
-
- static $classes = array();
-
- if ($array) {
- $classes = $array;
- }
- else {
- $classes = array_reverse($classes);
- return $classes[0];
- }
-
-} // flip_class
-
-/**
* access_denied
* Throws an error if they try to do something that they aren't allowed to.
*/