diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-02-27 01:56:16 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-02-27 01:56:16 +0000 |
commit | 47512ce6a64fa356214c162a8313480c6aed41d2 (patch) | |
tree | a0e35e2f89ef789f380adc5b8951444c189de4e7 /picture.php | |
parent | bfb4b15d2f75835033d9bbb865edd77dcb282bb6 (diff) |
- refactoring page['category'] before 1.7 release
page['category'] is not an id anymore, but an associative array of category info
all of page['cat_xxx'] or page['uppercats'] merged into one
simplifies calls to make_index_url
give plugins a clean start for page variables for version 1.7
git-svn-id: http://piwigo.org/svn/trunk@1861 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'picture.php')
-rw-r--r-- | picture.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/picture.php b/picture.php index a917d0888..2366987c6 100644 --- a/picture.php +++ b/picture.php @@ -36,7 +36,7 @@ check_status(ACCESS_GUEST); // access authorization check if (isset($page['category'])) { - check_restrictions($page['category']); + check_restrictions($page['category']['id']); } // if this image_id doesn't correspond to this category, an error message is @@ -199,7 +199,7 @@ DELETE FROM '.FAVORITES_TABLE.' $query = ' UPDATE '.CATEGORIES_TABLE.' SET representative_picture_id = '.$page['image_id'].' - WHERE id = '.$page['category'].' + WHERE id = '.$page['category']['id'].' ;'; pwg_query($query); } @@ -420,7 +420,7 @@ if (!empty($picture['current']['width'])) $url_admin = get_root_url().'admin.php?page=picture_modify' - .'&cat_id='.(isset($page['category']) ? $page['category'] : '') + .'&cat_id='.(isset($page['category']) ? $page['category']['id'] : '') .'&image_id='.$page['image_id'] ; |