From 47512ce6a64fa356214c162a8313480c6aed41d2 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 27 Feb 2007 01:56:16 +0000 Subject: - 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 --- include/menubar.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/menubar.inc.php') diff --git a/include/menubar.inc.php b/include/menubar.inc.php index d38290704..1ddc59882 100644 --- a/include/menubar.inc.php +++ b/include/menubar.inc.php @@ -4,7 +4,6 @@ // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | // +-----------------------------------------------------------------------+ -// | branch : BSF (Best So Far) // | file : $Id$ // | last update : $Date$ // | last modifier : $Author$ @@ -333,9 +332,9 @@ $template->assign_block_vars( ) ); -if (isset($page['category']) and $page['cat_uploadable'] ) +if (isset($page['category']) and $page['category']['uploadable'] ) { // upload a picture in the category - $url = get_root_url().'upload.php?cat='.$page['category']; + $url = get_root_url().'upload.php?cat='.$page['category']['id']; $template->assign_block_vars( 'upload', array( -- cgit v1.2.3