We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 01c54ecb authored by idflood's avatar idflood

changed Playstats filename to Statistic for consistency

parent 0d70947b
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
require_once($install_path . '/database.php'); require_once($install_path . '/database.php');
require_once($install_path . '/data/Server.php'); require_once($install_path . '/data/Server.php');
class PlayStats { class Statistic {
/* /*
* returns an array counting appareances of a given field and his corresponding bargraph size * returns an array counting appareances of a given field and his corresponding bargraph size
* @param string $table table name to be queried * @param string $table table name to be queried
......
...@@ -23,7 +23,7 @@ require_once('database.php'); ...@@ -23,7 +23,7 @@ require_once('database.php');
require_once('templating.php'); require_once('templating.php');
require_once('data/User.php'); require_once('data/User.php');
require_once('data/TagCloud.php'); require_once('data/TagCloud.php');
require_once('data/PlayStats.php'); require_once('data/Statistic.php');
if(!isset($_GET['user']) && $logged_in == false) { if(!isset($_GET['user']) && $logged_in == false) {
$smarty->assign('error', 'Error!'); $smarty->assign('error', 'Error!');
...@@ -57,12 +57,12 @@ if(isset($user->name)) { ...@@ -57,12 +57,12 @@ if(isset($user->name)) {
} }
$smarty->assign('stat_barwidth', 320); $smarty->assign('stat_barwidth', 320);
$aUserPlayStat = PlayStats::GeneratePlayStats('Scrobbles', 'artist', 40, $user->name, 300); $aUserPlayStat = Statistic::GeneratePlayStats('Scrobbles', 'artist', 40, $user->name, 300);
if (!PEAR::isError ($aUserPlayStat)) { if (!PEAR::isError ($aUserPlayStat)) {
$smarty->assign('user_playstats',$aUserPlayStat); $smarty->assign('user_playstats',$aUserPlayStat);
} }
$aUserDayStat = PlayStats::generatePlayByDays('Scrobbles', 40, $user->name, 300); $aUserDayStat = Statistic::generatePlayByDays('Scrobbles', 40, $user->name, 300);
if (!PEAR::isError ($aUserDayStat)) { if (!PEAR::isError ($aUserDayStat)) {
$smarty->assign('user_daystats',$aUserDayStat); $smarty->assign('user_daystats',$aUserDayStat);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment