diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-03-20 06:38:47 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-03-20 06:38:47 +0000 |
commit | e1113fa54352ee57b8b2287f1a2e3b2a6896932e (patch) | |
tree | 870d1fa598f40bb992c4b132fe7890905655d0b7 /admin/catalog.php | |
parent | 4cf2e859ee0b0b69f7df5db6728d08bb4652f621 (diff) | |
download | ampache-e1113fa54352ee57b8b2287f1a2e3b2a6896932e.tar.gz ampache-e1113fa54352ee57b8b2287f1a2e3b2a6896932e.tar.bz2 ampache-e1113fa54352ee57b8b2287f1a2e3b2a6896932e.zip |
tweaked the style removing some unneeded mojo and javascripted the catalog build
Diffstat (limited to 'admin/catalog.php')
-rw-r--r-- | admin/catalog.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/admin/catalog.php b/admin/catalog.php index c6d7f322..193c232b 100644 --- a/admin/catalog.php +++ b/admin/catalog.php @@ -104,12 +104,21 @@ switch ($_REQUEST['action']) { /* Make sure they aren't in demo mode */ if (conf('demo_mode')) { break; } + if (!$_REQUEST['catalogs']) { + $_REQUEST['catalogs'] = array(); + $catalogs = Catalog::get_catalogs(); + } + /* This runs the clean/verify/add in that order */ foreach ($_REQUEST['catalogs'] as $catalog_id) { $catalog = new Catalog($catalog_id); + $catalogs[] = $catalog; + } + + foreach ($catalogs as $catalog) { $catalog->clean_catalog(); $catalog->count = 0; - $catalog->update_catalog(); + $catalog->verify_catalog(); $catalog->count = 0; $catalog->add_to_catalog(); } |