summaryrefslogtreecommitdiffstats
path: root/admin/catalog.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-01-25 20:35:45 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-01-25 20:35:45 -0500
commit80f4859712b433d8cee1158951efc19e939224f4 (patch)
tree4f95eae0397a0f6b3eb0246f79a9fc67f90ea471 /admin/catalog.php
parentd14b5215ebd23097f504607c1db3f653c58cf3e9 (diff)
downloadampache-80f4859712b433d8cee1158951efc19e939224f4.tar.gz
ampache-80f4859712b433d8cee1158951efc19e939224f4.tar.bz2
ampache-80f4859712b433d8cee1158951efc19e939224f4.zip
Move Catalog::clear_stats() to Stats::clear()
Diffstat (limited to 'admin/catalog.php')
-rw-r--r--admin/catalog.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/admin/catalog.php b/admin/catalog.php
index b8eac41b..eeb58d4c 100644
--- a/admin/catalog.php
+++ b/admin/catalog.php
@@ -250,13 +250,12 @@ switch ($_REQUEST['action']) {
}
break;
case 'clear_stats':
- if (Config::get('demo_mode')) { access_denied(); break; }
-
- Catalog::clear_stats();
+ if (Config::get('demo_mode')) { access_denied(); break; }
+ Stats::clear();
$url = Config::get('web_path') . '/admin/catalog.php';
$title = T_('Catalog statistics cleared');
$body = '';
- show_confirmation($title,$body,$url);
+ show_confirmation($title, $body, $url);
break;
default:
case 'show_catalogs':