summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-07-14 04:56:52 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-07-14 04:56:52 +0000
commit0a184d3db49a3263c1336fd679df898ca6800f4a (patch)
tree7d61e5990df4629ee8b2c3a1da722f635791896e /admin
parent5c510357a83f6a25ede6362a267c9d3569daf005 (diff)
downloadampache-0a184d3db49a3263c1336fd679df898ca6800f4a.tar.gz
ampache-0a184d3db49a3263c1336fd679df898ca6800f4a.tar.bz2
ampache-0a184d3db49a3263c1336fd679df898ca6800f4a.zip
make the disabled songs link show something, need to make a custom view for that as the song one i not really valid, also played around with the caching a bit
Diffstat (limited to 'admin')
-rw-r--r--admin/flag.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/admin/flag.php b/admin/flag.php
index bc5d9474..20b7524d 100644
--- a/admin/flag.php
+++ b/admin/flag.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2007 Ampache.org
+ Copyright (c) Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@@ -18,7 +18,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-
require '../lib/init.php';
if (!Access::check('interface','100')) {
@@ -291,9 +290,17 @@ switch ($_REQUEST['action']) {
} // end else
show_confirmation(_('Songs Enabled'),_('The requested song(s) have been enabled'),return_referer());
break;
+ case 'show_disabled':
+ $disabled = Flag::get_disabled();
+ Browse::set_type('song');
+ Browse::set_static_content(1);
+ Browse::save_objects($disabled);
+ Browse::show_objects($disabled);
+ break;
default:
case 'show_flagged':
$flagged = Flag::get_all();
+ Flag::build_cache($flagged);
Browse::set_type('flagged');
Browse::set_static_content(1);
Browse::save_objects($flagged);