diff options
author | z0rglub <z0rglub@piwigo.org> | 2003-09-19 21:40:52 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2003-09-19 21:40:52 +0000 |
commit | 26452aed650f879803d9211968457696970d44d0 (patch) | |
tree | 55a210cc1f6ac25f9ca79bb5ed9e290bdfd62e2d /include/functions_category.inc.php | |
parent | b7a5a44944fcf0f20a8e4ab26143962ec8d0a86e (diff) |
A category can have its representative picture
git-svn-id: http://piwigo.org/svn/trunk@133 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_category.inc.php')
-rw-r--r-- | include/functions_category.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php index 8e08a17d9..a691140d6 100644 --- a/include/functions_category.inc.php +++ b/include/functions_category.inc.php @@ -288,7 +288,7 @@ function get_cat_info( $id ) $cat = array(); $query = 'SELECT nb_images,id_uppercat,comment,site_id,galleries_url,dir'; - $query.= ',date_last,uploadable,status,visible'; + $query.= ',date_last,uploadable,status,visible,representative_picture_id'; $query.= ' FROM '.PREFIX_TABLE.'categories AS a'; $query.= ', '.PREFIX_TABLE.'sites AS b'; $query.= ' WHERE a.id = '.$id; @@ -303,6 +303,7 @@ function get_cat_info( $id ) $cat['uploadable'] = get_boolean( $row['uploadable'] ); $cat['status'] = $row['status']; $cat['visible'] = get_boolean( $row['visible'] ); + $cat['representative_picture_id'] = $row['representative_picture_id']; $cat['name'] = array(); |