diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-02-13 22:38:13 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-02-13 22:38:13 +0000 |
commit | 730d21e8d85efea95614e8bd93703dd6d12bfd0f (patch) | |
tree | 8470c86400b2fd5be89264e23e4604bcab0b5000 /lib/general.lib.php | |
parent | 9771ca37903c9188eba2a61876c2b17726f4aaa1 (diff) | |
download | ampache-730d21e8d85efea95614e8bd93703dd6d12bfd0f.tar.gz ampache-730d21e8d85efea95614e8bd93703dd6d12bfd0f.tar.bz2 ampache-730d21e8d85efea95614e8bd93703dd6d12bfd0f.zip |
removed dead file, updated bin files, removed debug and added a new config option
Diffstat (limited to 'lib/general.lib.php')
-rw-r--r-- | lib/general.lib.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php index c975ed22..f0f637b4 100644 --- a/lib/general.lib.php +++ b/lib/general.lib.php @@ -656,11 +656,11 @@ function get_global_popular($type) { * @catagory Get * @todo Add Genre */ -function get_newest ($type = 'artist') { +function get_newest ($type = 'artist',$limit='') { $dbh = dbh(); - if (conf('popular_threshold') < 1) { conf(array('popular_threshold'=>'10'),1); } + if (!$limit) { $limit = conf('popular_threshold'); } $sql = "SELECT DISTINCT $type FROM song ORDER BY addition_time " . "DESC LIMIT " . conf('popular_threshold'); |