diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 03:00:32 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 03:38:46 -0500 |
commit | ef4d3660605efc7f1328d4533b0f4bfb6c1107e2 (patch) | |
tree | e4377fb129a899e65aaaf421f8c97098aecaedd5 /random.php | |
parent | 8a750c3e875d590d351c3042570a134fcdf03e5d (diff) | |
download | ampache-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.php | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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(); |