diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-02 04:57:56 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-02 04:57:56 +0000 |
commit | 9457b75fb16f05347c08b484db6fe2b848efba15 (patch) | |
tree | 18245ab1b8a2fc7953c9fc04e541d46791737ec8 /admin/catalog.php | |
parent | d54efca7bd1ee28683506b452f58742f8a8f678f (diff) | |
download | ampache-9457b75fb16f05347c08b484db6fe2b848efba15.tar.gz ampache-9457b75fb16f05347c08b484db6fe2b848efba15.tar.bz2 ampache-9457b75fb16f05347c08b484db6fe2b848efba15.zip |
fixed some catalog update issues, fixed some genre pages and made the sql sort stuff for show songs work
Diffstat (limited to 'admin/catalog.php')
-rw-r--r-- | admin/catalog.php | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/admin/catalog.php b/admin/catalog.php index f987c289..8c29fa9c 100644 --- a/admin/catalog.php +++ b/admin/catalog.php @@ -145,13 +145,12 @@ switch ($_REQUEST['action']) { break; case 'update_catalog_settings': /* No Demo Here! */ - if (conf('demo_mode')) { break; } + if (Config::get('demo_mode')) { break; } /* Update the catalog */ - $catalog = new Catalog(); - $catalog->update_settings($_REQUEST); + Catalog::update_settings($_REQUEST); - $url = conf('web_path') . '/admin/index.php'; + $url = Config::get('web_path') . '/admin/index.php'; $title = _('Catalog Updated'); $body = ''; show_confirmation($title,$body,$url); @@ -198,10 +197,10 @@ switch ($_REQUEST['action']) { } break; case 'clear_stats': - if (conf('demo_mode')) { break; } + if (Config::get('demo_mode')) { break; } - clear_catalog_stats(); - $url = conf('web_path') . '/admin/index.php'; + Catalog::clear_stats(); + $url = Config::get('web_path') . '/admin/index.php'; $title = _('Catalog statistics cleared'); $body = ''; show_confirmation($title,$body,$url); @@ -214,15 +213,6 @@ switch ($_REQUEST['action']) { clear_now_playing(); show_confirmation(_('Now Playing Cleared'),_('All now playing data has been cleared'),Config::get('web_path') . '/admin/index.php'); break; - case 'show_clear_stats': - /* Demo Bad! */ - if (conf('demo_mode')) { break; } - - $url = conf('web_path') . '/admin/catalog.php?action=clear_stats'; - $body = _('Do you really want to clear the statistics for this catalog?'); - $title = _('Clear Catalog Stats'); - show_confirmation($title,$body,$url,1); - break; case 'show_disabled': if (conf('demo_mode')) { break; } |