diff options
author | rub <rub@piwigo.org> | 2007-03-04 22:40:28 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-03-04 22:40:28 +0000 |
commit | e06d9ae13df4563779988a251ebd11f58f091179 (patch) | |
tree | 1264f9b6a26fd9bc84c906d2932f5a3756baff7e /include/functions_notification.inc.php | |
parent | bd3f9519fe5d13b8ca21021b8445d5e781cb538b (diff) |
Add on $conf value of the function get_recent_post_dates
git-svn-id: http://piwigo.org/svn/trunk@1871 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_notification.inc.php')
-rw-r--r-- | include/functions_notification.inc.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/functions_notification.inc.php b/include/functions_notification.inc.php index 8677d5bff..c744e046b 100644 --- a/include/functions_notification.inc.php +++ b/include/functions_notification.inc.php @@ -511,6 +511,23 @@ SELECT DISTINCT c.uppercats, COUNT(DISTINCT i.id) img_count return $dates; } +/* + Call function get_recent_post_dates but + the parameters to be passed to the function, as an indexed array. + +*/ +function get_recent_post_dates_array($args) +{ + return + get_recent_post_dates + ( + (empty($args['max_dates']) ? 3 : $args['max_dates']), + (empty($args['max_elements']) ? 3 : $args['max_elements']), + (empty($args['max_cats']) ? 3 : $args['max_cats']) + ); +} + + /** * returns html description about recently published elements grouped by post date * @param $date_detail: selected date computed by get_recent_post_dates function |