summaryrefslogtreecommitdiffstats
path: root/random.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-01-26 03:00:32 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-01-26 03:38:46 -0500
commitef4d3660605efc7f1328d4533b0f4bfb6c1107e2 (patch)
treee4377fb129a899e65aaaf421f8c97098aecaedd5 /random.php
parent8a750c3e875d590d351c3042570a134fcdf03e5d (diff)
downloadampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.tar.gz
ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.tar.bz2
ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.zip
Cosmetics: death to tabs
The refactoring I've been doing has reminded me of my strong preference for spaces, and I feel inclined to impose my will on the tree.
Diffstat (limited to 'random.php')
-rw-r--r--random.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/random.php b/random.php
index 7ec9676b..38f9ec20 100644
--- a/random.php
+++ b/random.php
@@ -1,5 +1,5 @@
<?php
-/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
+/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
/**
*
* LICENSE: GNU General Public License, version 2 (GPLv2)
@@ -25,17 +25,17 @@ require_once 'lib/init.php';
UI::show_header();
switch ($_REQUEST['action']) {
- case 'get_advanced':
- $object_ids = Random::advanced($_REQUEST['type'], $_POST);
+ case 'get_advanced':
+ $object_ids = Random::advanced($_REQUEST['type'], $_POST);
- // We need to add them to the active playlist
- foreach ($object_ids as $object_id) {
- $GLOBALS['user']->playlist->add_object($object_id, 'song');
- }
- case 'advanced':
- default:
- require_once Config::get('prefix') . '/templates/show_random.inc.php';
- break;
+ // We need to add them to the active playlist
+ foreach ($object_ids as $object_id) {
+ $GLOBALS['user']->playlist->add_object($object_id, 'song');
+ }
+ case 'advanced':
+ default:
+ require_once Config::get('prefix') . '/templates/show_random.inc.php';
+ break;
} // end switch
UI::show_footer();