summaryrefslogtreecommitdiffstats
path: root/templates/show_popular.inc.php
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-18 05:39:39 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-18 05:39:39 +0000
commit91eab2086875ad35aa93af00fc8b37d039d9f93c (patch)
treed3ba5609011f7aff139d6ae07004d14f40811600 /templates/show_popular.inc.php
parenta2836c9af951a4371833a5daa3afdb78013abab0 (diff)
downloadampache-91eab2086875ad35aa93af00fc8b37d039d9f93c.tar.gz
ampache-91eab2086875ad35aa93af00fc8b37d039d9f93c.tar.bz2
ampache-91eab2086875ad35aa93af00fc8b37d039d9f93c.zip
Fix statistics display after recent browse changes.
Diffstat (limited to 'templates/show_popular.inc.php')
-rw-r--r--templates/show_popular.inc.php30
1 files changed, 21 insertions, 9 deletions
diff --git a/templates/show_popular.inc.php b/templates/show_popular.inc.php
index 26b785d1..d74fd5f5 100644
--- a/templates/show_popular.inc.php
+++ b/templates/show_popular.inc.php
@@ -21,13 +21,25 @@
*/
?>
<?php show_box_top(_('Information')); ?>
-<em><?php echo _('Songs'); ?></em>
-<?php $object_ids = Stats::get_top('song'); ?>
-<?php require_once Config::get('prefix') . '/templates/show_songs.inc.php'; ?>
-<em><?php echo _('Albums'); ?></em>
-<?php $object_ids = Stats::get_top('album'); ?>
-<?php require_once Config::get('prefix') . '/templates/show_albums.inc.php'; ?>
-<em><?php echo _('Artists'); ?></em>
-<?php $object_ids = Stats::get_top('artist'); ?>
-<?php require_once Config::get('prefix') . '/templates/show_artists.inc.php'; ?>
+<?php
+$object_ids = Stats::get_top('song');
+$browse = new Browse();
+$browse->set_type('song');
+$browse->show_objects($object_ids);
+$browse->store();
+?>
+<?php
+$object_ids = Stats::get_top('album');
+$browse = new Browse();
+$browse->set_type('album');
+$browse->show_objects($object_ids);
+$browse->store();
+?>
+<?php
+$object_ids = Stats::get_top('artist');
+$browse = new Browse();
+$browse->set_type('artist');
+$browse->show_objects($object_ids);
+$browse->store();
+?>
<?php show_box_bottom(); ?>