summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-02 20:02:10 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-02 20:02:10 +0000
commit9658a28b1d64a2b15d3fa69fd8146d49b4793b28 (patch)
treef1275e0880f318cb3b763a67544e1c521567df05 /admin
parentf08575e36776ff1521ccf474219d57b2d7ce9574 (diff)
downloadampache-9658a28b1d64a2b15d3fa69fd8146d49b4793b28.tar.gz
ampache-9658a28b1d64a2b15d3fa69fd8146d49b4793b28.tar.bz2
ampache-9658a28b1d64a2b15d3fa69fd8146d49b4793b28.zip
fixed catalog clean
Diffstat (limited to 'admin')
-rw-r--r--admin/catalog.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/admin/catalog.php b/admin/catalog.php
index e2e521aa..457ea365 100644
--- a/admin/catalog.php
+++ b/admin/catalog.php
@@ -127,22 +127,20 @@ switch ($_REQUEST['action']) {
break;
case 'clean_all_catalogs':
$catalog = new Catalog();
- $_REQUEST['catalogs'] = $catalog->get_catalog_ids();
+ $_REQUEST['catalogs'] = Catalog::get_catalog_ids();
case 'clean_catalog':
/* If they are in demo mode stop them here */
- if (conf('demo_mode')) { break; }
+ if (Config::get('demo_mode')) { break; }
// Make sure they checked something
if (isset($_REQUEST['catalogs'])) {
foreach($_REQUEST['catalogs'] as $catalog_id) {
- echo "<div class=\"confirmation-box\">";
$catalog = new Catalog($catalog_id);
$catalog->clean_catalog(0,1);
- echo "</div>";
} // end foreach catalogs
}
- $url = conf('web_path') . '/admin/index.php';
+ $url = Config::get('web_path') . '/admin/index.php';
$title = _('Catalog Cleaned');
$body = '';
show_confirmation($title,$body,$url);