From f328dd14bba142c256dbd2ff47713ec6813c07c2 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 14 Feb 2006 01:14:31 +0000 Subject: feature 251: Rating For Anonymous users fix: page['items'] for favorites category and remove old use of $has_next, $has_prev in picture.php (slideshow and favorites section) optimization: one less sql query in picture.php when there are no comments display of the refresh url in redirect.tpl (useful when debugging with browser meta redirects disabled) git-svn-id: http://piwigo.org/svn/trunk@1041 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/config_default.inc.php | 4 ++++ include/section_init.inc.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/config_default.inc.php b/include/config_default.inc.php index f45ab28a7..641cc190b 100644 --- a/include/config_default.inc.php +++ b/include/config_default.inc.php @@ -93,6 +93,10 @@ $conf['calendar_datefield'] = 'date_creation'; // rate : enable feature for rating elements $conf['rate'] = true; +// rate_anonymous : visitors are able to rate pictures (requires +// $conf['rate'] set to true) +$conf['rate_anonymous'] = true; + // newcat_default_commentable : at creation, must a category be commentable // or not ? $conf['newcat_default_commentable'] = 'true'; diff --git a/include/section_init.inc.php b/include/section_init.inc.php index e54b050a0..f864a288e 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -208,7 +208,7 @@ SELECT image_id $page, array( 'title' => $lang['favorites'], - 'items' => array_from_query($query, 'id'), + 'items' => array_from_query($query, 'image_id'), 'thumbnails_include' => 'include/category_default.inc.php', ) ); -- cgit v1.2.3