summaryrefslogtreecommitdiffstats
path: root/playlist.php
diff options
context:
space:
mode:
Diffstat (limited to 'playlist.php')
-rw-r--r--playlist.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/playlist.php b/playlist.php
index 98a6a9b8..44c40777 100644
--- a/playlist.php
+++ b/playlist.php
@@ -173,6 +173,19 @@ switch ($action) {
show_playlist($playlist);
break;
+ case 'prune_empty':
+ /* Make sure they have permission */
+ if (!$GLOBALS['user']->has_access(100)) {
+ access_denied();
+ break;
+ }
+
+ prune_empty_playlists();
+ $url = conf('web_path') . '/playlist.php';
+ $title = _('Empty Playlists Deleted');
+ $body = '';
+ show_confirmation($title,$body,$url);
+ break;
case 'normalize_tracks':
/* Make sure they have permission */
if (!$playlist->has_access()) {