From 0971ce48d217b7cc8081ae70c4b041ab23fdf29c Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 22 Mar 2006 01:01:47 +0000 Subject: URL rewriting: capable of fully working with urls without ? URL rewriting: works with image file instead of image id (change make_picture_url to generate urls with file name instead of image id) URL rewriting: completely works with category/best_rated and picture/best_rated/534 (change 'category.php?' to 'category' in make_index_url and 'picture.php?' to 'picture' in make_picture_url to see it) fix: picture category display in upper bar fix: function rate_picture variables and use of the new user type fix: caddie icon appears now on category page fix: admin element_set sql query was using storage_category_id column (column has moved to #image_categories) fix: replaced some old $_GET[xxx] with $page[xxx] fix: pictures have metadata url (use ? parameter - might change later) git-svn-id: http://piwigo.org/svn/trunk@1092 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_recent_cats.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/category_recent_cats.inc.php') diff --git a/include/category_recent_cats.inc.php b/include/category_recent_cats.inc.php index 2bc028ced..a0510db25 100644 --- a/include/category_recent_cats.inc.php +++ b/include/category_recent_cats.inc.php @@ -28,7 +28,7 @@ /** * This file is included by the main page to show thumbnails for recent_cats * category - * + * */ // retrieving categories recently update, ie containing pictures added @@ -71,7 +71,7 @@ while ( $row = mysql_fetch_array( $result ) ) 'IMAGE' => get_thumbnail_src($row['path'], @$row['tn_ext']), 'IMAGE_ALT' => $row['file'], 'IMAGE_TITLE' => $lang['hint_category'], - + 'U_IMG_LINK' => make_index_url( array( 'category' => $row['category_id'], @@ -83,10 +83,10 @@ while ( $row = mysql_fetch_array( $result ) ) $template->assign_block_vars( 'thumbnails.line.thumbnail.category_name', array( - 'NAME' => get_cat_display_name_cache($row['uppercats'], '', false), + 'NAME' => get_cat_display_name_cache($row['uppercats'], null, false), ) ); - + // create a new line ? if (++$row_number == $user['nb_image_line']) { -- cgit v1.2.3