From 730d21e8d85efea95614e8bd93703dd6d12bfd0f Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Tue, 13 Feb 2007 22:38:13 +0000 Subject: removed dead file, updated bin files, removed debug and added a new config option --- lib/general.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/general.lib.php') 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'); -- cgit