diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-04 01:31:58 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-04 01:31:58 +0000 |
commit | 848a1bc5388301e128cb5c2c4d8dcb5d06721bb4 (patch) | |
tree | 55a165892eb2bfb486d3120ac376da0321413c35 /admin | |
parent | 3851c073e5b51059e60de5d79b78064c53075c04 (diff) | |
download | ampache-848a1bc5388301e128cb5c2c4d8dcb5d06721bb4.tar.gz ampache-848a1bc5388301e128cb5c2c4d8dcb5d06721bb4.tar.bz2 ampache-848a1bc5388301e128cb5c2c4d8dcb5d06721bb4.zip |
fixed lastfm gather album art and add
Diffstat (limited to 'admin')
-rw-r--r-- | admin/catalog.php | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/admin/catalog.php b/admin/catalog.php index 83d6a072..fa9b35fb 100644 --- a/admin/catalog.php +++ b/admin/catalog.php @@ -43,16 +43,14 @@ switch ($_REQUEST['action']) { $catalog = new Catalog(); $_REQUEST['catalogs'] = $catalog->get_catalog_ids(); case 'add_to_catalog': - if (conf('demo_mode')) { break; } + if (Config::get('demo_mode')) { break; } if ($_REQUEST['catalogs'] ) { foreach ($_REQUEST['catalogs'] as $catalog_id) { - echo "<div class=\"confirmation-box\">"; $catalog = new Catalog($catalog_id); $catalog->add_to_catalog(); - echo "</div>"; } } - $url = conf('web_path') . '/admin/index.php'; + $url = Config::get('web_path') . '/admin/index.php'; $title = _('Catalog Updated'); $body = ''; show_confirmation($title,$body,$url); @@ -247,17 +245,14 @@ switch ($_REQUEST['action']) { include(conf('prefix') . '/templates/show_edit_catalog.inc.php'); break; case 'gather_album_art': - flush(); $catalogs = Catalog::get_catalogs(); - foreach ($catalogs as $data) { - show_box_top(_('Starting Album Art Search')); - echo _('Searched') . ": <span id=\"count_art_" . $data->id . "\">" . _('None') . "</span><br />"; - show_box_bottom(); + foreach ($catalogs as $catalog) { + $catalog_id = $catalog->id; + require Config::get('prefix') . '/templates/show_gather_art.inc.php'; flush(); - echo "<b>" . _('Album Art Search Finished') . ". . .</b></div>\n"; - $data->get_album_art(0,1); + $catalog->get_album_art(0,1); } - $url = conf('web_path') . '/admin/index.php'; + $url = Config::get('web_path') . '/admin/index.php'; $title = _('Album Art Search Finished'); $body = ''; show_confirmation($title,$body,$url); |