diff options
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'); |